I’m running HestiaCP on Ubuntu with Apache + Nginx as a reverse proxy and PHP-FPM 8.0.
Each web domain runs under its own user, as usual with Hestia.
I have some background jobs that run either:
through Supervisor, or
via PHP CLI scripts (not through FPM, but same user environment).
These operations open many simultaneous connections (API calls, files, sockets, etc.), and they sometimes hit the default ulimit -n = 1024 for that user.
I’ve already tried to:
Set higher limits in /etc/security/limits.conf
Add LimitNOFILE=65535 in php8.0-fpm.service
Add rlimit_files = 65535 in the PHP-FPM pool config
Restarted PHP-FPM and verified via /proc/<pid>/limits
However, the limit for user-level processes still stays at 1024.
So my question is: What’s the proper way in HestiaCP to increase ulimit / open file descriptors per user in a persistent way — so it applies both to PHP-FPM workers and to CLI/Supervisor tasks started under that same user?
I’m afraid it still show the last limit, btw i restarted supervisor
Limit Soft Limit Hard Limit Units Max cpu time unlimited unlimited seconds Max file size unlimited unlimited bytes Max data size unlimited unlimited bytes Max stack size 8388608 unlimited bytes Max core file size 0 unlimited bytes Max resident set unlimited unlimited bytes Max processes 31204 31204 processes Max open files 1024 524288 files Max locked memory 8388608 8388608 bytes Max address space unlimited unlimited bytes Max file locks unlimited unlimited locks Max pending signals 31204 31204 signals Max msgqueue size 819200 819200 bytes Max nice priority 0 0 Max realtime priority 0 0 Max realtime timeout unlimited unlimited us