ValdikSS/aceproxy

Command python acehttp.py get 100% CPU usage

minhnv16 opened this issue · 1 comments

I run acestreamengine first then run command
python acehttp.py

play some acestream link by
ffplay -i http://127.0.0.1:8000/pid/abcd1234.../stream.mp4

when memory of engine is over, it's killed by system auto matic
and Command python acehttp.py get 100% CPU usage

`28.04.2018 21:14:46 ERROR HTTP: AceClient create exception: AceException("Socket creation error! Ace is not running? error(24, 'Too many open files')",) [17/1284]
28.04.2018 21:14:46 WARNING root: Dying with error
127.0.0.1 - - [28/Apr/2018 21:14:46] code 502, message Bad Gateway
127.0.0.1 - - [28/Apr/2018 21:14:46] "GET /pid/1315df58796db2325c2fdc52631f2f39c53b93c6/stream.mp4 HTTP/1.1" 502 -
28.04.2018 21:14:46 DEBUG AceClient_destroy: Destroying client...
28.04.2018 21:14:46 INFO http_HTTPHandler: Accepted connection from 127.0.0.1 path /pid/1724d7f4ee4e9b40924ea89bb24f30cafe4daa9f/stream.mp4
28.04.2018 21:14:46 ERROR HTTP: AceClient create exception: AceException("Socket creation error! Ace is not running? error(24, 'Too many open files')",)
28.04.2018 21:14:46 WARNING root: Dying with error
127.0.0.1 - - [28/Apr/2018 21:14:46] code 502, message Bad Gateway
127.0.0.1 - - [28/Apr/2018 21:14:46] "GET /pid/1724d7f4ee4e9b40924ea89bb24f30cafe4daa9f/stream.mp4 HTTP/1.1" 502 -
28.04.2018 21:14:46 DEBUG AceClient_destroy: Destroying client...
29.04.2018 02:30:53 DEBUG http_hangDetector: Client disconnected
29.04.2018 02:30:53 DEBUG HTTP: END REQUEST
29.04.2018 02:30:53 DEBUG HTTP: Sleeping for 3 seconds
29.04.2018 02:30:53 INFO http_HTTPHandler: Accepted connection from 127.0.0.1 path /pid/1b5c343c2cc146d86c449c202a98132b8a2e03b4/stream.mp4
29.04.2018 02:30:53 ERROR HTTP: AceClient create exception: AceException("Socket creation error! Ace is not running? error(24, 'Too many open files')",)
29.04.2018 02:30:53 WARNING root: Dying with error

127.0.0.1 - - [29/Apr/2018 02:30:53] code 502, message Bad Gateway
127.0.0.1 - - [29/Apr/2018 02:30:53] "GET /pid/1b5c343c2cc146d86c449c202a98132b8a2e03b4/stream.mp4 HTTP/1.1" 502 -
29.04.2018 02:30:53 DEBUG AceClient_destroy: Destroying client...
29.04.2018 02:30:56 DEBUG HTTP: That was the last client, destroying AceClient
29.04.2018 02:30:56 INFO http_HTTPHandler: Accepted connection from 127.0.0.1 path /pid/2de26a9a525b357e5b873fa1710bae1e6ec148fb/stream.mp4
29.04.2018 02:30:56 ERROR HTTP: AceClient create exception: AceException("Socket creation error! Ace is not running? error(24, 'Too many open files')",)
29.04.2018 02:30:56 WARNING root: Dying with error
127.0.0.1 - - [29/Apr/2018 02:30:56] code 502, message Bad Gateway
127.0.0.1 - - [29/Apr/2018 02:30:56] "GET /pid/2de26a9a525b357e5b873fa1710bae1e6ec148fb/stream.mp4 HTTP/1.1" 502 -
29.04.2018 02:30:56 DEBUG AceClient_destroy: Destroying client...
29.04.2018 02:30:56 INFO http_HTTPHandler: Accepted connection from 127.0.0.1 path /pid/419a38f9dc342b9c02df70d14552fed53dac5933/stream.mp4
29.04.2018 02:30:56 ERROR HTTP: AceClient create exception: AceException("Socket creation error! Ace is not running? error(24, 'Too many open files')",)
29.04.2018 02:30:56 WARNING root: Dying with error
127.0.0.1 - - [29/Apr/2018 02:30:56] code 502, message Bad Gateway
127.0.0.1 - - [29/Apr/2018 02:30:56] "GET /pid/419a38f9dc342b9c02df70d14552fed53dac5933/stream.mp4 HTTP/1.1" 502 -
29.04.2018 02:30:56 DEBUG AceClient_destroy: Destroying client...
`

@minhnv16 Can you help me setup AceProxy?