SZero
09-19-2008, 11:25 AM
he every1
I recived a warning lately from my host telling me that some pages in my site are taking a lot of CPU %, they say it's due to unoptimization cause it souldn't do that tension in my visitors rate
am using a phpbb forum with some mods, any idea wut could be causing this weather in phpbb or regular php statements?
ty..
svidgen
09-19-2008, 11:50 AM
Someone with an in depth knowledge of phpbb and your particular mods (which you haven't mentioned) might be able to shed some light on the subject. But, for whoever that might be, it would be good to know what version of phpbb and what mods you have installed.
In the meantime, ask your hosting company for more details. If they're capable of determining that your scripts are overusing the CPU, they should be able to tell you which ones and what queries are doing it. Additionally, they should be able to tell you how much CPU time the trouble scripts are using per request. And, you should also find out what specific hardware your particular server contains, so you have some idea of how much CPU time is too much for a single request.
In other words, if they've got enough log data to tell you that your site is consuming too much CPU time, they can most likely tell you what script+querystring combination is doing it. If you know that, you can most likely jump right to the problem section of the code and start investigating.
I would also ask your hosting provider if they have any form of PHP caching software installed. If they don't, ask them why the hell not ...