0
wrk
を使用して、管理者が管理するWeb APIサービスをubuntu 16.04
にテストします。エラー「あまりにも多くの開いているファイルは、」持っているが、私は、システムの設定supervisordによってオープンされたファイルが多すぎますか?
/etc/security/limits.conf
* soft nofile 65535
* hard nofile 65535
はまだ
のエラー「あまりにも多くの開いているファイルを」持っているを設定している私はsupervisordがroot
とcat /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?
ファイルの制限が開いているように見えませんか?サービスはすでに稼働しているようなものですか? –
あなたの優しさに感謝@RamanSailopal – Nelson