I had to switch from PHP4 to PHP5 (CGI mode) and after switching, DH support contacted me and notified me that my account uses LOTS of CPU. They have set up a resources log that shows what process takes how much CPU and indeed PHP5.CGI is the problem. I have procceces that take 3 seconds of CPU up to 7.5 seconds.
DH support cannot tell me what PHP script causes the problem and they cannot tell me what could have gone wrong by switching from PHP4 to PHP5 (CGI). (Actually, I regret to say that their handling of this issue is below their very high standard.)
I am not using anything special. Mostly accessing text files or querying small MySql tables.
Does anyone here knows what functions or classes or whatever can cause this problem? Is there anywhere a list of things that can go wrong with switching from PHP4 to PHP5 (CGI)?
Is there a way to log the CPU usage of a PHP5 script?