[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Debian langsam durch unbekannte Prozesse belastet



Hallo,

das ist kein V - Server. Es geht um ein Webserver.
Das mit dem Swap ist ok. Da leufen ein paar Applikationen die viel
Spreicher fressen. Allerding ist der server nur in laetzter Zeit
langsamer gewoeden.

Die Zombi - Prozesse sehen so aus:

vavvav   25559  0.0  0.0     0    0 ?        Z    Sep18   0:00 [which] <defunct>
vavvav   25561  0.0  0.0     0    0 ?        Z    Sep18   0:00 [which] <defunct>
vavvav   23899  0.0  0.0     0    0 ?        Z    06:33   0:00 [which] <defunct>
vavvav   23913  0.0  0.0     0    0 ?        Z    06:35   0:00 [which] <defunct>

sonst ist sieht die Prozesslise so aus:

:~# ps -elf f
F S UID        PID  PPID  C PRI  NI ADDR SZ WCHAN  STIME TTY        TIME CMD
4 S root         1     0  0  76   0 -   376 -      Apr09 ?
0:14 init [2]
1 S root         2     1  0  94  19 -     0 ksofti Apr09 ?
0:00 [ksoftirqd/0]
1 S root         3     1  0  65 -10 -     0 worker Apr09 ?
0:02 [events/0]
1 S root         4     3  0  65 -10 -     0 worker Apr09 ?
0:00  \_ [khelper]
1 S root         5     3  0  75 -10 -     0 worker Apr09 ?
0:00  \_ [kacpid]
1 S root        37     3  0  65 -10 -     0 worker Apr09 ?
30:17  \_ [kblockd/0]
1 S root        50     3  0  65 -10 -     0 worker Apr09 ?
0:00  \_ [aio/0]
1 S root     25493     3  0  75   0 -     0 pdflus Sep18 ?
0:00  \_ [pdflush]
1 S root     25498     3  0  75   0 -     0 pdflus Sep18 ?
0:00  \_ [pdflush]
1 S root        49     1  0  75   0 -     0 kswapd Apr09 ?
34:07 [kswapd0]
1 S root       186     1  0  85   0 -     0 serio_ Apr09 ?
0:00 [kseriod]
1 S root       255     1  0  75   0 -     0 kjourn Apr09 ?
18:41 [kjournald]
1 S root       551     1  0  76   0 -   381 -      Apr09 ?
0:00 /sbin/dhcpcd-bin -Y -H -D eth0
5 S root       657     1  0  76   0 -   412 -      Apr09 ?
0:16 /sbin/syslogd
5 S root       660     1  0  76   0 -   615 syslog Apr09 ?
0:00 /sbin/klogd
5 S root       715     1  0  78   0 -   374 rt_sig Apr09 ?
0:00 /usr/sbin/inetd
4 S radio      823     1  0  78   0 -   568 wait4  Apr09 ?
0:00 bash -c /usr/local/radio/shoutcast-1-9-5-linux-glibc6/sc_serv
/usr/local/radio/
0 S radio      834   823  0  76   0 -  7398 -      Apr09 ?
0:17  \_ /usr/local/radio/shoutcast-1-9-5-linux-glibc6/sc_serv
/usr/local/radio/shout
5 S root       831     1  0  76   0 -   867 -      Apr09 ?
0:14 /usr/sbin/sshd
5 S root     21196   831  0  75   0 -  3762 -      May26 ?
2:30  \_ sshd: root@pts/0
4 S root     21204 21196  0  75   0 -  1474 -      May26 pts/0
2:16  |   \_ -bash
5 S root     29333   831  0  75   0 -  3613 -      May28 ?
0:00  \_ sshd: root@pts/1
4 S root     29336 29333  0  75   0 -  1474 -      May28 pts/1
0:00  |   \_ -bash
5 S root     28049   831  0  76   0 -  3655 -      14:45 ?
0:00  \_ sshd: root@pts/3
4 R root     28059 28049  0  76   0 -  1458 -      14:45 pts/3
0:00      \_ -bash
4 R root     28297 28059  0  78   0 -   623 -      15:01 pts/3
0:00          \_ ps -elf f
4 S root       837     1  0  76   0 -   765 -      Apr09 ?
0:00 /usr/sbin/vsftpd
5 S root       854     1  0  76   0 -   788 -      Apr09 ?
0:08 /usr/sbin/ntpd -p /var/run/ntpd.pid
4 S root       896     1  0  76   0 -   375 -      Apr09 tty1
0:00 /sbin/getty 38400 tty1
4 S root       897     1  0  76   0 -   375 -      Apr09 ttyS0
0:00 /sbin/getty -L ttyS0 57600 vt100
5 S Debian-   2693     1  0  75   0 -  1112 -      May14 ?
0:00 /usr/sbin/exim4 -bd -q30m
1 S bind     19101     1  0  85   0 -  7621 rt_sig Sep14 ?
0:00 /usr/sbin/named -u bind
4 S root     20653     1  0  80   0 -  1391 wait4  Sep14 ?
0:00 /bin/sh /usr/bin/mysqld_safe
4 S mysql    20759 20653  0  76   0 - 33039 -      Sep14 ?
0:00  \_ /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql
--user=mysql --pid-
4 S root     20760 20653  0  75   0 -  1153 pipe_w Sep14 ?
0:00  \_ logger -p daemon.err -t mysqld_safe -i -t mysqld
5 S root      7444     1  0  76   0 -   441 -      Sep15 ?
0:00 /usr/sbin/cron
5 S root     29920  7444  0  75   0 -   514 pipe_w 06:25 ?
0:00  \_ /USR/SBIN/CRON
4 S root     29921 29920  0  78   0 -  1381 wait4  06:25 ?
0:00  |   \_ /bin/sh -c test -x /usr/sbin/anacron || run-parts
--report /etc/cron.dai
4 S root     29922 29921  0  75   0 -   410 -      06:25 ?
0:00  |   |   \_ run-parts --report /etc/cron.daily
4 Z root     30145 29922  0  79   0 -     0 exit   06:31 ?
0:00  |   |       \_ [zupdate_catalog] <defunct>
4 S Debian-  29930 29920  0  76   0 -  1115 pipe_w 06:25 ?
0:00  |   \_ /usr/sbin/sendmail -i -FCronDaemon -oem root
5 S root     28271  7444  0  77   0 -   514 pipe_w 15:00 ?
0:00  \_ /USR/SBIN/CRON
4 Z root     28272 28271  0  79   0 -     0 exit   15:00 ?
0:00      \_ [restartMaildrop] <defunct>
4 S Debian-  28274 28271  0  78   0 -  1113 pipe_w 15:00 ?
0:00      \_ /usr/sbin/sendmail -i -FCronDaemon -oem root
5 S root      7845     1  0  76   0 -  2950 -      Sep15 ?
0:02 /usr/sbin/apache
5 S www-data 27959  7845  0  76   0 -  3029 -      14:31 ?
0:00  \_ /usr/sbin/apache
5 S www-data 27987  7845  0  75   0 -  2988 361513 14:35 ?
0:00  \_ /usr/sbin/apache
5 S www-data 28050  7845  0  75   0 -  2988 393941 14:45 ?
0:00  \_ /usr/sbin/apache
5 S www-data 28115  7845  0  75   0 -  2988 341497 14:49 ?
0:00  \_ /usr/sbin/apache
5 S www-data 28139  7845  0  75   0 -  2988 361041 14:50 ?
0:00  \_ /usr/sbin/apache
5 S www-data 28199  7845  0  75   0 -  2988 415336 14:54 ?
0:00  \_ /usr/sbin/apache
5 S www-data 28204  7845  0  75   0 -  2988 351967 14:55 ?
0:00  \_ /usr/sbin/apache
5 S www-data 28209  7845  0  75   0 -  2988 348436 14:56 ?
0:00  \_ /usr/sbin/apache
5 S www-data 28210  7845  0  75   0 -  2988 325891 14:56 ?
0:00  \_ /usr/sbin/apache
5 S www-data 28225  7845  0  75   0 -  2988 361041 14:57 ?
0:00  \_ /usr/sbin/apache
5 S www-data 28227  7845  0  76   0 -  2988 -      14:57 ?
0:00  \_ /usr/sbin/apache
5 S www-data 28290  7845  0  75   0 -  2984 328914 15:01 ?
0:00  \_ /usr/sbin/apache
5 S www-data 28291  7845  0  75   0 -  2984 328914 15:01 ?
0:00  \_ /usr/sbin/apache
5 S www-data 28292  7845  0  76   0 -  2984 -      15:01 ?
0:00  \_ /usr/sbin/apache
5 S www-data 28293  7845  0  76   0 -  2950 semtim 15:01 ?
0:00  \_ /usr/sbin/apache
5 S www-data 28294  7845  0  76   0 -  2950 semtim 15:01 ?
0:00  \_ /usr/sbin/apache
5 S www-data 28295  7845  0  76   0 -  2950 semtim 15:01 ?
0:00  \_ /usr/sbin/apache
5 S www-data 28296  7845  0  76   0 -  2950 semtim 15:01 ?
0:00  \_ /usr/sbin/apache
4 S vavvav   25523     1  0  78   0 -  1380 wait4  Sep18 ?
0:00 bash -c /home/vavvav/var/lib/Zope-2.7.8_new/bin/runzope
2>/home/vavvav/var/log/z
0 S vavvav   25529 25523  0  75   0 - 116312 -     Sep18 ?
0:21  \_ /usr/bin/python2.3
/home/vavvav/var/lib/Zope-2.7.8_new/lib/python/Zope/Start
0 Z vavvav   25559 25529  0  77   0 -     0 exit   Sep18 ?
0:00      \_ [which] <defunct>
0 Z vavvav   25561 25529  0  76   0 -     0 exit   Sep18 ?
0:00      \_ [which] <defunct>
4 S vavvav   23863     1  0  78   0 -  1379 wait4  06:31 ?
0:00 bash -c /home/vavvav/var/lib/Zope-2.7.8-final/bin/runzope
2>/home/vavvav/var/log
0 S vavvav   23869 23863  0  75   0 - 71523 -      06:31 ?
0:46  \_ /usr/bin/python
/home/vavvav/var/lib/Zope-2.7.8-final/lib/python/Zope/Startu
0 Z vavvav   23899 23869  0  84   0 -     0 exit   06:33 ?
0:00      \_ [which] <defunct>
4 S vavvav   23865     1  0  78   0 -  1379 wait4  06:31 ?
0:00 bash -c /home/vavvav//var/lib/Zope-2.8.4-final/bin/runzope
2>/home/vavvav/var/lo
0 S vavvav   23879 23865  0  76   0 - 67287 -      06:31 ?
2:48  \_ /usr/bin/python
/home/vavvav/var/lib/Zope-2.8.4-final/lib/python/Zope2/Start
0 Z vavvav   23913 23879  0  80   0 -     0 exit   06:35 ?
0:00      \_ [which] <defunct>
1 S vavvav   28286     1  0  76   0 -  2051 -      15:00 ?
0:00 python2.4 /home/vavvav/var/lib/Zope-2.7.8-final/Products/MaildropHost/maildrop/m
1 S vavvav   28288     1  0  76   0 -  2051 -      15:00 ?
0:00 python2.4 /home/vavvav/var/lib/Zope-2.8.4-final/Products/MaildropHost/maildrop/m

Etwas abgeschnitten aber irelevanten Teile.

Vielen Dank fuer die Erklaerungen.



Am 18.09.06 schrieb Helmut Franke <Helmut.Franke@student.uni-augsburg.de>:
On Mon, Sep 18, 2006 at 11:53:52AM +0400, Vladislav Vorobiev wrote:
> ich habe ein schlechtes bauchgefuehl was mein Server angeht.
>
> top - 09:21:09 up 162 days,  3:59,  3 users,  load average: 8.32, 6.12, 4.08
> Tasks:  82 total,   1 running,  74 sleeping,   0 stopped,   7 zombie
> Cpu(s): 98.3% us,  0.7% sy,  0.0% ni,  0.0% id,  0.0% wa,  1.0% hi,  0.0% si
> Mem:   1036516k total,  1031528k used,     4988k free,     5524k buffers
> Swap:  1052248k total,   746408k used,   305840k free,    28048k cached
>
>  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
>   49 root      15   0     0    0    0 S  0.3  0.0  33:28.10 kswapd0
>    1 root      16   0  1504  372 1352 S  0.0  0.0   0:14.27 init
>    2 root      34  19     0    0    0 S  0.0  0.0   0:00.04 ksoftirqd/0
>    3 root       5 -10     0    0    0 S  0.0  0.0   0:02.40 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
>   37 root       5 -10     0    0    0 S  0.0  0.0  29:48.24 kblockd/0
>   50 root       5 -10     0    0    0 S  0.0  0.0   0:00.00 aio/0
>  186 root      25   0     0    0    0 S  0.0  0.0   0:00.00 kseriod
>  255 root      15   0     0    0    0 D  0.0  0.0  18:34.12 kjournald
>  551 root      16   0  1524  112 1360 S  0.0  0.0   0:00.46 dhcpcd-bin
>  657 root      16   0  1648  260 1472 S  0.0  0.0   0:16.52 syslogd
>  660 root      16   0  2460  116 1344 S  0.0  0.0   0:00.05 klogd
>  715 root      18   0  1496   96 1344 S  0.0  0.0   0:00.00 inetd
>  823 radio     18   0  2272   96 2200 S  0.0  0.0   0:00.00 bash
>  831 root      16   0  3468  224 3092 S  0.0  0.0   0:14.51 sshd
>  834 radio     16   0 29592  264 1512 S  0.0  0.0   0:17.39 sc_serv
>
> Ich finde es etwas komisch dass, das CPU zu 98 Prozent belastet ist.
> Die top Tabele allerdings nichts vernuenftiges anzeigt.

Ja.


> Und ueberhaupt ist es nicht etwas komisch 74 sleeping,  7 zombie.  Ist
> es nicht  zu viel, vor allem die sleeping
> Prozesse.

Nein.  Woher sollen wir wissen, was du alles auf
deinem Rechner gestartet hast?


Lass dir mal mit z. B.

ps -elf f

alle Prozesse anzeigen und schaue dann, was da so
alles läuft.


> Kann jemand mich etwas aufklaeren?

Wenn du die dazu nötigen Daten lieferst, sicher.


> Uebrigens das System ist einfach zu
> langsam.

Kein Wunder, dass es längere Reaktionszeiten gibt,
als bei einem Rechner der meist unbelastet ist,
was ja heutzutage die Regel ist.

Ja und die Anzeige von top, die hier gepostet
wurde, ist unvollständig.  Der Prozessor ist zu
100 % ausgelastet, davon 98,3 % durch
Userprozesse, aber angezeigt sind nur
Prozesse, die insgesamt 0.3 % CPU Zeit
benutzten seit der letzten aktualisierung der
Anzeige von top.  Also fehlen noch Prozesse, die
98 % CPU-Zeit verbrauchen.

Was ist das für ein Rechner?  Wie wird er benutzt?
Was läuft da alles drauf?

Evtl. hat da jemand ein rootkit installiert.  Oder
ist das sowas, wie diese dubiosen v-server, da
weiß man ohnhein nicht, was die Hoster da alles
anstellen.


Alles Gute
Helmut H. Franke

--
Avatar Chat Systeme:  http://www.amiculi.net  http://pgm.amoris.org


--
Haeufig gestellte Fragen und Antworten (FAQ):
http://www.de.debian.org/debian-user-german-FAQ/

Zum AUSTRAGEN schicken Sie eine Mail an debian-user-german-REQUEST@lists.debian.org
mit dem Subject "unsubscribe". Probleme? Mail an listmaster@lists.debian.org (engl)




--
Best Regards
Vlad Vorobiev
http://www.mymir.org



Reply to: