Results 1 to 5 of 5
Thread: /usr/bin/php overloads CPU
-
05-05-2008, 01:07 PM #1Aspiring Evangelist
- Join Date
- Apr 2006
- Posts
- 372
/usr/bin/php overloads CPU
Moved to new server today (and upgraded PHP to 5.2.6). All I see now is high CPU load due bin/php + lots of defuncts.
PHP Code:24324 nobody 0
97.7
0.4 /usr/bin/php
21253 nobody 0
96.0
1.2 /usr/bin/php
28225 nobody 0
94.1
0.4 /usr/bin/php
18109 nobody 0
79.0
0.0 php <defunct>
12750 nobody 0
50.7
0.0 php <defunct>
24961 nobody 0
18.1
0.3 /usr/bin/php
18967 nobody 0
6.3
0.0 php <defunct>
Last edited by DjiXas; 05-05-2008 at 01:14 PM.
-
05-05-2008, 07:14 PM #2Web Hosting Master
- Join Date
- Jun 2005
- Posts
- 703
defunct means the process has ended.
How many connections do you have?ReflexNetworks means Happy Clients!
-
05-05-2008, 07:19 PM #3
/usr/bin/php isn't overloading your server, a client's script is.
You need to find out which script is killing the server, or what user is running them.
Usually I wouldn't recommend it, but phpsuexec/suphp can help you find out the user at least. From there, you can find the script.Tom Whiting, WHMCS Guru extraordinaire
Linux problems? WHMCS Problems? Give me a shout
Check out my WHMCS Addons
-
05-06-2008, 05:18 AM #4Newbie
- Join Date
- May 2008
- Posts
- 29
You can also add to your php.ini error_log patch and check what errors are generated, it could help you to trace user.
UNMETERED FULLY MANAGED Servers & Non - Managed UNMETERED in Europe
Unix Pro System Admins: Optimalization, Configuration, Security modules
99.9% Uptime Guarantee | 30 Day Money-Back Guarantee
Personal contact - pils@zibbix.com
-
05-06-2008, 05:34 AM #5Aspiring Evangelist
- Join Date
- Apr 2006
- Posts
- 372
Thanks a lot.