I’ve had a lot of problems with my web server recently & so upgraded the memory on advice from my hosting company, however it crashed again & they’re advising that it’s still an out of memory problem, despite my cPanel resource monitoring showing no CPU or Memory usage above 10% (& all well within the 100%).
They are saying I need to increase the memory allocation for my PHP scripts, which I can do, but was dubious that 1 script running out of it’s allocated memory allocation could bring down the server. I thought the point of a PHP script memory limit was there to stop PHP consuming all the server memory?
Does each PHP script on the server share the same PHP memory allocation then?
No, the
memory_limitis for each script instance individually. To answer your question, a single PHP script instance running out of memory should not bring down the entire webserver.