VServer stürzt täglich ab

black alpha

New Member
Guten Morgen,

ich lese dieses Forum schon eine weile und habe auch schon einiges dadurch gelernt.

Ich habe ein Strato V-Powerserver E. Seit etwa 6 Tagen stürzt der mir fast täglich komplett ab, sodass ich mich auch nicht mehr per SSH verbinden kann. Gestern musste ich den Server über den Strato Kundenlogin neustarten. Den VServer habe ich schon über ein Jahr. Anhand user_beancounters würde ich behaupten, mein RAM läuft voll. Aber müsste er nicht dann den SWAP als auslagerung verwenden? der SWAP ist bei mir noch nie verwendet worden. Es sind 3GB freier SWAP vorhanden.

Serverdaten:
RAM-Garantie mind. 512 MB
RAM dynamisch bis zu 1000 MB
SuSE Linux 9.3 (i586) <-- sollte ich auf 10.1 updaten?
Linux version 2.6.9-023stab044.16-enterprise


# cat /proc/user_beancounters
Code:
       uid  resource           held    maxheld    barrier      limit    failcnt
   1114852: kmemsize        4968221    5043873   14271433   15723665   10640262
            lockedpages           0          0      15200      16384          0
            privvmpages       73012      73115     256256     288768          0
            shmpages           9522       9522     524288     524288          0
            dummy                 0          0          0          0          0
            numproc              52         54        596        596          0
            physpages         25137      25182          0 2147483647          0
            vmguarpages           0          0     192062 2147483647          0
            oomguarpages      25137      25182     216062 2147483647          0
            numtcpsock           20         22       2000       2000          0
            numflock              7          8        800        928          0
            numpty                1          1        256        256          0
            numsiginfo            0          1       2048       2048          0
            tcpsndbuf        214656     304096    9366512   15204912          0
            tcprcvbuf        327680     327680    9366512   15204912          0
            othersockbuf      20124      24356    6012928   16252928          0
            dgramrcvbuf           0          0     960000    1048576          0
            numothersock         20         26       1528       1528          0
            dcachesize            0          0    6023656    6072656          0
            numfile            1971       2024      13864      13864          0
            dummy                 0          0          0          0          0
            dummy                 0          0          0          0          0
            dummy                 0          0          0          0          0
            numiptent            14         14        512        512          0

# ps aux --sort:rss
Code:
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.0    604   248 ?        Ss   00:24   0:00 init [3]
qmailq    5125  0.0  0.0   1380   320 ?        S    00:24   0:00 qmail-clean
root      5123  0.0  0.0   1420   352 ?        S    00:24   0:00 qmail-lspawn ./Maildir/
qmailr    5124  0.0  0.0   1416   368 ?        S    00:24   0:00 qmail-rspawn
qmaill    5122  0.0  0.0   1388   440 ?        S    00:24   0:00 splogger qmail
qmails    5120  0.0  0.0   1436   456 ?        S    00:24   0:01 qmail-send
root      3958  0.0  0.0   3984   468 ?        S    00:24   0:00 /usr/sbin/saslauthd -n 2 -a pam
root      3951  0.0  0.0   1456   592 ?        Ss   00:24   0:00 /sbin/syslogd -a /var/lib/named/dev/log -a /var/lib/ntp/dev/log -a /var/lib/stunnel/dev/log
root      5263  0.0  0.0   1668   692 ?        Ss   00:24   0:00 /usr/sbin/cron
root      3957  0.0  0.0   3984   784 ?        Ss   00:24   0:00 /usr/sbin/saslauthd -n 2 -a pam
root     28450  0.0  0.0   2576   880 pts/0    R+   09:42   0:00 ps aux --sort:rss
root      3989  0.0  0.0   2076   916 ?        Ss   00:24   0:00 /usr/sbin/xinetd
root      3394  0.0  0.0   2148   956 pts/0    T    08:03   0:00 info
root      1838  0.0  0.0   1980  1064 pts/0    T    07:58   0:00 top
root     15844  0.0  0.0   1980  1064 pts/0    T    09:12   0:00 top
root     13801  0.0  0.0   1980  1068 pts/0    T    09:03   0:00 top
root      4050  0.0  0.0   2376  1136 ?        S    00:24   0:00 /bin/sh /usr/bin/mysqld_safe --user=mysql --pid-file=/var/lib/mysql/mysqld.pid --socket=/var/
root      3983  0.0  0.0   4524  1220 ?        Ss   00:24   0:00 /usr/sbin/sshd -o PidFile=/var/run/sshd.init.pid
root      8020  0.0  0.0   2820  1496 ?        Ss   08:37   0:00 -bash
root      3170  0.0  0.0   3056  1596 ?        Ss   08:01   0:00 stunnel /etc/stunnel/stunnel.conf-pop3courier
root      1626  0.0  0.0   3084  1896 pts/0    Ss   07:57   0:00 -bash
root      8017  0.0  0.1   7724  2496 ?        Ss   08:37   0:00 sshd: root@notty
root      1623  0.0  0.1   7732  2516 ?        Ss   07:56   0:00 sshd: root@pts/0
named     4036  0.0  0.1  36308  2716 ?        Ssl  00:24   0:00 /usr/sbin/named -t /var/lib/named -u named
root      5760  0.0  0.2  27944  5168 ?        S    00:26   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
root      5199  0.0  0.2  47784  5244 ?        Ss   00:24   0:00 /usr/local/psa/admin/bin/httpsd
psaadm   11974  0.0  0.5  49984 11304 ?        S    00:45   0:00 /usr/local/psa/admin/bin/httpsd
psaadm   11987  0.0  0.5  50876 11876 ?        S    00:45   0:00 /usr/local/psa/admin/bin/httpsd
wwwrun   23634  0.0  0.5  30924 11952 ?        S    09:29   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   23603  0.1  0.5  30900 11976 ?        S    09:29   0:01 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   22449  0.1  0.5  30960 11992 ?        S    09:28   0:01 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   22471  0.2  0.5  30940 12060 ?        S    09:28   0:02 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   22464  0.1  0.6  31432 12456 ?        S    09:28   0:01 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   22519  0.1  0.6  31428 12488 ?        S    09:28   0:01 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   24193  0.0  0.6  31620 12772 ?        S    01:40   0:24 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
root      5754  0.0  0.6  28916 12840 ?        Ss   00:26   0:01 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   16260  0.0  0.6  32152 13316 ?        S    06:30   0:09 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
psaadm    5203  0.0  0.6  51644 13464 ?        S    00:24   0:00 /usr/local/psa/admin/bin/httpsd
wwwrun   16258  0.0  0.8  36140 16836 ?        S    06:30   0:09 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   16271  0.0  0.8  37328 17912 ?        S    06:30   0:08 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
mysql     4084  0.3  1.1 118600 24064 ?        Sl   00:24   2:13 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mys

top
Code:
  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
29767 root      16   0  1980 1072  840 R  0.3  0.1   0:00.01 top
    1 root      16   0   604  248  216 S  0.0  0.0   0:00.19 init
 3951 root      16   0  1456  592  496 S  0.0  0.0   0:00.20 syslogd
 3957 root      18   0  3984  784  556 S  0.0  0.0   0:00.00 saslauthd
 3958 root      18   0  3984  468  240 S  0.0  0.0   0:00.00 saslauthd
 3983 root      17   0  4524 1220  852 S  0.0  0.1   0:00.15 sshd
 3989 root      16   0  2076  916  720 S  0.0  0.0   0:00.18 xinetd
 4036 named     18   0 36308 2716 1852 S  0.0  0.1   0:00.05 named
 4050 root      19   0  2376 1136  920 S  0.0  0.1   0:00.00 mysqld_safe
 4084 mysql     16   0  115m  23m 4648 S  0.0  1.2   2:13.26 mysqld
 5120 qmails    16   0  1436  456  376 S  0.0  0.0   0:01.12 qmail-send
 5122 qmaill    16   0  1388  440  384 S  0.0  0.0   0:00.15 splogger
 5123 root      16   0  1420  352  268 S  0.0  0.0   0:00.01 qmail-lspawn
 5124 qmailr    16   0  1416  368  272 S  0.0  0.0   0:00.04 qmail-rspawn
 5125 qmailq    16   0  1380  320  264 S  0.0  0.0   0:00.01 qmail-clean
 5199 root      16   0 47784 5244 3376 S  0.0  0.3   0:00.49 httpsd
 5203 psaadm    16   0 51644  13m 7936 S  0.0  0.7   0:00.48 httpsd
 5263 root      15   0  1668  692  568 S  0.0  0.0   0:00.07 cron
 5754 root      16   0 28916  12m 7488 S  0.0  0.6   0:01.04 httpd2-prefork
 5760 root      22   0 27944 5168  492 S  0.0  0.2   0:00.00 httpd2-prefork
11974 psaadm    16   0 49984  11m 7392 S  0.0  0.5   0:00.36 httpsd
11987 psaadm    16   0 50876  11m 7140 S  0.0  0.6   0:00.19 httpsd
24193 wwwrun    16   0 31620  12m 4512 S  0.0  0.6   0:24.28 httpd2-prefork
16258 wwwrun    16   0 36140  16m 6036 S  0.0  0.8   0:09.38 httpd2-prefork
16260 wwwrun    16   0 32152  13m 4524 S  0.0  0.6   0:09.65 httpd2-prefork
16271 wwwrun    15   0 37328  17m 5880 S  0.0  0.9   0:08.80 httpd2-prefork
 1623 root      16   0  7732 2528 1964 S  0.0  0.1   0:00.47 sshd
 1626 root      15   0  3084 1900 1384 S  0.0  0.1   0:00.41 bash
 1838 root      16   0  1980 1064  840 T  0.0  0.1   0:00.04 top
 3170 root      18   0  3056 1596 1264 S  0.0  0.1   0:00.00 stunnel
 3394 root      16   0  2148  956  720 T  0.0  0.0   0:00.00 info
 8017 root      15   0  7724 2496 1948 S  0.0  0.1   0:00.19 sshd
 8020 root      15   0  2820 1496 1196 S  0.0  0.1   0:00.06 bash
13801 root      15   0  1980 1068  840 T  0.0  0.1   0:00.02 top
15844 root      16   0  1980 1064  840 T  0.0  0.1   0:00.00 top
22449 wwwrun    16   0 30960  11m 4432 S  0.0  0.6   0:01.31 httpd2-prefork
22464 wwwrun    16   0 31432  12m 4388 S  0.0  0.6   0:01.38 httpd2-prefork
22471 wwwrun    16   0 30940  11m 4480 S  0.0  0.6   0:02.37 httpd2-prefork
22519 wwwrun    16   0 31428  12m 4448 S  0.0  0.6   0:01.25 httpd2-prefork
23603 wwwrun    15   0 30900  11m 4436 S  0.0  0.6   0:01.49 httpd2-prefork
23634 wwwrun    16   0 30924  11m 4428 S  0.0  0.6   0:00.73 httpd2-prefork

server-tuning.conf
Code:
    # number of server processes to start
    StartServers         5
    # minimum number of server processes which are kept spare
    MinSpareServers      5
    # maximum number of server processes which are kept spare
    MaxSpareServers      10
    # highest possible MaxClients setting for the lifetime of the Apache process.
    ServerLimit        500
    # maximum number of server processes allowed to start
    MaxClients          200
    # maximum number of requests a server process serves
    MaxRequestsPerChild  1000

KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 4

nachdem was ich in letzter zeit gelesen habe, würde ich sagen ich muss maxclients runtersetzten?!?

nun läuft er gerade stabil.
sollte ich mysql mehr ram zuordnen?

wäre sehr dankbar, wenn ihr mir weiterhelfen könntet.

gruß
 
Hi,

black alpha said:
sollte ich mysql mehr ram zuordnen?

Du solltest eher dafür sorgen, dass Du mit wesentlich weniger Ram auskommst ;)

Code:
kmemsize        4968221    5043873   14271433   15723665   10640262

-W
 
Guten Morgen,

wie mache ich das denn am Besten?
mein Apache habe ich schon entschlackt. Er läuft nur noch mit den Modulen, die ich benötige.

gruß
 
Falls mal auch jemand ein ähnliches Problem hat... es lag am Spamfilter. der hat den Server zum Absturz gebracht. keine Ahnung wie aber ist so

gruß
 
Back
Top