Site Loading Very Very Slow; Help Finding the Culprit

Discussion in 'Site & Server Administration' started by glasshoper, Apr 16, 2007.

  1. #1
    Hello everyone. My site is hosted on a dedicated server; but the site is very very slow. Sometimes it won't even load. In control panel, it shows 100% CPU usage but how is that possible; i mean i got very few visitors on my site. I wanna know how can i find the culprit that is making my site load very very slow. I have a shell access to my site too; but i don't know how to use it.
    Thank you in advance.
     
    glasshoper, Apr 16, 2007 IP
  2. sarahk

    sarahk iTamer Staff

    Messages:
    28,816
    Likes Received:
    4,536
    Best Answers:
    123
    Trophy Points:
    665
    #2
    You many need to increase the memory allocation for the site (via .htaccess) if that's the problem. Depends on the CMS and some other factors

    Please post your site name and we can take a look.
     
    sarahk, Apr 16, 2007 IP
  3. agnivo007

    agnivo007 Peon

    Messages:
    4,290
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Do you have latest versions of the softwares ? Are your services optimized ? Also a memory leak may be there...100% CPU usage? Something is surely broken!
     
    agnivo007, Apr 16, 2007 IP
  4. rootbinbash

    rootbinbash Peon

    Messages:
    2,198
    Likes Received:
    88
    Best Answers:
    0
    Trophy Points:
    0
    #4
    something is probably broken,check which commands/files using most cpu and also dont forget to check ps aux -e output.
     
    rootbinbash, Apr 17, 2007 IP
  5. glasshoper

    glasshoper Peon

    Messages:
    373
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Hi rootbinbash, that's exactly what I wanted to do. Can you please tell me how to do that? I got Interworx-CP; i got shell access too but don't know how to use it yet. Thank you.
     
    glasshoper, Apr 17, 2007 IP
  6. feroz97

    feroz97 Well-Known Member

    Messages:
    493
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    125
    #6
    Check and optimize your httpd conf , that would definitely help
     
    feroz97, Apr 17, 2007 IP
  7. rootbinbash

    rootbinbash Peon

    Messages:
    2,198
    Likes Received:
    88
    Best Answers:
    0
    Trophy Points:
    0
    #7
    download putty (google putty download, go to the first result) write the ip there and push the connect.login with user root and just write ps aux -e and hit enter.Also check the top(command top,just write top and hit enter) output.
     
    rootbinbash, Apr 17, 2007 IP
  8. Artisan

    Artisan Well-Known Member

    Messages:
    634
    Likes Received:
    35
    Best Answers:
    1
    Trophy Points:
    128
    #8
    Most probably you have something like the infinite cycle somewhere in your PHP code thus you should check the code which you have placed on the site just prior to this CPU usage surge.
     
    Artisan, Apr 17, 2007 IP
  9. glasshoper

    glasshoper Peon

    Messages:
    373
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Yeah I thought that too; but after looking back I don't think i added anything to the site. It is really strange this CPU surge happened out of a blue. It came with no warning :p . Seriously, i need help. Thanks.
     
    glasshoper, Apr 17, 2007 IP
  10. chilli_source

    chilli_source Active Member

    Messages:
    58
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    61
    #10
    as rootbinbash mentioned, download putty, login as root to your server and run the ps and top commands

    paste the results in here (highlighting text in putty will copy it to the clipboard) if you want further assistance, but we really need those commands run to see whats happening
     
    chilli_source, Apr 17, 2007 IP
  11. glasshoper

    glasshoper Peon

    Messages:
    373
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Thank you. I will paste it down here. I wonder if memory leak is happening; if that's so how do i fix it?
    -------------------------------------------------------------------------------

    top - 23:35:44 up 26 days, 21:21, 2 users, load average: 5.17, 5.13, 5.09
    Tasks: 172 total, 6 running, 165 sleeping, 0 stopped, 1 zombie
    Cpu(s): 99.3% us, 0.7% sy, 0.0% ni, 0.0% id, 0.0% wa, 0.0% hi, 0.0% si
    Mem: 514924k total, 482376k used, 32548k free, 12876k buffers
    Swap: 2096472k total, 253544k used, 1842928k free, 68060k cached

    PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
    2360 apache 25 0 22564 9560 3820 R 19.9 1.9 32:22.49 httpd
    4951 apache 25 0 22552 9484 3768 R 19.9 1.8 24:25.68 httpd
    5114 apache 25 0 22544 9488 3788 R 19.9 1.8 21:31.62 httpd
    9387 apache 25 0 22632 9612 3808 R 19.9 1.9 15:53.97 httpd
    3707 apache 25 0 22528 9280 3708 R 19.3 1.8 29:12.52 httpd
    1252 root 17 0 2908 1080 732 S 0.3 0.2 9:04.93 top
    1 root 16 0 2456 464 436 S 0.0 0.1 0:03.83 init
    2 root 34 19 0 0 0 S 0.0 0.0 0:00.38 ksoftirqd/0
    3 root 5 -10 0 0 0 S 0.0 0.0 0:00.32 events/0
    4 root 5 -10 0 0 0 S 0.0 0.0 0:00.01 khelper
    5 root 15 -10 0 0 0 S 0.0 0.0 0:00.00 kacpid
    19 root 5 -10 0 0 0 S 0.0 0.0 0:00.06 kblockd/0
    40 root 12 -10 0 0 0 S 0.0 0.0 0:00.00 aio/0
    20 root 15 0 0 0 0 S 0.0 0.0 0:00.00 khubd
    39 root 15 0 0 0 0 S 0.0 0.0 3:25.81 kswapd0
    186 root 25 0 0 0 0 S 0.0 0.0 0:00.00 kseriod
    290 root 5 -10 0 0 0 S 0.0 0.0 0:00.07 ata/0
    292 root 22 0 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_0
    300 root 19 0 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_1
    305 root 15 0 0 0 0 S 0.0 0.0 3:19.92 kjournald
    1421 root 6 -10 3008 360 356 S 0.0 0.1 0:00.01 udevd
    1615 root 6 -10 0 0 0 S 0.0 0.0 0:00.00 kauditd
    1657 root 6 -10 0 0 0 S 0.0 0.0 0:00.00 kmirrord
    1657 root 6 -10 0 0 0 S 0.0 0.0 0:00.00 kmirrord
    1681 root 19 0 0 0 0 S 0.0 0.0 0:00.00 kjournald
    2319 root 16 0 2484 500 452 S 0.0 0.1 0:22.36 syslogd
    2323 root 16 0 2452 304 300 S 0.0 0.1 0:00.00 klogd
    2350 rpc 15 0 1776 448 444 S 0.0 0.1 0:00.00 portmap
    2369 root 17 0 3436 520 516 S 0.0 0.1 0:00.00 rpc.statd
    2395 root 16 0 5700 180 148 S 0.0 0.0 0:00.11 rpc.idmapd
    2460 root 16 0 2188 436 284 S 0.0 0.1 0:00.24 smartd
    2469 root 22 0 1504 356 352 S 0.0 0.1 0:00.00 acpid
    2530 root 16 0 4952 712 596 S 0.0 0.1 0:14.62 sshd
    2543 root 16 0 3172 500 496 S 0.0 0.1 0:00.00 xinetd
    2555 ntp 16 0 5208 5208 3436 S 0.0 1.0 0:00.92 ntpd
    2564 root 16 0 5208 496 460 S 0.0 0.1 0:00.00 ntpd
    2565 clamav 25 0 218m 42m 944 S 0.0 8.5 19:28.56 clamd
    2574 clamav 15 0 6052 1088 932 S 0.0 0.2 0:05.83 freshclam
    2692 root 16 0 34760 2140 1284 S 0.0 0.4 0:05.03 spamd
     
    glasshoper, Apr 17, 2007 IP
  12. Artisan

    Artisan Well-Known Member

    Messages:
    634
    Likes Received:
    35
    Best Answers:
    1
    Trophy Points:
    128
    #12
    Apache is loading your CPU but is not consuming extra memory, thus I should repeat my advice to check for the infinite cycles, they may be not in the PHP code but in the .htaccess files using instructions which are causing the mod_rewrite or some other part of the Apache to cycle infinitely, or yet somewhere else but related to the web server.
     
    Artisan, Apr 17, 2007 IP
  13. glasshoper

    glasshoper Peon

    Messages:
    373
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #13
    i check my .htaccess and it looks same as it was before when everything was nice and smooth. good old days:p . What or where else can be the problem?
     
    glasshoper, Apr 18, 2007 IP
  14. rootbinbash

    rootbinbash Peon

    Messages:
    2,198
    Likes Received:
    88
    Best Answers:
    0
    Trophy Points:
    0
    #14
    Edit:

    put an extra 512 ram to the server,it will fix the problem probably.also run the httpd as nobody not apache.

    Please paste the ps aux -e output
     
    rootbinbash, Apr 18, 2007 IP
  15. glasshoper

    glasshoper Peon

    Messages:
    373
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #15
    I got this after inserting ps aux -e output: :p


    ERROR: Unknown user-defined format specifier "utput".
    ********* simple selection ********* ********* selection by list *********
    -A all processes -C by command name
    -N negate selection -G by real group ID (supports names)
    -a all w/ tty except session leaders -U by real user ID (supports names)
    -d all except session leaders -g by session OR by effective group name
    -e all processes -p by process ID
    T all processes on this terminal -s processes in the sessions given
    a all w/ tty, including other users -t by tty
    g OBSOLETE -- DO NOT USE -u by effective user ID (supports names)
    r only running processes U processes for specified users
    x processes w/o controlling ttys t by tty
    *********** output format ********** *********** long options ***********
    -o,o user-defined -f full --Group --User --pid --cols --ppid
    -j,j job control s signal --group --user --sid --rows --info
    -O,O preloaded -o v virtual memory --cumulative --format --deselect
    -l,l long u user-oriented --sort --tty --forest --version
    -F extra full X registers --heading --no-heading --context
    ********* misc options *********
    -V,V show version L list format codes f ASCII art forest
    -m,m,-L,-T,H threads S children in sum -y change -l format
    -M,Z security data c true command name -c scheduling class
    -w,w wide output n numeric WCHAN,UID -H process hierarchy
     
    glasshoper, Apr 18, 2007 IP
  16. chilli_source

    chilli_source Active Member

    Messages:
    58
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    61
    #16
    ah, just run 'ps aux -e' (without 'output' at the end) ;)
     
    chilli_source, Apr 18, 2007 IP
  17. glasshoper

    glasshoper Peon

    Messages:
    373
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #17
    :D


    USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
    root 1 0.0 0.0 2456 464 ? S Mar22 0:03 init [3]
    root 2 0.0 0.0 0 0 ? SN Mar22 0:00 [ksoftirqd/0]
    root 3 0.0 0.0 0 0 ? S< Mar22 0:00 [events/0]
    root 4 0.0 0.0 0 0 ? S< Mar22 0:00 [khelper]
    root 5 0.0 0.0 0 0 ? S< Mar22 0:00 [kacpid]
    root 19 0.0 0.0 0 0 ? S< Mar22 0:00 [kblockd/0]
    root 40 0.0 0.0 0 0 ? S< Mar22 0:00 [aio/0]
    root 20 0.0 0.0 0 0 ? S Mar22 0:00 [khubd]
    root 39 0.0 0.0 0 0 ? S Mar22 3:26 [kswapd0]
    root 186 0.0 0.0 0 0 ? S Mar22 0:00 [kseriod]
    root 290 0.0 0.0 0 0 ? S< Mar22 0:00 [ata/0]
    root 292 0.0 0.0 0 0 ? S Mar22 0:00 [scsi_eh_0]
    root 300 0.0 0.0 0 0 ? S Mar22 0:00 [scsi_eh_1]
    root 305 0.0 0.0 0 0 ? S Mar22 3:20 [kjournald]
    root 1421 0.0 0.0 3008 360 ? S<s Mar22 0:00 udevd
    root 1615 0.0 0.0 0 0 ? S< Mar22 0:00 [kauditd]
    root 1657 0.0 0.0 0 0 ? S< Mar22 0:00 [kmirrord]
    root 1681 0.0 0.0 0 0 ? S Mar22 0:00 [kjournald]
    root 2319 0.0 0.0 2484 500 ? Ss Mar22 0:22 syslogd -m 0
    root 2323 0.0 0.0 2452 304 ? Ss Mar22 0:00 klogd -x
    rpc 2350 0.0 0.0 1776 448 ? Ss Mar22 0:00 portmap
    root 2369 0.0 0.1 3436 520 ? Ss Mar22 0:00 rpc.statd
    root 2395 0.0 0.0 5700 180 ? Ss Mar22 0:00 rpc.idmapd
    root 2460 0.0 0.0 2188 436 ? S Mar22 0:00 /usr/sbin/smartd
    root 2469 0.0 0.0 1504 356 ? Ss Mar22 0:00 /usr/sbin/acpid
    root 2530 0.0 0.1 4952 712 ? Ss Mar22 0:14 /usr/sbin/sshd
    root 2543 0.0 0.0 3172 500 ? Ss Mar22 0:00 xinetd -stayalive
    ntp 2555 0.0 1.0 5208 5208 ? SLs Mar22 0:00 ntpd -u ntp:ntp -
    root 2564 0.0 0.0 5208 496 ? S Mar22 0:00 ntpd -u ntp:ntp -
    clamav 2565 0.0 3.6 225212 18732 ? Ss Mar22 19:41 /usr/sbin/clamd
    clamav 2574 0.0 0.1 6052 1028 ? Ss Mar22 0:05 /usr/bin/freshcla
    root 2692 0.0 0.4 34760 2140 ? Ss Mar22 0:05 /usr/bin/spamd -d
    root 2701 0.0 0.0 1920 240 ? Ss Mar22 0:00 gpm -m /dev/input
    proftpd 2812 0.0 0.0 3480 408 ? Ss Mar22 0:02 proftpd: (accepti
    root 2821 0.0 0.1 5860 592 ? Ss Mar22 0:01 crond
    xfs 2841 0.0 0.1 3728 596 ? Ss Mar22 0:00 xfs -droppriv -da
    root 2858 0.0 0.0 2764 340 ? Ss Mar22 0:00 /usr/sbin/atd
    dbus 2877 0.0 0.0 3104 320 ? Ss Mar22 0:00 dbus-daemon-1 --s
    root 2886 0.0 0.2 6904 1256 ? Ss Mar22 0:01 hald
    root 2893 0.0 0.0 1532 352 tty1 Ss+ Mar22 0:00 /sbin/mingetty tt
    root 2894 0.0 0.0 1636 352 tty2 Ss+ Mar22 0:00 /sbin/mingetty tt
    root 2895 0.0 0.0 1812 352 tty3 Ss+ Mar22 0:00 /sbin/mingetty tt
    root 2896 0.0 0.0 1596 352 tty4 Ss+ Mar22 0:00 /sbin/mingetty tt
    root 2897 0.0 0.0 1764 352 tty5 Ss+ Mar22 0:00 /sbin/mingetty tt
    root 2898 0.0 0.0 3044 352 tty6 Ss+ Mar22 0:00 /sbin/mingetty tt
    root 2899 0.0 0.1 3600 944 ? Ss Mar22 0:00 /bin/sh /usr/bin/
    root 3460 0.0 0.0 2680 272 ? S Mar22 0:04 svscan /service
    root 3461 0.0 0.0 1692 120 ? S Mar22 0:00 readproctitle ser
    root 3464 0.0 0.0 1860 184 ? S Mar22 0:00 supervise tinydns
    root 3465 0.0 0.0 2020 184 ? S Mar22 0:00 supervise log
    root 3466 0.0 0.0 2872 184 ? S Mar22 0:00 supervise smtp
    root 3467 0.0 0.0 2880 184 ? S Mar22 0:00 supervise log
    root 3468 0.0 0.0 2716 184 ? S Mar22 0:00 supervise send
    root 3469 0.0 0.0 2700 184 ? S Mar22 0:00 supervise log
    root 3470 0.0 0.0 1604 184 ? S Mar22 0:00 supervise dnscach
    root 3471 0.0 0.0 2868 184 ? S Mar22 0:00 supervise log
    root 3472 0.0 0.0 2968 184 ? S Mar22 0:00 supervise pop3
    root 3473 0.0 0.0 2620 184 ? S Mar22 0:00 supervise log
    root 3474 0.0 0.0 2932 184 ? S Mar22 0:00 supervise pop3-ss
    root 3475 0.0 0.0 1860 184 ? S Mar22 0:00 supervise log
    root 3476 0.0 0.0 2228 184 ? S Mar22 0:00 supervise imap4
    root 3477 0.0 0.0 2484 184 ? S Mar22 0:00 supervise log
    root 3478 0.0 0.0 2756 184 ? S Mar22 0:00 supervise imap4-s
    root 3479 0.0 0.0 3340 184 ? S Mar22 0:00 supervise log
    root 3480 0.0 0.0 1516 192 ? S Mar22 0:16 supervise tinydns
    root 3481 0.0 0.0 1908 188 ? S Mar22 0:00 supervise log
    dnscache 3485 0.0 0.2 5564 1164 ? S Mar22 0:39 /usr/bin/dnscache
    tinydns 3486 0.0 0.0 2616 308 ? S Mar22 0:03 /usr/bin/tinydns
    dnslog 3487 0.0 0.0 1720 296 ? S Mar22 0:21 multilog t ./main
    dnslog 3488 0.0 0.0 1640 280 ? S Mar22 0:01 multilog t ./main
    dnslog 3490 0.0 0.0 3296 296 ? S Mar22 0:09 multilog t ./main
    qmails 3509 0.0 0.0 2916 372 ? S Mar22 0:06 qmail-send
    root 3510 0.0 0.0 2092 260 ? S Mar22 0:00 /usr/bin/tcpserve
    vpopmail 3511 0.0 0.1 2764 520 ? S Mar22 0:00 /usr/bin/tcpserve
    qmaill 3512 0.0 0.0 3248 276 ? S Mar22 0:00 /usr/bin/multilog
    qmaill 3513 0.0 0.0 2384 276 ? S Mar22 0:00 /usr/bin/multilog
    root 3514 0.0 0.0 2188 264 ? S Mar22 0:00 /usr/bin/tcpserve
    qmaill 3515 0.0 0.0 2404 272 ? S Mar22 0:00 /usr/bin/multilog
    root 3516 0.0 0.0 2292 260 ? S Mar22 0:00 /usr/bin/tcpserve
    qmaill 3517 0.0 0.0 1944 272 ? S Mar22 0:00 /usr/bin/multilog
    qmaill 3518 0.0 0.0 2432 276 ? S Mar22 0:04 /usr/bin/multilog
    root 3537 0.0 0.0 1764 260 ? S Mar22 0:00 /usr/bin/tcpserve
    qmaill 3538 0.0 0.0 3472 272 ? S Mar22 0:00 /usr/bin/multilog
    root 3559 0.0 0.0 2768 248 ? S Mar22 0:00 qmail-lspawn ./Ma
    qmailr 3560 0.0 0.0 5704 344 ? S Mar22 0:04 qmail-rspawn
    qmailq 3561 0.0 0.0 1920 284 ? S Mar22 0:00 qmail-clean
    spamd 3615 0.0 0.2 34760 1260 ? S Mar22 0:00 spamd child
    spamd 3616 0.0 0.2 34760 1236 ? S Mar22 0:00 spamd child
    root 18513 0.0 0.2 5640 1068 ? S Apr12 0:00 /bin/sh /home/int
    root 18550 0.0 0.5 15276 2848 ? Ss Apr12 0:00 /home/interworx/b
    iworx 18561 0.0 0.3 15644 1908 ? S Apr12 0:00 /home/interworx/b
    iworx 18562 0.0 0.3 15644 1908 ? S Apr12 0:01 /home/interworx/b
    iworx 18563 0.0 0.3 15644 1908 ? S Apr12 0:01 /home/interworx/b
    root 30533 0.0 0.0 0 0 ? S Apr16 0:02 [pdflush]
    root 16290 0.0 0.3 7544 1720 ? Ss Apr16 1:00 sshd: root@pts/0
    root 16336 0.0 0.2 4816 1092 pts/0 Ss Apr16 0:00 -bash
    root 1252 0.4 0.2 2908 1076 pts/0 S+ Apr16 9:22 top
    root 10808 0.0 0.2 7976 1280 ? Ss Apr17 0:00 cupsd
    iworx 5742 0.0 3.9 30916 20264 ? S Apr17 0:14 /home/interworx/b
    root 6476 0.0 0.2 5164 1072 ? S Apr17 0:00 /bin/sh /usr/bin/
    mysql 6533 0.0 1.1 127812 6072 ? Sl Apr17 0:27 /usr/libexec/mysq
    iworx 7307 0.0 3.8 31796 19692 ? S Apr17 0:13 /home/interworx/b
    iworx 8987 0.0 3.9 30904 20444 ? S Apr17 0:10 /home/interworx/b
    iworx 9120 0.0 3.8 31824 19972 ? S Apr17 0:11 /home/interworx/b
    iworx 26043 0.0 4.1 31840 21428 ? S Apr17 0:06 /home/interworx/b
    iworx 649 0.0 3.9 31776 20408 ? S Apr17 0:06 /home/interworx/b
    iworx 776 0.0 4.1 31744 21408 ? S Apr17 0:06 /home/interworx/b
    root 2353 0.0 1.2 19544 6356 ? Ss Apr17 0:00 /usr/sbin/httpd -
    apache 2357 0.0 1.7 22284 8964 ? S Apr17 0:00 /usr/sbin/httpd -
    apache 2358 0.0 2.1 23888 11144 ? S Apr17 0:01 /usr/sbin/httpd -
    apache 2359 0.0 1.7 22504 9036 ? S Apr17 0:00 /usr/sbin/httpd -
    apache 2360 21.0 1.8 22564 9432 ? R Apr17 49:28 /usr/sbin/httpd -
    apache 2361 0.0 2.0 23188 10500 ? S Apr17 0:02 /usr/sbin/httpd -
    apache 2560 0.0 2.1 23904 11136 ? S Apr17 0:01 /usr/sbin/httpd -
    apache 2676 0.0 1.7 22448 9024 ? S Apr17 0:00 /usr/sbin/httpd -
    apache 2687 0.0 1.7 22500 9056 ? S Apr17 0:00 /usr/sbin/httpd -
    apache 2827 0.0 1.4 21312 7600 ? S Apr17 0:00 /usr/sbin/httpd -
    apache 3543 0.0 1.6 22072 8676 ? S Apr17 0:00 /usr/sbin/httpd -
    apache 3684 0.0 1.5 21948 8224 ? S Apr17 0:00 /usr/sbin/httpd -
    apache 3707 20.4 1.7 22528 9160 ? R Apr17 46:18 /usr/sbin/httpd -
    apache 3808 0.0 1.7 22584 9080 ? S Apr17 0:00 /usr/sbin/httpd -
    apache 3969 0.0 1.7 22244 8960 ? S Apr17 0:03 /usr/sbin/httpd -
    apache 3977 0.0 1.0 19944 5572 ? S Apr17 0:00 /usr/sbin/httpd -
    apache 3978 0.0 1.6 21776 8356 ? S Apr17 0:00 /usr/sbin/httpd -
    apache 4050 0.0 1.7 22260 8912 ? S Apr17 0:00 /usr/sbin/httpd -
    apache 4074 0.0 1.6 22164 8656 ? S Apr17 0:00 /usr/sbin/httpd -
    apache 4120 0.0 1.6 21776 8308 ? S Apr17 0:00 /usr/sbin/httpd -
    apache 4951 19.1 1.8 22552 9364 ? R Apr17 41:31 /usr/sbin/httpd -
    apache 5073 0.0 1.1 20256 5848 ? S Apr17 0:00 /usr/sbin/httpd -
    apache 5086 0.0 1.7 22444 9036 ? S Apr17 0:00 /usr/sbin/httpd -
    apache 5114 17.9 1.8 22544 9368 ? R Apr17 38:37 /usr/sbin/httpd -
    apache 7979 0.0 1.6 22144 8736 ? S Apr17 0:00 /usr/sbin/httpd -
    apache 8574 0.0 1.6 21728 8248 ? S Apr17 0:00 /usr/sbin/httpd -
    apache 8674 0.0 1.6 22120 8672 ? S Apr17 0:01 /usr/sbin/httpd -
    apache 8929 0.0 1.6 21968 8484 ? S Apr17 0:01 /usr/sbin/httpd -
    apache 8931 0.0 1.6 22152 8708 ? S Apr17 0:01 /usr/sbin/httpd -
    apache 8932 0.0 1.6 22288 8572 ? S Apr17 0:01 /usr/sbin/httpd -
    apache 8934 0.0 1.6 22160 8456 ? S Apr17 0:01 /usr/sbin/httpd -
    apache 9384 0.0 1.6 22148 8684 ? S Apr17 0:00 /usr/sbin/httpd -
    apache 9387 17.9 1.8 22632 9488 ? R Apr17 33:00 /usr/sbin/httpd -
    apache 9388 0.0 1.7 22300 8828 ? S Apr17 0:00 /usr/sbin/httpd -
    apache 9477 0.0 1.4 21448 7712 ? S Apr17 0:00 /usr/sbin/httpd -
    apache 9482 0.0 1.4 21448 7720 ? S Apr17 0:00 /usr/sbin/httpd -
    apache 9642 0.0 1.4 21328 7680 ? S Apr17 0:00 /usr/sbin/httpd -
    apache 9653 0.0 1.1 20256 5848 ? S Apr17 0:00 /usr/sbin/httpd -
    apache 9668 0.0 1.4 21328 7668 ? S Apr17 0:00 /usr/sbin/httpd -
    apache 9671 0.0 1.3 21448 6956 ? S Apr17 0:00 /usr/sbin/httpd -
    apache 9672 0.0 0.9 20256 4920 ? S Apr17 0:00 /usr/sbin/httpd -
    apache 9691 0.0 1.2 22400 6444 ? S Apr17 0:01 /usr/sbin/httpd -
    apache 9724 0.0 0.9 21328 5096 ? S Apr17 0:00 /usr/sbin/httpd -
    apache 9731 0.0 0.9 21328 5104 ? S Apr17 0:00 /usr/sbin/httpd -
    apache 9736 0.0 0.9 21448 5116 ? S Apr17 0:00 /usr/sbin/httpd -
    apache 9752 0.0 0.9 21448 5116 ? S Apr17 0:00 /usr/sbin/httpd -
    apache 9755 0.0 0.9 20248 4756 ? S Apr17 0:00 /usr/sbin/httpd -
    apache 9756 0.0 1.2 22156 6184 ? S Apr17 0:01 /usr/sbin/httpd -
    apache 9764 0.0 1.6 22200 8744 ? S Apr17 0:01 /usr/sbin/httpd -
    apache 9788 0.0 1.4 22564 7348 ? S Apr17 0:01 /usr/sbin/httpd -
    apache 9791 0.0 0.9 19892 4784 ? S Apr17 0:00 /usr/sbin/httpd -
    apache 9792 0.0 1.9 23100 10228 ? S Apr17 0:04 /usr/sbin/httpd -
    apache 9840 0.0 1.7 22172 8792 ? S Apr17 0:01 /usr/sbin/httpd -
    apache 10080 0.0 1.7 22420 8860 ? S Apr17 0:00 /usr/sbin/httpd -
    apache 10121 0.0 1.7 22232 8856 ? S Apr17 0:01 /usr/sbin/httpd -
    apache 12000 0.0 1.7 22156 8776 ? S Apr17 0:00 /usr/sbin/httpd -
    apache 13910 0.0 1.5 21496 7904 ? S Apr17 0:00 /usr/sbin/httpd -
    apache 16325 5.5 1.8 22532 9436 ? R Apr17 7:15 /usr/sbin/httpd -
    apache 17516 4.4 1.8 22560 9528 ? R Apr17 5:22 /usr/sbin/httpd -
    apache 18717 0.0 1.5 21480 7860 ? S Apr17 0:00 /usr/sbin/httpd -
    apache 20690 0.0 1.6 22184 8276 ? S Apr17 0:00 /usr/sbin/httpd -
    apache 24876 0.0 1.4 21332 7544 ? S 00:17 0:00 /usr/sbin/httpd -
    apache 25823 0.0 1.1 20244 5828 ? S 00:26 0:00 /usr/sbin/httpd -
    apache 25832 0.0 1.1 20244 5828 ? S 00:26 0:00 /usr/sbin/httpd -
    apache 26122 0.0 1.6 22260 8752 ? S 00:28 0:00 /usr/sbin/httpd -
    apache 26127 0.1 1.6 22096 8736 ? S 00:28 0:03 /usr/sbin/httpd -
    apache 26129 0.0 1.7 22408 8988 ? S 00:28 0:00 /usr/sbin/httpd -
    apache 26130 0.0 1.6 22168 8724 ? S 00:28 0:00 /usr/sbin/httpd -
    apache 26371 0.1 1.6 22060 8708 ? S 00:30 0:03 /usr/sbin/httpd -
    apache 26941 0.0 1.5 22096 8228 ? S 00:34 0:00 /usr/sbin/httpd -
    apache 27103 0.0 1.6 22088 8292 ? S 00:35 0:00 /usr/sbin/httpd -
    apache 27127 0.0 1.1 22380 5760 ? S 00:35 0:00 /usr/sbin/httpd -
    apache 27537 0.0 1.7 22188 8796 ? S 00:38 0:01 /usr/sbin/httpd -
    apache 27762 0.1 1.6 21920 8572 ? S 00:40 0:03 /usr/sbin/httpd -
    apache 27771 0.1 1.7 22132 8780 ? S 00:40 0:03 /usr/sbin/httpd -
    apache 27774 0.1 1.6 21952 8576 ? S 00:40 0:02 /usr/sbin/httpd -
    apache 27786 0.1 1.7 22296 8932 ? S 00:40 0:03 /usr/sbin/httpd -
    apache 27789 0.1 1.6 21884 8468 ? S 00:40 0:02 /usr/sbin/httpd -
    apache 27790 0.0 1.7 22168 8804 ? S 00:40 0:00 /usr/sbin/httpd -
    root 29980 0.0 0.0 0 0 ? S 00:57 0:00 [pdflush]
    apache 30773 0.2 1.6 21948 8508 ? S 01:04 0:01 /usr/sbin/httpd -
    tingmoco 31372 0.0 0.2 3492 1240 ? S 01:08 0:00 proftpd: phpcow@t
    iworx 31373 0.0 0.3 15644 1908 ? S 01:08 0:00 /home/interworx/b
    root 32360 0.1 0.4 8504 2304 ? Ss 01:16 0:00 sshd: root@pts/1
    root 32371 0.0 0.1 6440 916 ? S 01:17 0:00 crond
    iworx 32372 0.0 0.1 3900 872 ? Ss 01:17 0:00 /bin/bash -c cd /
    root 32373 0.7 2.7 21220 14332 ? S 01:17 0:00 /home/interworx/b
    root 32524 0.1 0.2 5612 1404 pts/1 Ss 01:17 0:00 -bash
    iworx 32594 0.0 0.3 15644 1908 ? S 01:17 0:00 /home/interworx/b
    root 32595 0.0 0.1 2940 868 ? S 01:17 0:00 sh -c /home/inter
    root 32596 3.4 2.8 21880 14856 ? S 01:17 0:00 /home/interworx/b
    iworx 32602 0.0 0.3 15644 1908 ? S 01:17 0:00 /home/interworx/b
    root 32603 5.3 2.7 21068 14364 ? S 01:17 0:00 /home/interworx/b
    root 32607 0.0 0.0 0 0 ? Z 01:17 0:00 [tinydns] <defunc
    root 32608 0.0 0.1 2168 996 ? RL 01:17 0:00 /home/interworx/b
    root 32609 0.0 0.1 3744 792 pts/1 R+ 01:17 0:00 ps aux -e
     
    glasshoper, Apr 18, 2007 IP
  18. rootbinbash

    rootbinbash Peon

    Messages:
    2,198
    Likes Received:
    88
    Best Answers:
    0
    Trophy Points:
    0
    #18
    please edit your post (ps aux -e one) for security purposes (delete the output and say something)

    i dont see mysqld running?are your sites/scripts using sql?
     
    rootbinbash, Apr 18, 2007 IP
  19. chilli_source

    chilli_source Active Member

    Messages:
    58
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    61
    #19
    for a start, an extra 512mb ram will help you alot, as you are swapping quite a fair bit to disk
    secondly, certain apache processes are using alot of cpu usage, are you certain you havent changed any scripts recently?
    and have you ever optimised your httpd.conf at all to suit your server configuration?

    does the load drop when you restart apache? ('service httpd restart')
    then run 'top' afterwards to see the load
     
    chilli_source, Apr 18, 2007 IP
  20. glasshoper

    glasshoper Peon

    Messages:
    373
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #20
    sorry, i didn't understand this part. :confused:

    yeah i think it uses sql
     
    glasshoper, Apr 18, 2007 IP