How to detect "out of memory" error and force refresh?
-
I have recently moved hosting company and my new host has a memory limit of 192MB which I am struggling to stay inside. I’m working on ways to do that, but meanwhile I desperately need to know if there’s a way to trap an Out of Memory error and use it to force a page refresh.
I know they can be trapped because there are memory usage plugins that still show data to admin when an OOM occurs. I just don’t know how they do this or if it can be done outside of an admin login.
I am not a programmer, just a HTML developed with some coding experience. So if you could keep it simple for me that would be really appreciated.
Also if you have any advice on tracking down the cause of high memory use, that would also be great. The average use is only about 50MB and I’m not sure why it spikes out to over 230MB now and again. Could it be just concurrent use? Or is it likely to be a script or plugin?
- The topic ‘How to detect "out of memory" error and force refresh?’ is closed to new replies.