Recently I had a long debate about many 500 Errors, suddenly appearing also running php scripts tested and working since weeks.
(The debate has been in the hosting provider forum, with some other users with similar problem in the same days).
At the moment the problem seems fixed in almost all the scripts, as I fixed many many warnings appearing critically wasting memory.
But again the most memory-consuming script, in the worst case, generates that error.
I use php.ini, and there I set the memory_limit = 8Mb, and usually this is enough.
Btw, since I have that critical worst case, I set 64Mb, then 1024Mb!!!, but that script still aborts with the 500 Error.
1) Is possible monitoring the memory used by a script ?
2) have you had similar problem and how did you solve it ?
Thanks
jlive