views:

105

answers:

1

Hello,

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 :)

A: 

Try running a profiler on it.

Amber
Thanks. That sounds very helpful. I'm looking into it :)
Amer
Alright, so XDebug turned out to be very useful to profile the scripts running. Thanks for the advice.
Amer