Too many open files despite config adjustments

This is all that appears in the debug logs with DEBUG_MODE:

[ 2023-11-16 14:25:33 | nginx ]
[ 2023-11-16 14:25:33 | nginx | PROXY ]

It can also be restricted from host system if you run via virtual machine…

It is hard to debug what happens and what goed wrong for sure without any server access…

I have advanced: The issue only occurs when operating from the webpanel, probably because there service nginx configtest forks from the hestia-php process.

Now I just need to find out to raise the limit of that process.

I had to raise the limit in /usr/local/hestia/php/etc/php-fpm.conf

[global]
rlimit_files=65535 

See PHP: Configuration - Manual

Then systemctl restart hestia and everything is working.

The default as detected with prlimit --pid= was 1024, I would suggest adjusting that up by default. This took me many hours of work to debug and fix for good.

Can I somehow make this change permanent? Hestia will probably overwrite it on upgrade…

2 Likes

Use an hook:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.