The best work-around for this is to examine your entire daily stats and look for the PHP scripts with the most requests. You can try the following:
- Figure out what PHP script is causing the maximum CPU/memory load. You may use the WebAlyzer statistics (Traffic Stats section of the Control Panel) and check which particular file has the most requests. For example, it can be http://www.my-best-domain/phpbb/index.php, which has reveived the most hits. It is most likely that this script may need to be optimized or is being used out of control.
- Once you have found the script with the largest load, you can now focus on the particular application. Your options depend on whether this script is a part of a larger program, something you have created, or is something that was due to a hacker compromising another script. For example, if you have a blog and a forum running, turn one off, wait a day, then turn it back on. See what sort of impact that has on your Load Stats. Check if there are any new versions or security updates for this particular application. Usually, the new versions are more optimized than the old ones in terms of resource usage.