Ressourcenüberschreitung

netsraC85

New Member
Kann mir jemand helfen bei der Auswertung des folgenden Berichts:

cat /proc/user_beancounters
Code:
Version: 2.5
       uid  resource                     held              maxheld              barrier                limit              failcnt
    159236: kmemsize                  3419479              6391856              8467453              9314198                    0
            lockedpages                     0                    4                  344                  344                    0
            privvmpages                 45784                76127                98304               106496                    0
            shmpages                      641                 3361                19567                19567                    0
            dummy                           0                    0                    0                    0                    0
            numproc                        38                   64                  128                  128                    0
            physpages                   29470                45620                    0           2147483647                    0
            vmguarpages                     0                    0                65536           2147483647                    0
            oomguarpages                29470                50273                65536           2147483647                    0
            numtcpsock                     14                  172                  172                  172               129253
            numflock                        5                   47                  224                  246                    0
            numpty                          2                    3                   16                   16                    0
            numsiginfo                      0                    6                  512                  512                    0
            tcpsndbuf                  133608              1342384              1416560              2768240                    0
            tcprcvbuf                  168232              1457744              1416560              2768240                13442
            othersockbuf               169200               302584               655717              1153621                    0
            dgramrcvbuf                     0               273888               655717               655717                    0
            numothersock                  106                  206                  228                  228                    0
            dcachesize                      0                    0              1503190              1548286                    0
            numfile                      1820                 3008                 3008                 3008                  236
            dummy                           0                    0                    0                    0                    0
            dummy                           0                    0                    0                    0                    0
            dummy                           0                    0                    0                    0                    0
            numiptent                      10                   10                   64                   64                    0

Ich weiß wohl das dort einige werte überschritten werden aber was kann ich dagegen tun?
 
Tja, du hast Prozesse am Laufen, die zu viele TCP-Sockest/Verbindungen aufmachen wollen. Man könnte ja fast meinen, du wärest gehackt und wirst jetzt als fergesteuerte Bot für Netzscans und Spaming verwendet.

MfG
Andreas
 
Ich frage mich warum in der folgenden Liste ein paar mal der Apache auftaucht? Und warum amavisd soviel Speicher frisst? Gibts von Euch Ideen?

Code:
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.0    604   248 ?        Ss   Mar23   0:00 init [3]
root     30607  0.0  0.0   1456   612 ?        Ss   Mar23   0:01 /sbin/syslogd -a /var/lib/named/dev/log -a /var/lib/ntp/dev/log
root     30612  0.0  0.0   1396   372 ?        Ss   Mar23   0:00 /sbin/klogd -c 1 -x -x
root     30619  0.0  0.0   4308  1280 ?        Ss   Mar23   0:00 /usr/sbin/saslauthd -a pam -n 1
root     30634  0.0  0.0   2376  1132 ?        S    Mar23   0:00 /bin/sh /usr/bin/mysqld_safe --user=mysql --pid-file=/var/lib/mysql/mysqld.pid --socket=/var
mysql    30678  0.1  0.1  28356  8244 ?        Sl   Mar23  23:19 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/my
root     30701  0.0  0.0   4524  1220 ?        Ss   Mar23   0:14 /usr/sbin/sshd -o PidFile=/var/run/sshd.init.pid
root     30711  0.0  0.0   2076   876 ?        Ss   Mar23   0:00 /usr/sbin/xinetd
root     31937  0.0  0.0   4308  1528 ?        Ss   Mar23   0:02 /usr/lib/postfix/master
postfix  31962  0.0  0.0   4388  1540 ?        S    Mar23   0:00 qmgr -l -t fifo -u
vscan    32188  0.0  0.4  51208 38444 ?        S    Mar23   3:11 /usr/sbin/clamd
root     32234  0.0  0.0   1668   676 ?        Ss   Mar23   0:00 /usr/sbin/cron
vscan    32304  0.0  0.0   3764  1164 ?        Ss   Mar23   0:00 /usr/bin/freshclam -d
root     32620  0.0  0.1  23008  8208 ?        Ss   Mar23   0:02 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
vscan     1799  0.0  0.3  37592 31220 ?        Ss   Mar23   0:01 amavisd (master)
postfix   1338  0.0  0.0   4352  1516 ?        S    Mar23   0:00 tlsmgr -l -t unix -u
web2     28096  0.0  0.0  31040  2568 ?        SNl  Mar24   4:47 ./server_linux -PID=tsserver2.pid
root     22251  0.0  0.0   3200  1452 ?        S    Mar30   0:00 /usr/bin/perl /usr/local/confixx/pipelog.pl
web2     26595  0.0  0.0   2428   964 ?        Ss   Mar31   0:00 SCREEN -mS top
web2     26597  0.0  0.0   2972  1728 pts/3    Ss+  Mar31   0:00 /bin/bash
wwwrun   27875  0.1  0.1  29668 13848 ?        S    19:26   0:12 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
vscan    17835  0.0  0.3  37592 29652 ?        S    20:46   0:00 amavisd (virgin child)
wwwrun   11627  0.0  0.1  28376 12320 ?        S    21:19   0:03 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
postfix  11857  0.0  0.0   4352  1436 ?        S    21:19   0:00 pickup -l -t fifo -u
root     12128  0.0  0.0   7592  2456 ?        Rs   22:19   0:00 sshd: root@pts/0
root     12210  0.0  0.0   2704  1728 pts/0    Ss   22:19   0:00 -bash
root     21931  0.0  0.0   2380   860 pts/0    R+   22:24   0:00 ps -aux
 
gib uns mal deine Werte aus der /etc/httpd/conf/httpd.conf
Code:
Timeout 30
KeepAlive On
MaxKeepAliveRequests 1000
KeepAliveTimeout 4

<IfModule prefork.c>
StartServers       1
MinSpareServers    1
MaxSpareServers    2
ServerLimit       150
MaxClients        15
MaxRequestsPerChild  0
</IfModule>

HostnameLookups off
 
Code:
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15


<IfModule prefork.c>
        # number of server processes to start
        StartServers            1
        # minimum number of server processes which are kept spare
        MinSpareServers         1
        # maximum number of server processes which are kept spare
        MaxSpareServers         2
        # highest possible MaxClients setting for the lifetime of the Apache process.
        ServerLimit            15
        # maximum number of server processes allowed to start
        MaxClients             15
        # maximum number of requests a server process serves
        MaxRequestsPerChild  1000
</IfModule>

Die anderen Werte weiß ich leider nicht wo sie gerade stehen da es sich
um apache2 handelt.
 
Code:
MaxKeepAliveRequests 100
KeepAliveTimeout 15

Wenn schon hoher Timeout, dann sollten die Requests auch hoch sein, z.B. 1000

KeepAliveTimeout würde ich auf 4 stellen und MaxKeepAliveRequests auf 1000
Code:
MaxRequestsPerChild  1000
würde ich auf 8000 setzen oder 0
 
Back
Top