Heavy Memory Issues on a Lightspeed Server with PHP 8.1
-
I think i have a powerful (shared) lightspeed webspace where i could set 2048 MB Memory Limit. But normally 368M is sufficient. Everything works well then. opcache.memory_consumption is set to 128M in a range from 64M to 786M. Current Docket Cache Settings:
and now here come the BACKEND issues:
after 24-48 hours i am not able to open the docket cache overview or complex post tables where a lot of database stuff is going on. WP-admin loads infinitely resulting in a error 500 triggered by load-styles.php . When i set SCRIPT_DEBUG constant in the wp-config.php i can open those pages again. i then go to docket cache and hit flush buttons of “Object Cache Files” and “Zend OPcache”. It takes a while and sometimes the request takes to long and i get a 500 error again. Only workaround then is to go to my directadmin panel and crank the memory_limit up to 1GB. Then i am able to flush everything. After that i can remove the SCRIPT_DEBUG constant and lower the memory down to again 368MB. WP_MEMORY_LIMIT always stays 256M. So i have to play this game every 24-48hours.
Now my question is how to setup everything properly? Should i flush the caches every 12hours by cron job? How to setup this please? how to balance memory_limit and opcache.memory_consumtion?
directadmin view:
- The topic ‘Heavy Memory Issues on a Lightspeed Server with PHP 8.1’ is closed to new replies.