• 11-09-2008, 12:24:09
    #1
    Üyeliği durduruldu
    Arkadaşlar serverların birinde devamlı hergün karşılaştığım bir problem var. Server da anlamsız bir şekilde load average tavana fırlıyor. 20 dakika içerisinde 90 lara geliyor bir süre bekledikten sonra tekrar düşüşe geçiyor. Bu süre zarfında serverdaki tüm siteler ya açılmıyor açıldığındada database hatası alıyor.
    resimdede gördüğünüz gibi ;






    Durum hakkında biraz bilgilendirilirsem çok sevineceğim.
    Cevaplar için teşekkürler.
  • 11-09-2008, 12:27:29
    #2
    load fırladığından top -c yazıp çıktısını buraya eklermisin
  • 11-09-2008, 12:29:42
    #3
    Kurumsal Üye
    Loadlar yükseldiği zaman

    ps -aux

    komutunu yazıp çıktısını koyabilirmisiniz ?
  • 11-09-2008, 12:30:08
    #4
    Üyeliği durduruldu
    zaten konuyu açarken yükselişteydi şimdi bu değerlerde geziniyor. ss aldım buyrun.
  • 11-09-2008, 12:31:49
    #5
    Üyeliği durduruldu
    Onurss adlı üyeden alıntı: mesajı görüntüle
    Loadlar yükseldiği zaman

    ps -aux

    komutunu yazıp çıktısını koyabilirmisiniz ?
    Onur senin istediğin çıktı ise burada
    Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.3/FAQ
    USER       PID %CPU %MEM   VSZ  RSS TTY      STAT START   TIME COMMAND
    root         1  0.0  0.0  3532  548 ?        S    Aug25   0:37 init [3]
    root         2  0.0  0.0     0    0 ?        S    Aug25   0:00 [migration/0]
    root         3  0.0  0.0     0    0 ?        SN   Aug25   0:15 [ksoftirqd/0]
    root         4  0.0  0.0     0    0 ?        S    Aug25   0:00 [migration/1]
    root         5  0.0  0.0     0    0 ?        SN   Aug25   0:24 [ksoftirqd/1]
    root         6  0.0  0.0     0    0 ?        S<   Aug25   2:02 [events/0]
    root         7  0.0  0.0     0    0 ?        S<   Aug25   6:15 [events/1]
    root         8  0.0  0.0     0    0 ?        S<   Aug25   0:00 [khelper]
    root         9  0.0  0.0     0    0 ?        S<   Aug25   0:00 [kacpid]
    root        41  0.0  0.0     0    0 ?        S<   Aug25   2:46 [kblockd/0]
    root        42  0.0  0.0     0    0 ?        S<   Aug25   2:39 [kblockd/1]
    root        43  0.0  0.0     0    0 ?        S    Aug25   0:00 [khubd]
    root        62  0.0  0.0     0    0 ?        S    Aug25   0:40 [kswapd0]
    root        63  0.0  0.0     0    0 ?        S<   Aug25   0:00 [aio/0]
    root        64  0.0  0.0     0    0 ?        S<   Aug25   0:00 [aio/1]
    root       208  0.0  0.0     0    0 ?        S    Aug25   0:00 [kseriod]
    root       437  1.2  0.0     0    0 ?        S    Aug25 306:21 [kjournald]
    apache     502  3.8  1.8 60936 37832 ?       S    10:50   0:54 /usr/sbin/httpd
    apache     536  2.0  1.6 57960 32792 ?       S    10:50   0:29 /usr/sbin/httpd
    apache     537  1.9  1.6 57724 32592 ?       S    10:50   0:27 /usr/sbin/httpd
    root      1101  0.0  0.0     0    0 ?        S<   Aug25   0:00 [kauditd]
    root      1644  0.0  0.0  3144  460 ?        S<s  Aug25   0:00 udevd
    apache    1756  1.8  1.3 51140 27692 ?       S    10:56   0:18 /usr/sbin/httpd
    apache    1779  1.8  1.4 52656 29212 ?       S    10:56   0:19 /usr/sbin/httpd
    apache    1781  1.9  1.4 51904 28444 ?       S    10:56   0:20 /usr/sbin/httpd
    apache    1782  1.8  1.4 51800 28300 ?       S    10:56   0:18 /usr/sbin/httpd
    apache    1823  2.2  1.6 57916 32724 ?       S    10:56   0:23 /usr/sbin/httpd
    apache    1843  2.1  1.3 51028 27576 ?       S    10:56   0:22 /usr/sbin/httpd
    apache    1855  2.2  1.8 61104 36284 ?       S    10:56   0:22 /usr/sbin/httpd
    apache    1863  2.0  1.7 59828 34612 ?       S    10:56   0:21 /usr/sbin/httpd
    apache    1865  1.9  1.4 51860 28408 ?       S    10:56   0:20 /usr/sbin/httpd
    apache    1866  2.0  1.4 51808 28392 ?       S    10:56   0:21 /usr/sbin/httpd
    apache    1867  2.0  1.5 54116 30932 ?       S    10:56   0:21 /usr/sbin/httpd
    apache    1896  1.9  1.4 51816 28356 ?       S    10:56   0:19 /usr/sbin/httpd
    apache    1897  1.8  1.4 51856 28368 ?       S    10:56   0:18 /usr/sbin/httpd
    apache    1900  2.2  1.7 59176 36100 ?       S    10:56   0:23 /usr/sbin/httpd
    apache    1930  2.3  1.5 54748 31604 ?       S    10:56   0:23 /usr/sbin/httpd
    apache    1952  2.1  1.6 57888 32672 ?       S    10:56   0:22 /usr/sbin/httpd
    apache    1955  1.8  1.4 51788 28308 ?       S    10:56   0:18 /usr/sbin/httpd
    apache    1978  1.9  1.4 51844 28360 ?       S    10:56   0:19 /usr/sbin/httpd
    apache    1979  2.0  1.4 52644 29200 ?       S    10:56   0:20 /usr/sbin/httpd
    apache    1980  2.1  1.4 51844 28384 ?       S    10:56   0:21 /usr/sbin/httpd
    apache    1998  1.8  1.4 51820 28364 ?       S    10:56   0:19 /usr/sbin/httpd
    apache    2002  2.0  1.4 51852 28420 ?       S    10:56   0:20 /usr/sbin/httpd
    apache    2008  1.7  1.4 51792 28328 ?       S    10:56   0:17 /usr/sbin/httpd
    apache    2140  2.1  1.4 52876 29400 ?       S    10:57   0:21 /usr/sbin/httpd
    apache    2156  2.3  1.4 52820 29292 ?       S    10:57   0:22 /usr/sbin/httpd
    apache    2174  2.0  1.4 51756 28292 ?       S    10:57   0:20 /usr/sbin/httpd
    apache    2233  3.2  1.6 57832 32652 ?       S    10:57   0:31 /usr/sbin/httpd
    psaadm    2384  0.0  1.2 43384 24780 ?       S    Sep06   0:20 /usr/local/psa/admin/bin/httpsd
    root      2394  0.0  0.1 10084 2916 ?        Ss   10:58   0:00 sshd: root@pts/0
    root      2633  0.0  0.0  5428 1428 pts/0    Ss   10:59   0:00 -bash
    root      2847  0.0  0.1  9328 2236 ?        Ss   Sep07   0:00 cupsd
    apache    2875  0.0  1.0 39736 20276 ?       S    Sep07   0:13 /usr/sbin/httpd
    root      2914  0.0  0.0  2740  528 ?        Ss   Aug25   1:04 syslogd -m 0
    root      2918  0.0  0.0  2600  376 ?        Ss   Aug25   0:00 klogd -x
    root      2931  0.0  0.0  2260  284 ?        Ss   Aug25   0:42 irqbalance
    rpc       2950  0.0  0.0  1884  552 ?        Ss   Aug25   0:00 portmap
    rpcuser   2969  0.0  0.0  3720  796 ?        Ss   Aug25   0:00 rpc.statd
    root      2999  0.0  0.0  5344  380 ?        Ss   Aug25   0:28 rpc.idmapd
    root      3066  0.0  0.0  3208  492 ?        S    Aug25   0:00 /usr/sbin/smartd
    root      3075  0.0  0.0  3144  428 ?        Ss   Aug25   0:00 /usr/sbin/acpid
    root      3155  0.0  0.0  5816 1152 ?        Ss   Aug25   0:10 /usr/sbin/sshd
    root      3299  0.0  0.0  3536  340 ?        Ss   Aug25   0:00 gpm -m /dev/input/mice -t imps2
    named     3328  0.0  0.1 49072 3136 ?        Ssl  Aug25   1:13 /usr/sbin/named -u named -c /etc/named.conf -u named -t /var/named/run-root
    root      3394  0.0  0.0  6092 1236 ?        S    Aug25   0:00 /bin/sh /usr/bin/mysqld_safe --defaults-file=/etc/my.cnf --pid-file=/var/run/
    mysql     3428  6.4  3.3 180420 66492 ?      Sl   Aug25 1584:57 /usr/libexec/mysqld --defaults-file=/etc/my.cnf --basedir=/usr --datadir=/va
    psaadm    3484  0.0  1.0 43024 21868 ?       S    Sep07   0:10 /usr/local/psa/admin/bin/httpsd
    postgres  3485  0.0  0.1 20460 2128 ?        S    Aug25   0:01 /usr/bin/postmaster -p 5432 -D /var/lib/pgsql/data
    root      3500  0.0  1.2 31460 25420 ?       Ss   Aug25   1:57 /usr/bin/spamd --username=popuser --daemonize --nouser-config --helper-home-d
    popuser   3501  0.0  1.1 31460 23920 ?       S    Aug25   0:00 spamd child
    popuser   3502  0.0  1.1 31460 23872 ?       S    Aug25   0:00 spamd child
    root      3533  0.0  1.4 47848 28620 ?       Ss   Aug25   2:55 /usr/sbin/httpd
    root      3552  0.0  0.3 39680 6420 ?        Ss   Aug25   0:00 /usr/local/psa/admin/bin/httpsd
    root      3585  0.0  0.0  5592  924 ?        Ss   Aug25   0:03 crond
    xfs       3603  0.0  0.0  4004 1168 ?        Ss   Aug25   0:00 xfs -droppriv -daemon
    root      3620  0.0  0.0  3572  432 ?        Ss   Aug25   0:01 /usr/sbin/atd
    dbus      3629  0.0  0.0  3156  800 ?        Ss   Aug25   0:00 dbus-daemon-1 --system
    root      3638  0.0  0.1  5784 2372 ?        Ss   Aug25   1:29 hald
    apache    3672  5.6  1.7 60088 34888 ?       S    11:02   0:36 /usr/sbin/httpd
    mailman   3860  0.0  0.1 11656 4016 ?        Ss   Aug25   0:00 /usr/bin/python /usr/lib/mailman/bin/mailmanctl -s -q start
    mailman   3865  0.0  0.2 10900 5536 ?        S    Aug25   1:44 /usr/bin/python /usr/lib/mailman/bin/qrunner --runner=ArchRunner:0:1 -s
    mailman   3866  0.0  0.2 10556 5548 ?        S    Aug25   1:44 /usr/bin/python /usr/lib/mailman/bin/qrunner --runner=BounceRunner:0:1 -s
    mailman   3867  0.0  0.2 11800 5536 ?        S    Aug25   1:46 /usr/bin/python /usr/lib/mailman/bin/qrunner --runner=CommandRunner:0:1 -s
    mailman   3868  0.0  0.2 10680 5532 ?        S    Aug25   1:41 /usr/bin/python /usr/lib/mailman/bin/qrunner --runner=IncomingRunner:0:1 -s
    mailman   3869  0.0  0.2 11032 5572 ?        S    Aug25   1:50 /usr/bin/python /usr/lib/mailman/bin/qrunner --runner=NewsRunner:0:1 -s
    mailman   3870  0.0  0.2 11012 5620 ?        S    Aug25   1:47 /usr/bin/python /usr/lib/mailman/bin/qrunner --runner=OutgoingRunner:0:1 -s
    mailman   3871  0.0  0.2 10036 5532 ?        S    Aug25   1:46 /usr/bin/python /usr/lib/mailman/bin/qrunner --runner=VirginRunner:0:1 -s
    mailman   3872  0.0  0.2 10116 5536 ?        S    Aug25   0:00 /usr/bin/python /usr/lib/mailman/bin/qrunner --runner=RetryRunner:0:1 -s
    root      3878  0.0  0.0  2432  412 tty1     Ss+  Aug25   0:00 /sbin/mingetty tty1
    root      3879  0.0  0.0  3388  416 tty2     Ss+  Aug25   0:00 /sbin/mingetty tty2
    root      3880  0.0  0.0  1508  416 tty3     Ss+  Aug25   0:00 /sbin/mingetty tty3
    root      3881  0.0  0.0  1860  416 tty4     Ss+  Aug25   0:00 /sbin/mingetty tty4
    root      3882  0.0  0.0  2696  412 tty5     Ss+  Aug25   0:00 /sbin/mingetty tty5
    root      3883  0.0  0.0  2460  416 tty6     Ss+  Aug25   0:00 /sbin/mingetty tty6
    apache    4304  7.2  1.7 61328 36144 ?       S    11:05   0:34 /usr/sbin/httpd
    apache    4969  0.7  1.7 58548 35368 ?       S    11:08   0:02 /usr/sbin/httpd
    apache    5131  1.7  1.5 56140 31116 ?       S    11:09   0:04 /usr/sbin/httpd
    apache    5705  1.6  1.5 56808 31576 ?       S    11:12   0:00 /usr/sbin/httpd
    apache    5706  2.6  1.5 54496 31308 ?       S    11:12   0:01 /usr/sbin/httpd
    apache    5709  1.0  1.7 60288 34824 ?       S    11:12   0:00 /usr/sbin/httpd
    apache    5711  1.2  1.5 54512 31368 ?       S    11:12   0:00 /usr/sbin/httpd
    apache    5712  0.9  1.5 54632 31432 ?       S    11:12   0:00 /usr/sbin/httpd
    root      5807  0.0  0.0  3508  764 pts/0    R+   11:13   0:00 ps -aux
    apache   10829  0.8  1.7 61824 35752 ?       S    08:33   1:16 /usr/sbin/httpd
    root     12010  0.0  0.0     0    0 ?        S    Sep04   0:00 [pdflush]
    apache   21820  0.0  1.8 63616 37640 ?       S    Sep10   2:00 /usr/sbin/httpd
    root     22178  0.0  0.0     0    0 ?        S    Sep07   4:42 [pdflush]
    apache   23980  0.1  1.7 60520 34656 ?       S    Sep10   1:24 /usr/sbin/httpd
    root     28346  0.0  0.0  3432  776 ?        Ss   10:22   0:00 xinetd -stayalive -pidfile /var/run/xinetd.pid
    root     28389  0.0  0.0  5376  840 ?        S    10:22   0:00 /usr/lib/courier-imap/couriertcpd -address=0 -stderrlogger=/usr/sbin/courierl
    root     28391  0.0  0.0  4056  424 ?        S    10:22   0:00 /usr/sbin/courierlogger imapd
    root     28402  0.0  0.0  5432  836 ?        S    10:22   0:00 /usr/lib/courier-imap/couriertcpd -address=0 -stderrlogger=/usr/sbin/courierl
    root     28404  0.0  0.0  3308  424 ?        S    10:22   0:00 /usr/sbin/courierlogger imapd-ssl
    root     28412  0.0  0.0  6088  848 ?        S    10:22   0:00 /usr/lib/courier-imap/couriertcpd -address=0 -stderrlogger=/usr/sbin/courierl
    root     28415  0.0  0.0  3804  612 ?        S    10:22   0:00 /usr/sbin/courierlogger pop3d
    root     28423  0.0  0.0  6400  840 ?        S    10:22   0:00 /usr/lib/courier-imap/couriertcpd -address=0 -stderrlogger=/usr/sbin/courierl
    root     28425  0.0  0.0  4756  424 ?        S    10:22   0:00 /usr/sbin/courierlogger pop3d-ssl
    qmails   29187  0.0  0.0  1532  464 ?        S    10:25   0:00 qmail-send
    qmaill   29189  0.0  0.0  2236  436 ?        S    10:25   0:00 splogger qmail
    root     29190  0.0  0.0  3288  356 ?        S    10:25   0:00 qmail-lspawn | /usr/bin/deliverquota ./Maildir
    qmailr   29191  0.0  0.0  2180  388 ?        S    10:25   0:00 qmail-rspawn
    qmailq   29192  0.0  0.0  1756  328 ?        S    10:25   0:00 qmail-clean
    apache   31154  1.6  1.8 62108 36968 ?       S    10:38   0:33 /usr/sbin/httpd
    apache   31582  1.9  1.8 62500 37808 ?       S    10:41   0:36 /usr/sbin/httpd
  • 11-09-2008, 12:33:40
    #6
    mod_suexec ile derleseydiniz apache yi hangi sitenin sunucuyu yorduğunu bulabilirdiniz. Şu duruma göre gelen istekleri sunucunuz kaldıramıyor görünüyor.
  • 11-09-2008, 12:34:34
    #7
    Üyeliği durduruldu
    Maverick adlı üyeden alıntı: mesajı görüntüle
    Şu duruma göre gelen istekleri sunucunuz kaldıramıyor görünüyor.
    Biraz daha açabilirmisin konuyu maverick ?
  • 11-09-2008, 12:43:34
    #8
    ekran görüntüsünde verdiğin apache olarak görünen satırların hepsi sunucunda bulunan sitelere gelen istekleri gösteriyor. Biraz çalışma mantığını anlatayım daha rahat anlaman için.Apache gelen istekleri sıraya alır. Eğer sunucunun gücü yoğun saatlerde gelen istekleri karşılayamazsa (yoğun saatlerde 40 istek geliyor anlık diyelim ve sunucun 35 tanesini gerçekleştirebiliyor) yapamadığı işlemleri sıraya alır. Buda sürekli loadın yükselmesine sebep olur. Çünkü sunucu eski istekleri yaparken bir taraftanda yenilerini sıraya almaya çalışmaktadır.

    Önerim Apache yi php_suexec ile derle. Hangi sitelerin daha çok yorduğunu görürsün.