2017-07-12 2 views
0

wrkを使用して、管理者が管理するWeb APIサービスをubuntu 16.04にテストします。エラー「あまりにも多くの開いているファイルは、」持っているが、私は、システムの設定supervisordによってオープンされたファイルが多すぎますか?

/etc/security/limits.conf 
*   soft nofile 65535 
*   hard nofile 65535 

はまだ

のエラー「あまりにも多くの開いているファイルを」持っているを設定している私はsupervisordがrootcat /proc/PID/limits

Max open files   1024     4096     files 
に属しているました

ですので、limits.confに以下のようなルート制限設定を追加してください

root  soft nofile 65535 
root  hard nofile 65535 

再起動は、それが行われていますsupervisord後(猫/proc/PID/limits、65535を得た) が、supervisord終了後すぐに、そして限界1024

Jul 12 18:55:53 adhost supervisord[10866]: Error: Another program is already listening on a port that one of our HTTP servers is configured to use. Shut this program down first before starting supervisord. 
Jul 12 18:55:53 adhost supervisord[10866]: For help, use /usr/bin/supervisord -h 
Jul 12 18:55:53 adhost systemd[1]: supervisor.service: Main process exited, code=exited, status=2/INVALIDARGUMENT 
Jul 12 18:55:53 adhost supervisorctl[10871]: Shut down 

参照してオートスタート:ubuntu - too many open files?

+0

ファイルの制限が開いているように見えませんか?サービスはすでに稼働しているようなものですか? –

+0

あなたの優しさに感謝@RamanSailopal – Nelson

答えて

0

私はsudo supervisorctl shutdownによって解決を殺すshould't P直接

関連する問題