Question

I wrote a small app that turns out to be using a lot of memory when used by a few users simultaniously. This is leading to some Fatal PHP errors and some mySQL (errcode 12) errors.

My Plesk QoS page shows frequent 'kmemsize' black zone errors.

My question is: What's the best method to monitor PHP script runs to pin-point which .php script is using the most memory? Shell command? Debugger?

Thanks in advance :)

Was it helpful?

Solution

Try running a profiler on it.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top