Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2004
    Location
    USA
    Posts
    78

    Server high load with no reason !

    I don't know why my server is loading so high. I'm using CentOS4.3 and cPanel, only run Apache and FTP. Do you find any clues in the showing below?

    top - 00:53:35 up 1 day, 2:15, 2 users, load average: 199.04, 195.50, 196.54
    Tasks: 329 total, 1 running, 328 sleeping, 0 stopped, 0 zombie
    Cpu(s): 0.5% us, 1.6% sy, 0.0% ni, 0.0% id, 94.0% wa, 0.0% hi, 3.8% si
    Mem: 1993580k total, 1977880k used, 15700k free, 19820k buffers
    Swap: 2096472k total, 160k used, 2096312k free, 1644776k cached

    PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
    32269 root 17 0 6412 1208 776 R 1.1 0.1 0:00.06 top
    32203 s4pvco 16 0 38116 1748 1180 S 0.5 0.1 0:00.01 sshd
    1 root 16 0 4752 556 460 S 0.0 0.0 0:00.69 init
    2 root 34 19 0 0 0 S 0.0 0.0 0:00.03 ksoftirqd/0
    3 root 5 -10 0 0 0 S 0.0 0.0 0:00.01 events/0
    4 root 6 -10 0 0 0 S 0.0 0.0 0:00.00 khelper
    5 root 15 -10 0 0 0 S 0.0 0.0 0:00.00 kacpid
    30 root 5 -10 0 0 0 S 0.0 0.0 0:00.11 kblockd/0
    31 root 15 0 0 0 0 S 0.0 0.0 0:00.00 khubd
    54 root 20 0 0 0 0 S 0.0 0.0 0:00.00 pdflush
    55 root 15 0 0 0 0 S 0.0 0.0 0:00.10 pdflush
    57 root 12 -10 0 0 0 S 0.0 0.0 0:00.00 aio/0
    56 root 15 0 0 0 0 S 0.0 0.0 2:18.90 kswapd0
    201 root 22 0 0 0 0 S 0.0 0.0 0:00.00 kseriod
    305 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 ata/0
    307 root 21 0 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_0
    308 root 22 0 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_1
    329 root 15 0 0 0 0 S 0.0 0.0 0:00.38 kjournald
    1509 root 6 -10 3604 448 364 S 0.0 0.0 0:00.02 udevd
    1694 root 21 0 0 0 0 S 0.0 0.0 0:00.00 shpchpd_event
    1913 root 6 -10 0 0 0 S 0.0 0.0 0:00.00 kauditd
    1954 root 6 -10 0 0 0 S 0.0 0.0 0:00.00 kmirrord
    2164 root 19 0 0 0 0 S 0.0 0.0 0:00.00 kjournald
    2165 root 15 0 0 0 0 S 0.0 0.0 0:00.29 kjournald
    2166 root 15 0 0 0 0 S 0.0 0.0 0:01.02 kjournald
    2167 root 15 0 0 0 0 S 0.0 0.0 0:00.03 kjournald
    2168 root 15 0 0 0 0 S 0.0 0.0 0:03.28 kjournald
    2169 root 15 0 0 0 0 S 0.0 0.0 0:00.55 kjournald
    2566 root 16 0 2528 280 212 S 0.0 0.0 0:00.92 cpuspeed
    2789 root 16 0 3628 564 452 S 0.0 0.0 0:00.33 syslogd
    2793 root 16 0 2536 376 300 S 0.0 0.0 0:00.00 klogd
    2830 root 16 0 2520 292 220 S 0.0 0.0 0:00.00 courierlogger
    2831 root 16 0 9028 620 508 S 0.0 0.0 0:00.00 authdaemond
    2855 root 16 0 9028 164 52 S 0.0 0.0 0:00.00 authdaemond
    2856 root 16 0 9028 164 52 S 0.0 0.0 0:00.00 authdaemond
    2857 root 16 0 9028 164 52 S 0.0 0.0 0:00.00 authdaemond
    2858 root 16 0 9028 164 52 S 0.0 0.0 0:00.00 authdaemond
    2861 root 16 0 9028 164 52 S 0.0 0.0 0:00.00 authdaemond
    [email protected][~]# netstat -n | grep :80 | wc -l
    212

  2. #2
    Join Date
    Nov 2003
    Location
    Auckland, New Zealand
    Posts
    584
    Do :

    top -c .

    You're counding how many port 80 connections there, not how many real connections to the server. You need to do something like :

    netstat -an | grep -c ESTABLISHED

    AND

    uname -a
    BLUETRIDENT.NET - Reliable Shared, Reseller and Dedicated Hosting Solutions Provider
    Managed Hosting with Personal Service
    Highspeed Content Servers, Lighttpd, Ruby on Rails, Cluster Servers & Rich Web Application Hosting

  3. #3
    Join Date
    Mar 2003
    Location
    California USA
    Posts
    13,290
    94.0% wa

    Alot of IOwait there, with VERY little cpu usage. What kernel are you running? What kind of site are you hosting? checked your log files? what about /var/log/messages for drive errors etc?
    Steven Ciaburri | Industry's Best Server Management - Rack911.com
    Software Auditing - 400+ Vulnerabilities Found - Quote @ https://www.RACK911Labs.com
    Fully Managed Dedicated Servers (Las Vegas, New York City, & Amsterdam) (AS62710)
    FreeBSD & Linux Server Management, Security Auditing, Server Optimization, PCI Compliance

  4. #4
    Join Date
    Mar 2004
    Location
    Odessa, Ukraine
    Posts
    605
    Some CentOS kernels cause abnomal LA. Good idea setup new kernel from kernel.org
    also need ps axuwf output too.

  5. #5
    Join Date
    Jul 2006
    Posts
    52
    I've had this before when a client is being slashdotted. What is your bandwidth? When you have a restricted bandwidth and lots of requests coming in, this will probably happen.

    You get 1000 requests for an image. They only have to send you a few lines of text to request it, but you then have to send out 10k at a time, and lots of those are sitting waiting to get packets out.

    Are you getting more requests than usual? Have you got some new big images or documents on your site? Is your ISP throttling your bandwidth?
    Secure your server with http://www.serverangel.com/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •