I have been having aproblem with my site being slow and I thought it was my hosts webserver. Here is what he emailed me
Mike:
Unfortunately you're the one causing this.
Here's output from top showing some of your PHP threads gobbling down over a gig of RAM, and bringing the load average to up over 60.
top - 01:41:32 up 54 days, 7:35, 3 users, load average: 59.75, 59.32, 61.17
Tasks: 316 total, 80 running, 231 sleeping, 2 stopped, 3 zombie
Cpu(s): 0.2% user, 99.8% system, 0.0% nice, 0.0% idle
Mem: 2068488k total, 2021264k used, 47224k free, 5908k buffers
Swap: 2040244k total, 2040244k used, 0k free, 45984k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
14590 efs 16 0 841m 675m 1608 R 5.4 33.4 0:40.54 php
14580 efs 19 0 383m 124m 1572 R 4.1 6.2 0:19.88 php
21520 efs 20 0 3768 3768 1616 R 2.9 0.2 0:01.26 php
13155 efs 19 0 889m 178m 1572 R 2.4 8.8 0:36.96 php
14088 efs 20 0 420m 118m 1572 R 2.3 5.9 0:20.42 php
Those threads alone total 1094 megabytes, and that's just a sampling of what's running.
Maybe this ties into the long loading times on your site? Your site may have some sort of serious bug.
All told, your PHP scripts were taking 3.5 gigabytes of RAM =\
This is something I don't understand so maybe someone can give me some advice.
Last edited by ChAoS; 11/08/2004 5:00 AM.