Ich verwende wrk
, um den Web-API-Dienst zu testen, der von Supervisor unter ubuntu 16.04
verwaltet wird. haben Fehler „zu viele offene Dateien“, aber ich habe SystemkonfZu viele offene Dateien von Supervisord ausgelöst?
/etc/security/limits.conf
* soft nofile 65535
* hard nofile 65535
noch „zu viele offene Dateien“ haben Fehler
Ich fand supervisord ist, gehört zu root
und cat /proc/PID/limits
Max open files 1024 4096 files
gesetzt
so, Wurzel Limit Einstellungen limits.conf
wie hinzufügen unter
root soft nofile 65535
root hard nofile 65535
nach dem Neustart supervisord es bewirkt (cat /proc/PID/limits
, bekam 65535) aber supervisord Ausfahrt kurz nach und Auto mit Grenzen 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
Referenz starten: ubuntu - too many open files?
Das sieht nicht so aus, als ob es sich auf offene Dateigrenzen bezieht? Es ist so, als ob der Service schon läuft? –
danke für deine Freundlichkeit @RamanSailopal – Nelson