2008-05-25, 05:18 PM
Hello fellows,
I'm having a weird issue and wanted to find out if any of you know how to deal with it.
I've got myself Ubuntu box and online RPG game hosted on it.
The problem is that apache and mysqld is going wild (I mean it).
load average: 1.22, 1.20, 1.07
That's an usual load when I only have 40 players online.
Tried stopping apache, server load went to 0.02 (ircd was using it)
Server speed: 2.0Ghz
RAM: 500mb
apache conf:
timeout 5
Keepalive On
keep alive timeout 15
My server is good enough for such project and I can bet that I have a bug somewhere in my PHP code, that causes a never ending loop and apache with mysqld are going wild.
Mysql is using ~20% of CPU and few apache childs are using ~11% each, so that's really not normal.
What do I want you to help me with is a tool for showing php files CPU usage or something similar, so that I could find out which of my files are causing that server load.
Thanks in advance,
Faifas