strato, suse9.0, sehr viel traffic - server stürzt ab...

FreeBSD, Gentoo, openSUSE, CentOS, Ubuntu, Debian
stain79
Posts: 19
Joined: 2005-09-19 18:16
 

strato, suse9.0, sehr viel traffic - server stürzt ab...

Post by stain79 »

Hallo allerseits ;)

ich habe ein kleines problem mit meinem strato unlimited server.
auf diesem server befindet sich ein upload/download manager, welcher momentan ca. 100 gigs am tag verbrät. er würde mehr verbraten, wenn der server mal durchgehend laufen würde.

das problem ist, dass sich anscheinend der arbeitsspeicher (2 gig ram) volllädt und nichts mehr rausschmeisst.

die seite hat ca 50.000 views pro tag, ziemlich viele mysql-abfragen, wobei die sql datenbank ca. 1MB gross ist.

habe schon die max_connections in der my.cnf hochgesetzt, persistant connections sind aus, sowie ein paar weitere einstellungen vorgenommen.
(zur anmerkung - die homepage lief auf einem 20 Mbit/s amiserver mit redhat und cpanel ohne abstürze).

ich muss mittlerweile mehrmals am tag den server neu starten, komme teilweise nicht mal mehr in ssh rein.

hat jemand ne ahnung was ich ändern könnte? am script wollte ich ungern was ändern - aber wie gesagt, es lief ja recht gut auf dem amiserver...

hier mal ein top auszug (zu beachten - server wurde gerade eben neu gestartet - also arbeitsspeicher in max 10 min wieder voll):

Code: Select all

top - 13:26:26 up 7 min,  1 user,  load average: 0.03, 0.15, 0.09
Tasks: 162 total,   1 running, 158 sleeping,   0 stopped,   3 zombie
Cpu(s):   1.6% user,  11.1% system,   0.0% nice,  87.3% idle
Mem:   2067664k total,  1400456k used,   667208k free,    15432k buffers
Swap:   514072k total,        0k used,   514072k free,   283952k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 1516 wwwrun    19   0  3920 3920 1564 S  2.8  0.2   0:00.08 fileuploader.cg
 1489 root      12   0  1012 1012  756 R  1.1  0.0   0:00.19 top
    3 root      19  19     0    0    0 S  0.7  0.0   0:09.77 ksoftirqd_CPU0
 1159 wwwrun    10   0 35464  34m  11m S  0.4  1.7   0:00.22 httpd2-prefork
 1200 wwwrun    10   0 29892  29m  11m S  0.4  1.4   0:00.22 httpd2-prefork
    1 root       9   0   256  256  220 S  0.0  0.0   0:08.33 init
    2 root       8   0     0    0    0 S  0.0  0.0   0:00.00 keventd
    4 root      19  19     0    0    0 S  0.0  0.0   0:00.14 ksoftirqd_CPU1
    5 root       9   0     0    0    0 S  0.0  0.0   0:00.00 kswapd
    6 root       9   0     0    0    0 S  0.0  0.0   0:00.00 bdflush
    7 root       9   0     0    0    0 S  0.0  0.0   0:01.43 kupdated
   11 root       9   0     0    0    0 S  0.0  0.0   0:00.08 khubd
   12 root      10   0     0    0    0 S  0.0  0.0   0:02.17 kjournald
   57 root       9   0     0    0    0 S  0.0  0.0   0:00.01 kjournald
  537 root       9   0   480  480  420 S  0.0  0.0   0:00.00 dhcpcd
  604 root       9   0   624  624  532 S  0.0  0.0   0:00.15 syslogd
  607 root       9   0  1556 1556  472 S  0.0  0.1   0:00.07 klogd
  625 root       9   0  1072 1072 1056 S  0.0  0.1   0:00.00 saslauthd
  627 root       9   0  1072 1072 1056 S  0.0  0.1   0:00.00 saslauthd
  628 root       9   0  1072 1072 1056 S  0.0  0.1   0:00.00 saslauthd
  629 root       9   0  1072 1072 1056 S  0.0  0.1   0:00.00 saslauthd
  630 root       9   0  1072 1072 1056 S  0.0  0.1   0:00.00 saslauthd
  631 bin        9   0   408  408  340 S  0.0  0.0   0:00.01 portmap
  677 root       9   0   284  284  232 S  0.0  0.0   0:00.00 startpar
  680 root       9   0   864  864  732 S  0.0  0.0   0:00.02 xinetd
  681 named      9   0  2460 2460 1900 S  0.0  0.1   0:00.01 named
  682 named      9   0  2460 2460 1900 S  0.0  0.1   0:00.00 named
  683 named      9   0  2460 2460 1900 S  0.0  0.1   0:00.02 named
  684 named      9   0  2460 2460 1900 S  0.0  0.1   0:00.00 named
  685 named      9   0  2460 2460 1900 S  0.0  0.1   0:00.00 named
  690 root       9   0  1104 1100  900 S  0.0  0.1   0:00.00 mysqld_safe
  726 root       9   0  1620 1620 1472 S  0.0  0.1   0:00.00 sshd
  735 mysql      9   0  4260 4260 2448 S  0.0  0.2   0:00.14 mysqld
  747 mysql      0   0  4260 4260 2448 S  0.0  0.2   0:00.08 mysqld
  748 mysql      9   0  4260 4260 2448 S  0.0  0.2   0:00.01 mysqld
  905 root       9   0  1332 1332 1076 S  0.0  0.1   0:00.11 master
  917 postfix    9   0  1368 1368 1108 S  0.0  0.1   0:00.05 pickup
  918 postfix    9   0  1408 1408 1128 S  0.0  0.1   0:00.05 qmgr
  922 postfix    9   0  1740 1740 1324 S  0.0  0.1   0:00.13 trivial-rewrite
  947 root      11   0 11236  10m  10m S  0.0  0.5   0:00.49 httpd2-prefork
  948 root       9   0  1412 1412 1192 S  0.0  0.1   0:00.08 pipelog.pl
  977 root       9   0   784  784  660 S  0.0  0.0   0:00.02 nscd
  978 root       9   0   784  784  660 S  0.0  0.0   0:00.00 nscd
  979 root       9   0   784  784  660 S  0.0  0.0   0:00.03 nscd
  980 root       9   0   784  784  660 S  0.0  0.0   0:00.02 nscd
  981 root       9   0   784  784  660 S  0.0  0.0   0:00.01 nscd
und noch ein auszug aus ps aux:

Code: Select all

USER       PID %CPU %MEM   VSZ  RSS TTY      STAT START   TIME COMMAND
root         1  1.6  0.0   620  256 ?        S    13:19   0:08 init [3]
root         2  0.0  0.0     0    0 ?        SW   13:19   0:00 [keventd]
root         3  2.3  0.0     0    0 ?        SWN  13:19   0:11 [ksoftirqd_CPU0]
root         4  0.0  0.0     0    0 ?        SWN  13:19   0:00 [ksoftirqd_CPU1]
root         5  0.0  0.0     0    0 ?        SW   13:19   0:00 [kswapd]
root         6  0.0  0.0     0    0 ?        SW   13:19   0:00 [bdflush]
root         7  0.2  0.0     0    0 ?        SW   13:19   0:01 [kupdated]
root        11  0.0  0.0     0    0 ?        SW   13:19   0:00 [khubd]
root        12  0.4  0.0     0    0 ?        SW   13:19   0:02 [kjournald]
root        57  0.0  0.0     0    0 ?        SW   13:19   0:00 [kjournald]
root       537  0.0  0.0  1524  480 ?        S    13:19   0:00 /sbin/dhcpcd -H -D -N -t 999999 -h linux eth0
root       604  0.0  0.0  1560  624 ?        S    13:19   0:00 /sbin/syslogd -a /var/lib/named/dev/log
root       607  0.0  0.0  2492 1556 ?        S    13:19   0:00 /sbin/klogd -c 1 -2
root       625  0.0  0.0  4140 1072 ?        S    13:19   0:00 /usr/sbin/saslauthd -a pam
root       627  0.0  0.0  4140 1072 ?        S    13:19   0:00 /usr/sbin/saslauthd -a pam
root       628  0.0  0.0  4140 1072 ?        S    13:19   0:00 /usr/sbin/saslauthd -a pam
root       629  0.0  0.0  4140 1072 ?        S    13:19   0:00 /usr/sbin/saslauthd -a pam
root       630  0.0  0.0  4140 1072 ?        S    13:19   0:00 /usr/sbin/saslauthd -a pam
bin        631  0.0  0.0  1524  408 ?        S    13:19   0:00 /sbin/portmap
root       677  0.0  0.0  1356  284 ?        S    13:19   0:00 /sbin/startpar -f -- /etc/init.d/rc3.d/S12named
root       680  0.0  0.0  2176  864 ?        S    13:19   0:00 /usr/sbin/xinetd
named      681  0.0  0.1 12140 2460 ?        S    13:19   0:00 /usr/sbin/named -t /var/lib/named -u named
named      682  0.0  0.1 12140 2460 ?        S    13:19   0:00 /usr/sbin/named -t /var/lib/named -u named
named      683  0.0  0.1 12140 2460 ?        S    13:19   0:00 /usr/sbin/named -t /var/lib/named -u named
named      684  0.0  0.1 12140 2460 ?        S    13:19   0:00 /usr/sbin/named -t /var/lib/named -u named
named      685  0.0  0.1 12140 2460 ?        S    13:19   0:00 /usr/sbin/named -t /var/lib/named -u named
root       690  0.0  0.0  2464 1100 ?        S    13:19   0:00 /bin/sh /usr/bin/mysqld_safe --user=mysql --pid-file=/var/lib/mysql/mysqld.pid --socket=/var/lib/m
root       726  0.0  0.0  4920 1620 ?        S    13:19   0:00 /usr/sbin/sshd -o PidFile=/var/run/sshd.init.pid
mysql      735  0.0  0.2 26400 4296 ?        S    13:19   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/my
mysql      747  0.0  0.2 26400 4296 ?        S    13:19   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/my
mysql      748  0.0  0.2 26400 4296 ?        S    13:19   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/my
root       905  0.0  0.0  4172 1332 ?        S    13:19   0:00 /usr/lib/postfix/master
postfix    917  0.0  0.0  4208 1368 ?        S    13:19   0:00 pickup -l -t fifo -u
postfix    918  0.0  0.0  4228 1408 ?        S    13:19   0:00 qmgr -l -t fifo -u
postfix    922  0.0  0.0  5072 1740 ?        S    13:19   0:00 trivial-rewrite -n rewrite -t unix -u
root       947  0.1  0.5 27448 11236 ?       S    13:20   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
root       948  0.0  0.0  3320 1412 ?        S    13:20   0:00 /usr/bin/perl /root/confixx/pipelog.pl
root       977  0.0  0.0 12268  784 ?        S    13:20   0:00 /usr/sbin/nscd
root       978  0.0  0.0 12268  784 ?        S    13:20   0:00 /usr/sbin/nscd
root       979  0.0  0.0 12268  784 ?        S    13:20   0:00 /usr/sbin/nscd
root       980  0.0  0.0 12268  784 ?        S    13:20   0:00 /usr/sbin/nscd
root       981  0.0  0.0 12268  784 ?        S    13:20   0:00 /usr/sbin/nscd
root       982  0.0  0.0 12268  784 ?        S    13:20   0:00 /usr/sbin/nscd
root       983  0.0  0.0 12268  784 ?        S    13:20   0:00 /usr/sbin/nscd
root       984  0.0  0.0  1520  588 ?        S    13:20   0:00 /usr/sbin/cron
wwwrun     987  0.2  1.4 44756 29076 ?       S    13:20   0:01 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun     988  0.1  0.6 29780 14000 ?       S    13:20   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun     991  0.0  2.6 69616 53844 ?       S    13:20   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
root       993  0.0  0.0  1504  516 tty1     S    13:20   0:00 /sbin/mingetty --noclear tty1
root       994  0.0  0.0  1504  516 tty2     S    13:20   0:00 /sbin/mingetty tty2
root       995  0.0  0.0  1504  516 tty3     S    13:20   0:00 /sbin/mingetty tty3
root       996  0.0  0.0  1504  516 tty4     S    13:20   0:00 /sbin/mingetty tty4
root       997  0.0  0.0  1504  516 tty5     S    13:20   0:00 /sbin/mingetty tty5
root       999  0.0  0.0  1504  516 tty6     S    13:20   0:00 /sbin/mingetty tty6
root      1000  0.0  0.0  1500  496 ttyS0    S    13:20   0:00 /sbin/agetty -L 57600 ttyS0 vt102
wwwrun    1004  0.0  1.3 44592 28920 ?       S    13:20   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1008  0.0  1.3 44640 28848 ?       S    13:20   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1013  0.0  1.4 46468 30748 ?       S    13:20   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1014  0.1  2.5 69492 53684 ?       S    13:20   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1023  0.1  2.3 64112 48448 ?       S    13:20   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1027  0.0  1.4 46484 30616 ?       S    13:20   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1050  0.0  1.4 46204 30472 ?       S    13:20   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1051  0.0  1.4 46432 30676 ?       S    13:20   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1056  0.1  1.6 48968 33352 ?       S    13:20   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1057  0.0  1.4 46320 30680 ?       S    13:20   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1058  0.0  0.6 28632 12916 ?       S    13:20   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1062  0.0  1.3 43156 27328 ?       S    13:20   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1064  0.1  1.6 50712 35080 ?       S    13:20   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1066  0.1  2.3 64740 49112 ?       S    13:20   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1067  0.0  1.7 52092 36436 ?       S    13:20   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1069  0.0  1.4 46468 30796 ?       S    13:20   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1101  0.0  1.4 44628 28948 ?       S    13:20   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1114  0.0  0.5 27848 12172 ?       S    13:21   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1116  0.0  1.4 46380 30764 ?       S    13:21   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1117  0.1  1.8 54116 38500 ?       S    13:21   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
root      1121  0.0  0.1  6620 2376 ?        S    13:21   0:00 sshd: root@pts/0
root      1123  0.0  0.1  6620 2376 ?        S    13:21   0:00 sshd: root@pts/0
root      1129  0.0  0.0  2848 1660 pts/0    S    13:21   0:00 -bash
wwwrun    1147  0.0  2.1 61204 45396 ?       S    13:21   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1151  0.0  2.1 61204 45304 ?       S    13:21   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1152  0.1  1.4 45280 29624 ?       S    13:21   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1155  0.0  1.2 40948 25132 ?       S    13:21   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1159  0.0  2.0 58272 42640 ?       S    13:21   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1160  0.0  1.1 38704 22916 ?       S    13:21   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1166  0.0  2.0 58944 43172 ?       S    13:21   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1191  0.0  1.4 46384 30768 ?       S    13:22   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1195  0.0  1.4 46372 30748 ?       S    13:22   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1199  0.0  1.4 46524 30800 ?       S    13:22   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1200  0.0  1.7 52784 37072 ?       S    13:22   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1206  0.0  1.3 44364 28748 ?       S    13:22   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1232  0.0  1.8 53844 38036 ?       S    13:22   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1241  0.0  1.3 44640 28864 ?       S    13:23   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1242  0.0  1.7 52448 36776 ?       S    13:23   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1246  0.0  1.7 53108 37212 ?       S    13:23   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1247  0.0  1.3 44640 28848 ?       S    13:23   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1254  0.1  1.5 46852 31032 ?       S    13:23   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1256  0.0  1.7 52556 36748 ?       S    13:23   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1267  0.0  1.4 46472 30596 ?       S    13:23   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1270  0.0  1.5 48028 32276 ?       S    13:23   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1271  0.2  1.4 45108 29396 ?       S    13:23   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1273  0.0  1.1 40300 24616 ?       S    13:23   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1277  0.0  0.6 28912 13292 ?       S    13:23   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1282  0.1  1.0 37920 22296 ?       S    13:23   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1297  0.1  1.0 37352 21684 ?       S    13:23   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1301  0.0  1.5 48640 32944 ?       S    13:23   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1302  0.0  1.0 37100 21284 ?       S    13:23   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1330  0.0  0.5 27592 11880 ?       S    13:24   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1336  0.0  1.5 47168 31480 ?       S    13:24   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1340  0.1  1.3 44020 28404 ?       S    13:24   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1350  0.1  1.4 46800 31008 ?       S    13:24   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1370  0.0  1.0 36552 20804 ?       S    13:24   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1371  0.0  0.9 35260 19376 ?       S    13:24   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1373  0.1  1.0 36496 20884 ?       S    13:24   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1375  0.1  1.3 44472 28736 ?       S    13:24   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1376  0.0  0.5 27580 11372 ?       S    13:24   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1390  0.1  1.0 36912 21288 ?       S    13:24   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1394  0.0  0.6 29356 13620 ?       S    13:24   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1395  0.0  1.3 44272 28372 ?       S    13:24   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1399  0.1  1.2 41516 25736 ?       S    13:24   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1402  0.2  0.8 33144 17564 ?       S    13:24   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1403  0.1  1.3 42652 26968 ?       S    13:24   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1421  0.1  0.5 27944 12336 ?       S    13:25   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1425  0.2  1.2 40920 25160 ?       S    13:25   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1428  0.1  0.9 35740 20028 ?       S    13:25   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1435  0.1  0.7 31528 15832 ?       S    13:25   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1443  0.1  0.9 36364 20544 ?       S    13:25   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1448  0.0  0.8 33772 17944 ?       S    13:25   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1450  0.1  0.7 30096 14476 ?       S    13:25   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1487  0.0  0.9 35812 19924 ?       S    13:26   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1491  0.1  0.9 35988 20092 ?       S    13:26   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1497  0.0  0.7 32080 16384 ?       S    13:26   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1498  0.2  0.5 27840 12080 ?       S    13:26   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1499  0.0  0.9 35628 19732 ?       S    13:26   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1504  0.0  0.9 35444 19636 ?       S    13:26   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1509  0.1  0.9 35076 19180 ?       S    13:26   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1512  0.1  0.8 33964 18160 ?       S    13:26   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1513  0.0  0.6 28200 12408 ?       S    13:26   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1514  0.2  0.6 28776 13100 ?       S    13:26   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1515  0.0  0.5 27848 12096 ?       S    13:26   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1516  0.2  0.1  5596 3920 ?        S    13:26   0:00 /usr/bin/perl /srv/www/htdocs/web0/html/cgi-bin/fileuploader.cgi
wwwrun    1526  0.1  0.7 31116 15488 ?       S    13:26   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1534  0.4  0.7 30632 14856 ?       S    13:26   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
mysql     1535  0.0  0.2 26400 4296 ?        S    13:26   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/my
root      1541  0.0  0.0     0    0 ?        Z    13:27   0:00 [cron] <defunct>
wwwrun    1543  0.4  0.5 27796 12184 ?       S    13:27   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
mysql     1548  0.0  0.2 26400 4296 ?        S    13:27   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/my
mysql     1551  0.0  0.2 26400 4296 ?        S    13:27   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/my
mysql     1553  0.0  0.2 26400 4296 ?        S    13:27   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/my
wwwrun    1557  0.0  0.6 28628 12732 ?       S    13:27   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1561  0.3  0.6 29880 14116 ?       S    13:27   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
mysql     1563  0.0  0.2 26400 4296 ?        S    13:27   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/my
wwwrun    1564  0.7  0.5 27860 12200 ?       S    13:27   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1565  0.2  0.6 28200 12500 ?       S    13:27   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
mysql     1568  0.1  0.2 26400 4296 ?        S    13:27   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/my
mysql     1571  0.1  0.2 26400 4296 ?        S    13:27   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/my
mysql     1575  0.1  0.2 26400 4296 ?        S    13:27   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/my
wwwrun    1576  0.0  0.5 28084 12200 ?       S    13:27   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1583  0.1  0.5 27848 12060 ?       S    13:27   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
mysql     1585  0.1  0.2 26400 4296 ?        S    13:27   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/my
mysql     1588  0.2  0.2 26400 4296 ?        S    13:27   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/my
mysql     1590  0.1  0.2 26400 4296 ?        S    13:27   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/my
wwwrun    1591  0.2  0.5 27676 11980 ?       S    13:27   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    1594  0.2  0.5 27676 11996 ?       S    13:27   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
mysql     1595  0.2  0.2 26400 4296 ?        S    13:27   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/my
mysql     1603  1.0  0.2 26400 4296 ?        S    13:27   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/my
root      1606  0.0  0.0  2668  716 pts/0    R    13:27   0:00 ps aux
über eure hilfe bin ich sehr dankbar ;)
chris76
Posts: 1878
Joined: 2003-06-27 14:37
Location: Germering
 

Re: strato, suse9.0, sehr viel traffic - server stürzt ab...

Post by chris76 »

Moin,

wegen dem Speicher:
http://www.rootforum.org/faq/index.php? ... artlang=de

Was sagt ein lspci? Laß mich raten eine ViaRhine Netzwerkkarte?
Gruß Christian

BofH excuses: YOU HAVE AN I/O ERROR -> Incompetent Operator error
User avatar
Joe User
Project Manager
Project Manager
Posts: 11186
Joined: 2003-02-27 01:00
Location: Hamburg
 

Re: strato, suse9.0, sehr viel traffic - server stürzt ab...

Post by Joe User »

Da Du hauptsächlich per CGI auslieferst, könnten folgene Optionen in der httpd.conf helfen:

Code: Select all

Timeout 300
KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimeout 15
<IfModule prefork.c>
    StartServers         5
    MinSpareServers      5
    MaxSpareServers     10
    MaxClients         150
    MaxRequestsPerChild 100
</IfModule>
Für MySQL siehe: http://www.rootforum.org/forum/viewtopic.php?t=36343

Generell gilt: Alles was nicht benötigt wird (Diente, Module,...) deaktivieren/deinstallieren.

HTH
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
stain79
Posts: 19
Joined: 2005-09-19 18:16
 

Re: strato, suse9.0, sehr viel traffic - server stürzt ab...

Post by stain79 »

vielen dank für die antworten.

die seite nutzt hauptsächlich ein php script, die eine cgi datei wird nur selten aufgerufen.

ist es möglich, irgendwas in der php.ini, my.cnf oder httpd.conf einzustellen, damit das ganze optimiert wird?

jetzt gerade kommm ich schon wieder nicht auf den server, fast alle halbe stunde ausfälle :(

die maxclients in der httpd.conf bzw server-tuning.conf hab ich auf 256 hochgesetzt, höher geht nicht.

danke im voraus.


btw - wie kann ich rausfinden welche netzwerkkarte ich habe und hat das auswirkungen auf den server??
User avatar
Joe User
Project Manager
Project Manager
Posts: 11186
Joined: 2003-02-27 01:00
Location: Hamburg
 

Re: strato, suse9.0, sehr viel traffic - server stürzt ab...

Post by Joe User »

stain79 wrote:die seite nutzt hauptsächlich ein php script, die eine cgi datei wird nur selten aufgerufen.
Die Optionen sind auch bei PHP hilfreich.
stain79 wrote:ist es möglich, irgendwas in der php.ini, my.cnf oder httpd.conf einzustellen, damit das ganze optimiert wird?
Leg die Configs mal zum Download bereit, dann kann man Dir gezielter helfen.
stain79 wrote:wie kann ich rausfinden welche netzwerkkarte ich habe

Code: Select all

lspci
stain79 wrote:und hat das auswirkungen auf den server??
Boardsuche: Rhine
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
stain79
Posts: 19
Joined: 2005-09-19 18:16
 

Re: strato, suse9.0, sehr viel traffic - server stürzt ab...

Post by stain79 »

lspci gibt mir folgendes:

Code: Select all

00:00.0 Host bridge: Intel Corp. 82875P Memory Controller Hub (rev 02)
00:03.0 PCI bridge: Intel Corp. 82875P Processor to PCI to CSA Bridge (rev 02)
00:1c.0 PCI bridge: Intel Corp.: Unknown device 25ae (rev 02)
00:1e.0 PCI bridge: Intel Corp. 82801BA/CA/DB/EB PCI Bridge (rev 0a)
00:1f.0 ISA bridge: Intel Corp.: Unknown device 25a1 (rev 02)
00:1f.1 IDE interface: Intel Corp.: Unknown device 25a2 (rev 02)
00:1f.3 SMBus: Intel Corp.: Unknown device 25a4 (rev 02)
01:01.0 Ethernet controller: Intel Corp.: Unknown device 1075
03:09.0 VGA compatible controller: ATI Technologies Inc Rage XL (rev 27)
03:0a.0 Ethernet controller: Intel Corp.: Unknown device 1076
die configdateien kommen gleich ;)
stain79
Posts: 19
Joined: 2005-09-19 18:16
 

Re: strato, suse9.0, sehr viel traffic - server stürzt ab...

Post by stain79 »

hier die conf dateien:

My.cnf

httpd.conf

Server-Tuning.conf

so langsam hab ich das gefühl, dass strato den server total 'zer'konfiguriert hat, damit man ja nicht die 100 Mbit voll ausschöpfen kann...

danke im voraus für eure hilfe ;)
User avatar
Joe User
Project Manager
Project Manager
Posts: 11186
Joined: 2003-02-27 01:00
Location: Hamburg
 

Re: strato, suse9.0, sehr viel traffic - server stürzt ab...

Post by Joe User »

Die Configs sind, abgesehen von Deinen Ã?nderungen, die Default-Configs der Distribution beziehungsweise des jeweiligen Softwareherstellers. Meine Empfehlung für Apache und MySQL habe ich bereits gepostet.
stain79 wrote:so langsam hab ich das gefühl, dass strato den server total 'zer'konfiguriert hat, damit man ja nicht die 100 Mbit voll ausschöpfen kann...
Nö, an den geposteten Configs hat Strato Nichts manipuliert. Auch die Ausgabe von lspci ist vollkommen in Ordnung. Führe meine Optimierungsempfehlungen mal durch (Backup anlegen!), dann wirst Du schon einen spürbaren Performanceschub beobachten können. Alles Weitere ist anwendungsspezifisches Feintuning...
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
stain79
Posts: 19
Joined: 2005-09-19 18:16
 

Re: strato, suse9.0, sehr viel traffic - server stürzt ab...

Post by stain79 »

habe deine änderungen in meinen config-dateien eingegeben. leider stürzt der server immernoch regelmässig ab. komme nichtmal via ssh drauf :(

gibt es andere möglichkeiten?
stain79
Posts: 19
Joined: 2005-09-19 18:16
 

Re: strato, suse9.0, sehr viel traffic - server stürzt ab...

Post by stain79 »

kleiner nachtrag - er scheint nun etwas besser länger zu laufen. aber selbst 'lange' sind nur ca. 8 stunden. danach ist er wieder platt...
User avatar
Joe User
Project Manager
Project Manager
Posts: 11186
Joined: 2003-02-27 01:00
Location: Hamburg
 

Re: strato, suse9.0, sehr viel traffic - server stürzt ab...

Post by Joe User »

1) Apache, MySQL und PHP auf den aktuellen Stand (2.0.54/4.0.25/4.4.0) bringen.
2) Sämtliche nicht benötigte Module (Apache/PHP) deaktivieren.
3) URL zu den vollständigen Configs (/etc/apache2/*.conf /etc/my.cnf /etc/php.ini) posten.
4) URL zum PHP-Script und zur phpinfo() posten.
5) Was steht in den Logs (error_log/phperr_log)?
6) Benötigst Du den SSL-vHost zwingend?
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
stain79
Posts: 19
Joined: 2005-09-19 18:16
 

Re: strato, suse9.0, sehr viel traffic - server stürzt ab...

Post by stain79 »

der server lief nun seit 14 stunden relativ schnell...momentan hat er sehr viele zugriffe, und die cpu ist total ausgelastet...
hier mal der aktuelle top auszug, lässt sich daraus evtl was erkennen?

Code: Select all

top - 11:39:21 up 14:47,  2 users,  load average: 138.67, 98.42, 47.13
Tasks: 221 total, 139 running,  79 sleeping,   0 stopped,   3 zombie
Cpu(s):   0.2% user,  99.8% system,   0.0% nice,   0.0% idle
Mem:   2067664k total,  2020472k used,    47192k free,     1840k buffers
Swap:   514072k total,   514072k used,        0k free,   166148k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 7977 mysql     18   0  5368 4532 1516 R 22.3  0.2   0:03.13 mysqld
 7876 wwwrun    20   0  9600 7736 4500 R 19.8  0.4   0:03.49 httpd2-prefork
 7866 wwwrun    20   0 10228 8372 4560 R 19.7  0.4   0:03.60 httpd2-prefork
 7986 wwwrun    20   0  5940 4072 3756 R 19.2  0.2   0:01.57 httpd2-prefork
 7891 wwwrun    20   0  9456 7584 4444 R 19.0  0.4   0:03.31 httpd2-prefork
 7982 wwwrun    20   0  8392 6572 4512 R 18.8  0.3   0:03.43 httpd2-prefork
 7973 wwwrun    20   0  8736 6744 4464 R 18.4  0.3   0:03.29 httpd2-prefork
 7976 wwwrun    20   0  8948 7096 4500 R 17.7  0.3   0:03.38 httpd2-prefork
 7901 wwwrun    20   0 10272 8296 4288 R 17.6  0.4   0:03.14 httpd2-prefork
 7496 wwwrun    20   0 20172  17m 4380 R 17.2  0.9   0:03.89 httpd2-prefork
 7854 wwwrun    20   0  8548 6716 4600 R 17.2  0.3   0:03.69 httpd2-prefork
 7474 wwwrun    20   0 24420  18m 4468 R 12.0  0.9   0:03.43 httpd2-prefork
 7989 root      20   0   720  680  612 R 11.9  0.0   0:00.86 xinetd
 7460 wwwrun    20   0 32940  25m 4600 R 11.6  1.3   0:03.46 httpd2-prefork
 7818 wwwrun    17   0  8028 6212 4552 R 11.6  0.3   0:04.31 httpd2-prefork
 7984 postfix    9   0  1300 1300 1056 S 11.6  0.1   0:01.60 pickup
 6305 wwwrun    15   0 23464  21m 4452 R 11.4  1.0   0:03.40 httpd2-prefork
 7459 wwwrun    20   0 24784  17m 4540 R 11.4  0.9   0:03.40 httpd2-prefork
 7229 wwwrun    20   0  6264 4252 4180 R 11.1  0.2   0:03.10 httpd2-prefork
 7464 wwwrun    20   0 24408  17m 4556 R 11.1  0.9   0:04.02 httpd2-prefork
 7992 root      20   0   420  420  336 R 11.1  0.0   0:00.80 vsftpd
 7991 root      20   0   600  600  512 R 10.9  0.0   0:00.79 vsftpd
 7354 wwwrun    15   0 32228  19m 4612 R 10.7  1.0   0:03.75 httpd2-prefork
 7457 wwwrun    20   0 33332  24m 4440 R 10.4  1.2   0:03.28 httpd2-prefork
 7499 wwwrun    20   0 26556  24m 4540 R 10.2  1.2   0:03.12 httpd2-prefork
 7469 wwwrun    20   0 24956  19m 4536 R 10.0  0.9   0:02.93 httpd2-prefork
 6877 wwwrun    20   0 19864  17m 4624 R  9.8  0.9   0:04.19 httpd2-prefork
 7645 wwwrun    20   0 10180 8348 4484 R  9.7  0.4   0:03.40 httpd2-prefork
 6884 wwwrun    20   0 38936  36m 4612 R  9.6  1.8   0:03.66 httpd2-prefork
 7505 wwwrun    20   0 13248  11m 4280 R  9.6  0.6   0:03.11 httpd2-prefork
 7495 wwwrun    17   0 27428  24m 4380 R  9.4  1.2   0:03.24 httpd2-prefork
 7639 wwwrun    20   0 22992  20m 4484 R  9.4  1.0   0:03.17 httpd2-prefork
 7717 wwwrun    20   0 15632  13m 4536 R  9.4  0.7   0:03.21 httpd2-prefork
 7463 wwwrun    20   0 32016  24m 4520 R  9.3  1.2   0:02.45 httpd2-prefork
 7841 wwwrun    20   0 11248 9400 4608 R  9.3  0.5   0:03.29 httpd2-prefork
 3142 root      19   0  4480 2508 2448 S  9.1  0.1   0:02.73 httpd2-prefork
 5972 wwwrun    20   0 34576  31m 4580 R  9.1  1.6   0:03.83 httpd2-prefork
 6993 wwwrun    20   0 28056  21m 4612 R  9.1  1.1   0:04.03 httpd2-prefork
 7001 wwwrun    20   0 57672  17m 4660 R  9.1  0.8   0:02.13 httpd2-prefork
 7110 wwwrun    20   0 33460  24m 4600 R  9.1  1.2   0:04.18 httpd2-prefork
 7212 wwwrun    20   0 50752  25m 4600 R  9.1  1.3   0:03.24 httpd2-prefork
 7218 wwwrun    20   0  7256 4788 4604 R  9.1  0.2   0:03.30 httpd2-prefork
 7493 wwwrun    19   0 18860  16m 4488 S  9.1  0.8   0:04.31 httpd2-prefork
 7502 wwwrun    20   0 22252  19m 4456 R  9.1  1.0   0:03.22 httpd2-prefork
 7503 wwwrun    20   0 24184  21m 4500 R  9.1  1.1   0:03.28 httpd2-prefork
 7629 wwwrun    20   0 19304  17m 4540 R  9.1  0.8   0:03.46 httpd2-prefork
 7657 wwwrun    20   0 18428  16m 4560 R  9.1  0.8   0:03.14 httpd2-prefork
 7659 wwwrun    20   0 19516  17m 4348 R  9.1  0.9   0:03.05 httpd2-prefork
 7681 wwwrun    20   0 12396 7868 4572 R  9.1  0.4   0:03.56 httpd2-prefork
 7698 wwwrun    19   0 14780  12m 4524 R  9.1  0.6   0:03.41 httpd2-prefork
 7819 wwwrun    20   0 15364  13m 4436 R  9.1  0.7   0:02.95 httpd2-prefork
 7221 wwwrun    20   0  7112 4644 4572 R  9.0  0.2   0:03.15 httpd2-prefork
vevelt
Posts: 122
Joined: 2003-08-01 12:18
Location: Itzehoe
 

Klar...

Post by vevelt »

...das hilft schon enorm weiter... :)

Code: Select all

Mem:   2067664k total,  2020472k used,    47192k free,     1840k buffers
Swap:   514072k total,   514072k used,        0k free,   166148k cached
Soweit ich dass sehe, bedeutet das im Zusammenhang mit der Prozessorauslastung, dass du primär ein Speicherproblem hast, sprich zu wenig RAM... :? Dadurch fängt der Server dann irgendwann an, auf den Swap-Bereich derart angewiesen zu sein, dass er benötigte Speicherbereiche auslagert und wieder einlagert, was sich extrem leistungsreduzierend auswirkt und in deinem Falle irgendwann die Maschine gänzlich lahmlegt.

Also, was tun? --> Dafür sorgen, dass weniger Speicher requiriert wird und zwar z. B. so:
  • Apache von prefork auf worker MPM umstellen
  • 2.6er Kernel verwenden
  • Apache Server Threads / Client-Verbindungen reduzieren bzw. beschränken
  • PHP abspecken, damit es weniger Speicher verbraucht (selbst kompilieren)
  • MySQL Installation optimieren (z. B. QueryCache)
  • MySQL Datenbank optimieren (z. B. Indizes setzen)
In diesem Sinne, Vevelt.
stain79
Posts: 19
Joined: 2005-09-19 18:16
 

Re: strato, suse9.0, sehr viel traffic - server stürzt ab...

Post by stain79 »

danke für deine antwort.

leider hab ich keinen plan, wie ich den kernel updaten kann...geht das bei strato überhaupt ohne probleme? habe da glaube ich irgendwas gelesen...kann aber auch sein, dass ich mich vertue, weil ich in letzter zeit VIEL gelesen habe ;)

wie kann man auf worker umstellen? reicht da ein eintrag in der /etc/sysconfig/apache2? oder muss das neu kompiliert werden?

danke ;)
stain79
Posts: 19
Joined: 2005-09-19 18:16
 

Re: strato, suse9.0, sehr viel traffic - server stürzt ab...

Post by stain79 »

also, ich will es noch nicht beschreien, aber ein update auf php 4.3.11 hat wunder gewirkt... zusätzlich habe ich noch ein paar variablen in der php.ini geändert. auf meiner seite kann man 50 MB daten hochladen, und die execution time und der php arbeitsspeicher war wohl zu hoch angesetzt. ne 30 MB datei konnte ich mit den neuen einstellungen ohne timeout hochladen, also hoffe ich, dass nun alles läuft.
ein neuer auszug aus top:

Code: Select all

top - 15:19:47 up  1:36,  1 user,  load average: 0.45, 0.43, 0.34
Tasks:  80 total,   1 running,  78 sleeping,   0 stopped,   1 zombie
Cpu(s):   7.2% user,   5.2% system,   0.0% nice,  87.7% idle
Mem:   2067664k total,   457296k used,  1610368k free,    31388k buffers
Swap:   514072k total,        0k used,   514072k free,   365892k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 2070 mysql     14   0  4916 4916 2460 S  9.7  0.2   1:07.96 mysqld
 2171 mysql     19   0  4916 4916 2460 S  3.3  0.2   1:03.74 mysqld
 1191 mysql      9   0  4916 4916 2460 S  2.0  0.2   1:23.92 mysqld
 6003 wwwrun    10   0 12148  11m  11m S  2.0  0.6   0:00.93 httpd2-prefork
  986 mysql      9   0  4916 4916 2460 S  1.0  0.2   1:32.19 mysqld
 1002 mysql     12   0  4916 4916 2460 S  1.0  0.2   1:26.86 mysqld
 1187 mysql      9   0  4916 4916 2460 S  1.0  0.2   1:23.65 mysqld
 2170 mysql     12   0  4916 4916 2460 S  1.0  0.2   1:01.76 mysqld
 5884 wwwrun    12   0 12372  12m  11m S  1.0  0.6   0:01.28 httpd2-prefork
 5906 wwwrun     9   0 12312  12m  11m S  1.0  0.6   0:01.27 httpd2-prefork
 4450 root       9   0   968  968  756 R  0.3  0.0   0:04.64 top
 5787 wwwrun     9   0 12304  12m  11m S  0.3  0.6   0:01.43 httpd2-prefork
 6104 wwwrun    10   0 12308  12m  11m S  0.3  0.6   0:00.33 httpd2-prefork
 6110 wwwrun    10   0 12048  11m  11m S  0.3  0.6   0:00.06 httpd2-prefork
    1 root       9   0   256  256  220 S  0.0  0.0   0:07.01 init
    2 root       8   0     0    0    0 S  0.0  0.0   0:00.00 keventd
    3 root      19  19     0    0    0 S  0.0  0.0   0:05.09 ksoftirqd_CPU0
    4 root      19  19     0    0    0 S  0.0  0.0   0:00.09 ksoftirqd_CPU1
    5 root       9   0     0    0    0 S  0.0  0.0   0:00.00 kswapd
    6 root       9   0     0    0    0 S  0.0  0.0   0:00.00 bdflush
    7 root       9   0     0    0    0 S  0.0  0.0   0:01.93 kupdated
   11 root       9   0     0    0    0 S  0.0  0.0   0:00.09 khubd
   12 root       9   0     0    0    0 S  0.0  0.0   0:17.68 kjournald
   57 root       9   0     0    0    0 S  0.0  0.0   0:00.01 kjournald
  537 root       9   0   480  480  420 S  0.0  0.0   0:00.00 dhcpcd
  604 root       9   0   624  624  532 S  0.0  0.0   0:00.09 syslogd
  607 root       9   0  1556 1556  472 S  0.0  0.1   0:00.05 klogd
  617 root       9   0  1072 1072 1056 S  0.0  0.1   0:00.00 saslauthd
  618 root       9   0  1072 1072 1056 S  0.0  0.1   0:00.00 saslauthd
  619 root       9   0  1072 1072 1056 S  0.0  0.1   0:00.00 saslauthd
  620 root       9   0  1072 1072 1056 S  0.0  0.1   0:00.00 saslauthd
  621 root       9   0  1072 1072 1056 S  0.0  0.1   0:00.00 saslauthd
  631 bin        9   0   408  408  340 S  0.0  0.0   0:00.00 portmap
  678 root       9   0   284  284  232 S  0.0  0.0   0:00.00 startpar
  680 root       9   0   864  864  732 S  0.0  0.0   0:00.01 xinetd
  681 named      9   0  2472 2472 1904 S  0.0  0.1   0:00.00 named
  682 named      9   0  2472 2472 1904 S  0.0  0.1   0:00.06 named
  683 named      9   0  2472 2472 1904 S  0.0  0.1   0:00.03 named
  684 named      9   0  2472 2472 1904 S  0.0  0.1   0:00.00 named
  685 named      9   0  2472 2472 1904 S  0.0  0.1   0:00.00 named
  690 root       9   0  1108 1104  900 S  0.0  0.1   0:00.01 mysqld_safe
  723 root       9   0  1616 1616 1472 S  0.0  0.1   0:00.00 sshd
  735 mysql      9   0  4916 4916 2460 S  0.0  0.2   0:00.75 mysqld
  747 mysql      9   0  4916 4916 2460 S  0.0  0.2   0:00.23 mysqld
  748 mysql      9   0  4916 4916 2460 S  0.0  0.2   0:00.98 mysqld
  902 root       8   0  1328 1328 1076 S  0.0  0.1   0:00.11 master
  909 postfix    9   0  1392 1392 1128 S  0.0  0.1   0:00.05 qmgr
man beachte, das nun VIEL weniger RAM benutzt wird...

vielen dank für eure hilfe und für dieses forum ;) nun geht es mir schon viiiiiel besser ;)
klehmann
Posts: 18
Joined: 2005-09-23 00:09
Location: Bierstadt
 

Re: strato, suse9.0, sehr viel traffic - server stürzt ab...

Post by klehmann »

guten tag stain
ich lese die beiträge etwas verspätet .-)
es interessiert mich brennend, da auch bei mir strato's suse9.0 hier löpt.

-ich "glaube" nicht, daß es die versionsverbesserung auf 4.3.11 gebracht hat. m.W. sind da "nur" sicherheitslücken gestopft worden..
bitte korrigiert mich, wenn ich falsch liege ;-)

-mich würden die php-verbesserungen in der php-ini interessieren. kannst du die im einzelnen noch mal benennen? danke.


-zu strato und dem thema updaten:
ich bin wie du, in der falle von suse9.0:
man kommt bald an die grenzen!
php5 ist nicht möglich.
an apache2.1 wag ich est recht nicht zu denken. derzeit viel wichtiger: da plone im spiel ist (=2.0.5), benötige ich für ein wichtiges update eigentlich plone2.1, geht nicht weil zope 2.7.6 am laufen. ein neueres zope bekomme ich dank suse9.0 NICHT rein. python 2.4.1 ist zum glück drauf....
WILL sagen: du kommst von suse9.0 NICHT runter. es soll tricks geben: per partionserweiterung (JA das soll gehen!),sich ne extra-parti machen, dann von der booten können, da das ganze krams um suse9.3 raufspielen, von dieser booten, UM dann letztendlich das suse9.0 upzudaten. so ähnlich, wie als wenn man zuhause wäre! compris? DAS wird aber kein weg sein!
also, bleiben wir bei suse9.0

;-)


gruß
klaus
User avatar
Joe User
Project Manager
Project Manager
Posts: 11186
Joined: 2003-02-27 01:00
Location: Hamburg
 

Re: strato, suse9.0, sehr viel traffic - server stürzt ab...

Post by Joe User »

Wenn Du SUSE 9.3 willst, dann lass den Server per Kundenmenü mit SUSE 9.3 neu initialisieren.
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
klehmann
Posts: 18
Joined: 2005-09-23 00:09
Location: Bierstadt
 

Re: strato, suse9.0, sehr viel traffic - server stürzt ab...

Post by klehmann »

verzeih, gutgütiger guru
es ist ein unterschied, ob du ein suse9.0 mit visas bekommst, also darauf aufbaust, und ob du dann auf ein nacktes suse9.3 gehst.
grüßle
klaus
Anonymous
 

Re: strato, suse9.0, sehr viel traffic - server stürzt ab...

Post by Anonymous »

Andere Distributionen lassen sich problemlos über das Recovery System installieren (Tutorial hier im Forum). Habs jetzt drei mal bei mir und freunden gemacht. Läuft super ^^
Roger Wilco
Posts: 5923
Joined: 2004-05-23 12:53
 

Re: strato, suse9.0, sehr viel traffic - server stürzt ab...

Post by Roger Wilco »

klehmann wrote:verzeih, gutgütiger guru
es ist ein unterschied, ob du ein suse9.0 mit visas bekommst, also darauf aufbaust, und ob du dann auf ein nacktes suse9.3 gehst.
Stimmt, die Variante mit dem SuSE 9.3 Minimalsystem ist wesentlich sauberer und weniger fehleranfällig, als ein halbgares Upgrade von SuSE 9.0 mit jeder Menge installiertem Schmodder zu installieren...
stain79
Posts: 19
Joined: 2005-09-19 18:16
 

Re: strato, suse9.0, sehr viel traffic - server stürzt ab...

Post by stain79 »

hallo allerseits,

suse 9.3 ist IMO momentan leider keine option, da es weder confixx noch visas dafür gibt.
von visas bin ich mittlerweile ganz weg, das hat irgendwie nur probleme gemacht.

ich habe in den letzten tagen festgestellt, dass ein kleiner code schnipsel aus meinem script für den server tiefgang verantwortlich war. und zwar hab ich ein traffic-speed-limit für meine downloads eingebaut. dort wird mit fread eine while schleife geöffnet, die jede sekunde auf EOF prüft. dies scheint dieser strato server nicht mitzumachen.

vorher lief das script auf redhat, zwar sehr auslastend, aber dennoch stabil.

aber da der server ja unlimited traffic hat, habe ich dieses limit nun rausgenommen, und der server läuft SEHR gut, trotz suse 9.0.

ich verbrauche täglich momentan ca. 120 gigs ohne probleme.

ich werde nun auch keine grösseren änderungen am server mehr durchführen, da ich erstmal froh bin, dass der server seit ca. 5 tagen super läuft ;)

dennoch wünsche ich allen viel glück, bei denen das strato ding noch nicht so läuft wie gewünscht ;)
stoned
Posts: 16
Joined: 2004-02-05 10:11
 

Re: strato, suse9.0, sehr viel traffic - server stürzt ab...

Post by stoned »

Ich meine irgendwo bei Strato gelesen zu haben, dass eine limitierte Plesk7-Version auf deren FTP-Servern verfügbar ist (für SuSE 9.2 oder 9.3).