Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2002
    Location
    egypt
    Posts
    286

    * high load .... reason ?

    i have a high load on my server and i dont know the reason

    i t



    here is my top

    5:08pm up 30 days, 22:21, 1 user, load average: 13.91, 10.49, 9.30
    233 processes: 226 sleeping, 7 running, 0 zombie, 0 stopped
    CPU states: 31.8% user, 14.3% system, 0.0% nice, 53.8% idle
    Mem: 1548112K av, 1527016K used, 21096K free, 0K shrd, 110676K buff
    Swap: 1044216K av, 119112K used, 925104K free 1118948K cached



    my vmstat

    procs memory swap io system cpu
    r b w swpd free buff cache si so bi bo in cs us sy id
    1 0 0 119112 23532 110724 1119500 1 5 10 2 7 3 2 6 12
    0 27 2 119112 24852 110740 1119868 0 0 55 1050 453 741 46 22 32
    1 11 1 119112 19660 110756 1119928 0 0 3 1392 608 451 32 11 57
    0 13 4 119112 24640 110760 1120048 0 0 2 1091 491 630 40 18 42
    0 2 1 119112 24624 110776 1120248 0 0 25 1368 542 520 24 6 70
    2 3 4 119112 25276 110780 1120324 0 0 3 940 472 508 57 16 27
    0 22 4 119112 23372 110788 1120448 0 0 3 1093 513 624 49 16 35




    as you can see in vmstat ther server is not using swap


    where i restart http the load come down ... then after a few minutes its come up again



    any reason ??

  2. #2
    Join Date
    May 2003
    Posts
    472
    Sounds like you have very cpu intensive sites.

    A user is probably running a inefficient CGI script.

    If you have CPanel check the "Apache Status" page and you can see what is causing the high load.

    I would recommend installing turck mmcache which caches php scripts to reduce load.

    Also, try turning KeepAlive off in httpd.conf , it will dramatically reduce your httpd load.

  3. #3
    Join Date
    Nov 2002
    Location
    egypt
    Posts
    286
    i already have mmcache installed


    i go to the apcahe status page

    and

    Current Time: Monday, 22-Mar-2004 17:19:06 CST
    Restart Time: Monday, 22-Mar-2004 16:59:19 CST
    Parent Server Generation: 396
    Server uptime: 19 minutes 47 seconds
    Total accesses: 18762 - Total Traffic: 118.3 MB
    CPU Usage: u147.43 s15.3 cu.18 cs.41 - 13.8% CPU load
    15.8 requests/sec - 102.1 kB/second - 6.5 kB/request
    59 requests currently being processed, 8 idle servers

    what else i can see there

  4. #4
    Join Date
    May 2003
    Posts
    472
    There is a column for CPU cycles, look for something around 10 or higher. If there is something 15 or higher, then they are running a script or site that is a resource hog.

    Maybe you could show us a little from top so we can see what programs are using what amount of CPU.

    PM me if you want help with optimizing apache.

Posting Permissions

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