Closed DoobleD closed 1 year ago
Increasing the memory_limit is my first recommendation, it is pretty common for a lot of PHP apps to be set at 256M or 512M.
If this isn't an option try some PHP-FPM optimisation such as reloading workers. I think this article should still be relevant https://geekflare.com/php-fpm-optimization/
From your links @fmbiete also suggested to track down the memory leak. Would happily accept a PR for this.
Thanks for the feedback @matidau! I haven't tried the emergency_restart_*
options mentioned in the guide, could be worth a test.
I lack the skills and motivation to track the leak. I'll close the issue for now and perhaps someone having investigated more can re-open later on.
I haven't tried the
emergency_restart_*
options mentioned in the guide, could be worth a test.
Would still be keen to hear if this helps, if you feel like dropping a comment back here.
Sure thing! I'll let you know if I try it.
Z-Push is using a lot of memory, and despite PHP's generous default of
memory_limit=128M
, we often get OOM errors on syncs:Nginx logs:
Z-Push logs:
This issue has been reported already in mulitple places:
The workaround usually given is to increase
memory_limit
(to 256M for instance), but that's not always an option and is not a good solution anyway. Above 128M seems abnormally large.Any ideas on that?