Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    Nov 2006
    Posts
    340

    Default Server Load

    My Server Specs:
    - Centos 4.8 32 bit
    - Cpanel / WHM
    - suPHP enabled on PHP 5.3x
    - MySQL 5x

    I need someone to please show me various ways to trace what is causing server load spikes.

    Sometimes I see so many "nobody" users running httpd processes, but I dont' know how to determine what user(s) it might be, even though suPHP is enabled.

    I'm aware of "top" and "top -c" and mysqladmin -i2 processlist status for example.

    If I do ps auxaux I get so many processes from various system and customer users.

  2. #2
    Member
    Join Date
    Jan 2003
    Location
    Jacksonville, FL
    Posts
    29

    Default

    If there is a script actively running, you may be able to do:

    lsof -p pid#

    Where pid# is the process id. This will return a list of files that the thread has opened.

    Also, you haven't change the start/max server variables in Apache have you?

    I see many people raise these in an effort to fix performance issues but you rarely need more than the default settings unless your server is very busy (>100K's hits per day).

  3. #3
    Member brianoz's Avatar
    Join Date
    Mar 2004
    Location
    Melbourne, Australia
    Posts
    1,117
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Try "ps -efH" instead of "ps aux". It sorts processes in a hierarchy, which makes it clearer what started what.

  4. #4
    Member
    Join Date
    Jan 2005
    Location
    Earth
    Posts
    1,050

    Default

    Quote Originally Posted by Zion Ahead View Post
    My Server Specs:
    - Centos 4.8 32 bit
    - Cpanel / WHM
    - suPHP enabled on PHP 5.3x
    - MySQL 5x

    I need someone to please show me various ways to trace what is causing server load spikes.

    Sometimes I see so many "nobody" users running httpd processes, but I dont' know how to determine what user(s) it might be, even though suPHP is enabled.

    I'm aware of "top" and "top -c" and mysqladmin -i2 processlist status for example.

    If I do ps auxaux I get so many processes from various system and customer users.

    You can also check the websites under which those httpd processes are running from

    WHM >> Apache Status

  5. #5
    Member
    Join Date
    Nov 2006
    Posts
    340

    Default

    See attached
    Attached Thumbnails Attached Thumbnails Server Load-index.gif  

  6. #6
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Default

    Quote Originally Posted by Zion Ahead View Post
    My Server Specs:
    - Centos 4.8 32 bit
    - Cpanel / WHM
    - suPHP enabled on PHP 5.3x
    - MySQL 5x
    I don't need to see anything with what you just said ....

    PHP v5.3 series is non-backwards compatible to previous PHP versions and release trees and currently at this moment is completely incompatible with the vast majority of scripts and programs out there.

    Some application authors have released rewritten update releases of their respective applications to support PHP 5.3 but currently right now at this moment those still remain in a very small minority.

    Running PHP v5.3 in a production environment for anything other than script development as mentioned earlier is NOT recommended and will indeed cause you loading issues, errors, and script execution problems all over the place.

    In time, the scripts and programs out there will eventually be rewritten to support PHP 5.3 and upcoming PHP 6.x but we are not there yet ....

    The very first thing I would look at doing is changing your PHP version from PHP 5.3.x to PHP 5.2.13 as that is actually the newest release only came out a month or so ago and the most compatible with most of the scripts out there currently. Hold off going to 5.3 until there is a lot more industry wide support for it among scripts and programs.

    Your second issue to complicate matters is likely "permission" related ---

    General average users as a whole do not understand the differences between DSO, SuPHP, FCGI, and so on and don't realize that they cannot set or use any of the "777" or "666" permissions that script authors so often blindly write in their installation instructions assuming that the end user is going to be DSO based when that too is a minority these days.

    If a file or folder is set to 777 under SuPHP, aside from potential error 500 conditions and script errors, this will also cause drastic performance slowdowns server wide. I am not going to go into in depth detail as for the technical reasons why that is but it is related to what I just said.

    Other than getting on a more compatible PHP version to the scripts your user's might be trying to install and run on their accounts, I would also sweep the server for "777" permissions and reset those and that too will also help to take care of a lot of your loading issues.

    Now with those two items out of the way, if you are still having problems and loading issues after that then come talk to me and I'll help you deal with those but let's address the more basic and obvious issues first.

  7. #7
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Default

    Quote Originally Posted by madaboutlinux
    You can also check the websites under which those httpd processes are running from
    Code:
    WHM >> Apache Status
    Since the discussion was talking about "Linux commands" up to the point you mentioned "Apache Status", I suppose it might be useful to some to not that you can see WHM's "Apache Status" output from the shell ...

    Code:
    # httpd fullstatus
    (A lot of people don't know about 'fullstatus' so a good opportunity there to point that little tidbit out )

Similar Threads & Tags
Similar threads

  1. new server, high load but no traffic, no sites, completly emtpy server
    By apogee in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 09-07-2009, 05:47 PM
  2. MailScanner/ClamAV High Server Load until the server downtime
    By WhiteBear in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-11-2007, 09:04 PM
  3. Server Load in the Red when running WHM/cPanel on server with multiple cpus
    By IdeaHamster in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 04-19-2004, 04:24 AM
  4. server over load load average: 69.93
    By alzoor in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 12-29-2003, 03:34 AM
  5. Replies: 0
    Last Post: 06-30-2003, 12:58 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube