Zuviele Prozesse?

Apache, Lighttpd, nginx, Cherokee
Post Reply
kongotarzan
Posts: 19
Joined: 2002-06-04 15:35
Location: Simbach
 

Zuviele Prozesse?

Post by kongotarzan »

Hallo,

ich habe das Problem, daß im Moment ca. 1-2 mal am Tag meine Seiten aufgrund von Ã?berlastung nicht mehr funktionieren. Laut "Top" sind dann über 300 Prozesse in Warteschleife. Das Load Average ist jedoch dann nicht allzu hoch. Abhilfe verschafft nur noch ein Neustart des MySQL-Servers.
Es handelt sich um einen Rootserver XXL von puretec mit mehreren Projekten mit zT. hohen Seitenaufrufen. Zuletzt habe ich noch einen Banner- und Textlinktausch übernommen. Fast alle Projekte erzeugen "viele" MySQL-Abrufe. Ist der Server nun schon am Ende oder kann ich noch optimieren?

Nachfolgend die wichtigsten Daten:

Top vom letzten "Hänger":

Code: Select all

top - 21:13:45 up 134 days, 17:40,  1 user,  load average: 0.39, 0.39, 0.84
Tasks: 355 total,   1 running, 352 sleeping,   0 stopped,   2 zombie
Cpu(s):   0.2% user,  14.7% system,   0.0% nice,  85.1% idle
Mem:   2061392k total,  1995560k used,    65832k free,    18572k buffers
Swap:  2048276k total,    15516k used,  2032760k free,  1475628k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
15504 root      16   0  1244 1244  852 R 29.8  0.1   0:52.24 top
    1 root       9   0    84   72   52 S  0.0  0.0   2:14.70 init
    2 root       9   0     0    0    0 S  0.0  0.0   0:00.06 keventd
    3 root      19  19     0    0    0 S  0.0  0.0   0:19.83 ksoftirqd_CPU0
    4 root      19  19     0    0    0 S  0.0  0.0   0:02.61 ksoftirqd_CPU1
    5 root       9   0     0    0    0 S  0.0  0.0   5:21.58 kswapd
    6 root       9   0     0    0    0 S  0.0  0.0   0:23.29 bdflush
    7 root       9   0     0    0    0 S  0.0  0.0  93:58.24 kupdated
    8 root       9   0     0    0    0 S  0.0  0.0   2:14.87 pagebufd
    9 root       9   0     0    0    0 S  0.0  0.0   6:02.55 xfslogd/0
   10 root       9   0     0    0    0 S  0.0  0.0   0:00.00 xfslogd/1
   11 root       9   0     0    0    0 S  0.0  0.0   0:00.00 xfsdatad/0
   12 root       9   0     0    0    0 S  0.0  0.0   0:00.00 xfsdatad/1
   14 root       9   0     0    0    0 S  0.0  0.0   7:01.19 kjournald
   59 root       9   0     0    0    0 S  0.0  0.0   0:06.22 xfssyncd
   60 root       9   0     0    0    0 S  0.0  0.0   0:35.12 xfssyncd
   61 root       9   0     0    0    0 S  0.0  0.0   0:37.89 xfssyncd
  427 root       9   0   548  520  472 S  0.0  0.0   1:33.20 dhcpcd
  493 root       9   0   640  620  552 S  0.0  0.0   2:46.48 syslogd
  496 root       9   0  1500  452  452 S  0.0  0.0   0:00.53 klogd
  514 root       9   0  1352 1264 1232 S  0.0  0.1   0:00.42 saslauthd
  515 root       9   0  1352 1264 1216 S  0.0  0.1   0:00.41 saslauthd
  516 root       9   0  1352 1264 1156 S  0.0  0.1   0:00.41 saslauthd
  517 root       9   0  1352 1264 1156 S  0.0  0.1   0:00.36 saslauthd
  518 root       9   0  1352 1264 1160 S  0.0  0.1   0:00.45 saslauthd
  590 root       9   0  1500 1328 1276 S  0.0  0.1   0:07.62 sshd
  703 root       8   0   848  784  712 S  0.0  0.0   0:01.32 xinetd
  773 ntp        9   0  2184 2184 1872 S  0.0  0.1   8:46.04 ntpd
  789 root       8   0  1348 1204 1128 S  0.0  0.1   5:43.40 master
  853 root       9   0   712  652  608 S  0.0  0.0   1:26.37 cron
  857 root       9   0   624  544  544 S  0.0  0.0   0:00.04 mingetty
  858 root       9   0   624  544  544 S  0.0  0.0   0:00.04 mingetty
  859 root       9   0   480  428  428 S  0.0  0.0   0:00.00 agetty
11820 root       9   0  1300 1092 1092 S  0.0  0.1   0:00.00 pipelog.pl
 6580 spamd      8   0 21312 9.8m 2640 S  0.0  0.5   0:04.23 spamd
19733 postfix    9   0  1616 1616 1128 S  0.0  0.1   0:04.99 qmgr
25124 root       9   0 11628  11m  11m S  0.0  0.6  10:17.93 httpd2-prefork
ps aux vom selben Zeitpunkt:

Code: Select all

wwwrun   15171  0.0  0.5 28016 12344 ?       S    21:04   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15172  0.0  0.5 28016 12344 ?       S    21:04   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15173  0.0  0.5 28016 12344 ?       S    21:04   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
mysql    15174  0.0  7.6 190420 158328 ?     S    21:04   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15175  0.0  7.6 190420 158328 ?     S    21:04   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15176  0.0  7.6 190420 158328 ?     S    21:04   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
wwwrun   15177  0.0  0.5 28016 12344 ?       S    21:04   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15178  0.0  0.5 28016 12344 ?       S    21:04   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15179  0.0  0.5 28016 12348 ?       S    21:04   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
mysql    15181  0.0  7.6 190420 158328 ?     S    21:04   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15182  0.0  7.6 190420 158328 ?     S    21:04   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
wwwrun   15184  0.0  0.5 28016 12344 ?       S    21:04   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15185  0.0  0.5 28016 12348 ?       S    21:04   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
mysql    15186  0.0  7.6 190420 158328 ?     S    21:04   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
wwwrun   15187  0.0  0.5 28016 12344 ?       S    21:04   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
mysql    15188  0.0  7.6 190420 158328 ?     S    21:04   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15189  0.0  7.6 190420 158328 ?     S    21:04   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15190  0.0  7.6 190420 158328 ?     S    21:04   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
wwwrun   15192  0.0  0.6 28652 12940 ?       S    21:04   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15193  0.0  0.6 29048 13368 ?       S    21:04   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15195  0.0  0.5 28016 12340 ?       S    21:04   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15196  0.0  0.5 28016 12344 ?       S    21:04   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15197  0.0  0.5 28016 12348 ?       S    21:04   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
mysql    15198  0.0  7.6 190420 158328 ?     S    21:04   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15199  0.0  7.6 190420 158328 ?     S    21:04   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
wwwrun   15200  0.0  0.5 28016 12344 ?       S    21:04   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15201  0.0  0.5 28016 12344 ?       S    21:04   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15202  0.0  0.5 28016 12344 ?       S    21:04   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15204  0.0  0.5 28016 12344 ?       S    21:04   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15205  0.0  0.5 28016 12348 ?       S    21:04   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
mysql    15206  0.0  7.6 190420 158328 ?     S    21:04   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
wwwrun   15207  0.0  0.5 28016 12344 ?       S    21:04   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15209  0.0  0.5 28016 12348 ?       S    21:04   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
mysql    15210  0.0  7.6 190420 158328 ?     S    21:04   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15211  0.0  7.6 190420 158328 ?     S    21:04   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15212  0.0  7.6 190420 158328 ?     S    21:04   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15213  0.0  7.6 190420 158328 ?     S    21:04   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15214  0.0  7.6 190420 158328 ?     S    21:04   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15215  0.0  7.6 190420 158328 ?     S    21:04   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15216  0.0  7.6 190420 158328 ?     S    21:04   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
wwwrun   15217  0.0  0.5 28016 12344 ?       S    21:04   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15218  0.0  0.6 28540 12852 ?       S    21:04   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15219  0.0  0.5 28016 12348 ?       S    21:04   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15220  0.0  0.5 28016 12344 ?       S    21:04   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15221  0.0  0.5 28016 12352 ?       S    21:04   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15223  0.0  0.5 28016 12344 ?       S    21:04   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15224  0.0  0.5 28016 12344 ?       S    21:04   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15226  0.0  0.5 28016 12348 ?       S    21:04   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15227  0.0  0.5 28016 12352 ?       S    21:04   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15228  0.0  0.5 28016 12340 ?       S    21:04   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15229  0.0  0.5 28016 12344 ?       S    21:04   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15230  0.0  0.5 28016 12352 ?       S    21:04   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15231  0.0  0.5 27848 11760 ?       S    21:04   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15233  0.0  0.5 28016 12340 ?       S    21:04   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15234  0.0  0.5 28016 12348 ?       S    21:04   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15236  0.0  0.5 28016 12344 ?       S    21:04   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15238  0.0  0.5 28016 12348 ?       S    21:04   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15239  0.0  0.5 28016 12352 ?       S    21:04   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15240  0.0  0.5 28016 12352 ?       S    21:04   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15241  0.0  0.5 28016 12348 ?       S    21:04   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15242  0.0  0.5 28016 12352 ?       S    21:04   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15243  0.0  0.6 29200 13528 ?       S    21:04   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15244  0.0  0.5 28016 12348 ?       S    21:04   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15245  0.0  0.5 28016 12344 ?       S    21:04   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15246  0.0  0.6 29584 13832 ?       S    21:04   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15247  0.0  0.6 29200 13532 ?       S    21:04   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15248  0.0  0.5 28016 12348 ?       S    21:04   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
mysql    15249  0.0  7.6 190420 158328 ?     S    21:04   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15250  0.0  7.6 190420 158328 ?     S    21:04   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15251  0.0  7.6 190420 158328 ?     S    21:04   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
root     15253  0.0  0.0  1712  676 ?        S    21:05   0:00 /USR/SBIN/CRON
root     15255  0.0  0.0  2456  992 ?        S    21:05   0:00 /bin/sh -c /root/confixx/confixx_counterscript.pl && /root/bin
root     15256  0.0  0.4 11428 9772 ?        S    21:05   0:00 /root/confixx/confixx_counterscript.pl
mysql    15259  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15260  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15261  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15262  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15263  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15264  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15265  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15266  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15267  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15268  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15269  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15270  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15271  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
web1     15272  0.0  0.3  8096 6316 ?        S    21:05   0:00 /usr/bin/perl feedback.pl
mysql    15274  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15275  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15276  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15277  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15278  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15279  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15280  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15281  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15282  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15283  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15284  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15285  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15286  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15287  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
wwwrun   15288  0.0  0.5 28016 12336 ?       S    21:05   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
mysql    15289  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15290  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
wwwrun   15291  0.0  0.5 28016 12344 ?       S    21:05   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15292  0.0  0.5 28016 12344 ?       S    21:05   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
mysql    15293  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
wwwrun   15294  0.0  0.5 28016 12344 ?       S    21:05   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15295  0.0  0.6 28536 12848 ?       S    21:05   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15296  0.0  0.5 28016 12352 ?       S    21:05   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15297  0.0  0.5 28016 12348 ?       S    21:05   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
mysql    15298  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15299  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15300  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15301  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
wwwrun   15302  0.0  0.6 29196 13524 ?       S    21:05   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15303  0.0  0.5 28016 12352 ?       S    21:05   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15304  0.0  0.5 28016 12344 ?       S    21:05   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15305  0.0  0.5 28016 12336 ?       S    21:05   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
mysql    15306  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15307  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
wwwrun   15308  0.0  0.5 28016 12352 ?       S    21:05   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15309  0.0  0.5 28060 12204 ?       S    21:05   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15310  0.0  0.5 28016 12348 ?       S    21:05   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
mysql    15311  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
wwwrun   15312  0.0  0.5 28016 12344 ?       S    21:05   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
mysql    15313  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15314  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15315  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15316  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15317  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15318  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
wwwrun   15319  0.0  0.5 28016 12348 ?       S    21:05   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15320  0.0  0.6 29200 13528 ?       S    21:05   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15321  0.0  0.5 28016 12352 ?       S    21:05   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15322  0.0  0.6 29632 13992 ?       S    21:05   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15323  0.0  0.5 28016 12356 ?       S    21:05   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15325  0.0  0.5 28016 12344 ?       S    21:05   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15326  0.0  0.5 28016 12344 ?       S    21:05   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15327  0.0  0.5 28016 12344 ?       S    21:05   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15328  0.0  0.5 28016 12352 ?       S    21:05   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15329  0.0  0.6 29048 13368 ?       S    21:05   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
mysql    15331  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
wwwrun   15330  0.0  0.5 28016 12352 ?       S    21:05   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15333  0.0  0.5 28016 12344 ?       S    21:05   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15334  0.0  0.5 28016 12352 ?       S    21:05   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15335  0.0  0.5 28100 12296 ?       S    21:05   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
mysql    15336  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15337  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15338  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15339  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15340  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15341  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15342  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15343  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15344  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15345  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15346  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15348  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15349  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
wwwrun   15350  0.0  0.5 28016 12344 ?       S    21:05   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15351  0.0  0.5 28016 12360 ?       S    21:05   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
mysql    15352  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15353  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
wwwrun   15355  0.0  0.5 28016 12348 ?       S    21:05   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15356  0.0  0.6 29196 13520 ?       S    21:05   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15357  0.0  0.5 28016 12348 ?       S    21:05   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
mysql    15358  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15359  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15360  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
wwwrun   15361  0.0  0.5 28016 12348 ?       S    21:05   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15362  0.0  0.5 28060 12204 ?       S    21:05   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
mysql    15364  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
wwwrun   15365  0.0  0.5 28060 12204 ?       S    21:05   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15366  0.0  0.5 28016 12344 ?       S    21:05   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
mysql    15368  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
wwwrun   15367  0.0  0.5 28016 12344 ?       S    21:05   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
mysql    15369  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
wwwrun   15370  0.0  0.5 28016 12344 ?       S    21:05   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15371  0.0  0.5 28016 12344 ?       S    21:05   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
mysql    15372  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15373  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15374  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15375  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
wwwrun   15376  0.0  0.5 28016 12344 ?       S    21:05   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15377  0.0  0.5 28016 12352 ?       S    21:05   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15378  0.0  0.6 29196 13524 ?       S    21:05   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15379  0.0  0.5 28016 12348 ?       S    21:05   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15380  0.0  0.5 28016 12336 ?       S    21:05   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15381  0.0  0.5 28016 12352 ?       S    21:05   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15382  0.0  0.6 29584 13840 ?       S    21:05   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
mysql    15383  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15384  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15385  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
wwwrun   15386  0.0  0.5 28016 12344 ?       S    21:05   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15387  0.0  0.6 28540 12852 ?       S    21:05   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15388  0.0  0.6 28536 12848 ?       S    21:05   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
mysql    15389  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
wwwrun   15390  0.0  0.5 28060 12204 ?       S    21:05   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15391  0.0  0.5 28016 12336 ?       S    21:05   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
mysql    15392  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
wwwrun   15394  0.0  0.6 28540 12852 ?       S    21:05   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15395  0.0  0.5 28016 12344 ?       S    21:05   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15396  0.0  0.5 28016 12344 ?       S    21:05   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
mysql    15397  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15398  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15399  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15400  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15401  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15402  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15403  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15405  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15406  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15407  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
wwwrun   15408  0.0  0.5 28016 12352 ?       S    21:05   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
mysql    15409  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
wwwrun   15410  0.0  0.6 28432 12740 ?       S    21:05   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
mysql    15411  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
wwwrun   15412  0.0  0.5 28016 12344 ?       S    21:05   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
mysql    15413  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
wwwrun   15414  0.0  0.5 28016 12348 ?       S    21:05   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun   15415  0.0  0.6 28660 12940 ?       S    21:05   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
mysql    15416  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15417  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
wwwrun   15420  0.0  0.5 28016 12348 ?       S    21:05   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
mysql    15421  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
wwwrun   15422  0.0  0.5 28016 12348 ?       S    21:05   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
mysql    15423  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
wwwrun   15424  0.0  0.5 28016 12344 ?       S    21:05   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
mysql    15425  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
wwwrun   15426  0.0  0.5 28016 12340 ?       S    21:05   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
mysql    15427  0.0  7.6 190420 158328 ?     S    21:05   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
mysql    15435  0.0  7.6 190420 158328 ?     S    21:06   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
wwwrun   15467  0.0  0.5 28016 12340 ?       S    21:09   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
mysql    15475  0.0  7.6 190420 158328 ?     S    21:10   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --use
root     15477  0.0  0.1  8004 2336 ?        S    21:10   0:00 sshd: root@pts/0
root     15487  0.0  0.0  3008 1760 pts/0    S    21:11   0:00 -bash
root     15529  0.0  0.0     0    0 ?        Z    21:15   0:00 [cron] <defunct>
root     15530  0.0  0.0     0    0 ?        Z    21:15   0:00 [cron] <defunct>
root     15531  0.0  0.0     0    0 ?        Z    21:15   0:00 [cron] <defunct>
root     15533  0.0  0.0  1712  676 ?        S    21:15   0:00 /USR/SBIN/CRON
root     15542  0.0  0.0  4332 1780 ?        S    21:15   0:00 lynx -dump http://www.handelssache.de/cgi-bin/auktion/catfix.p
root     15557  0.0  0.0  2860  856 pts/0    R    21:15   0:00 ps -aux
Auszug aus my.cnf:

Code: Select all

# The MySQL server
[mysqld]
port            = 3306
socket          = /var/lib/mysql/mysql.sock
set-variable    = key_buffer=128M
set-variable    = max_allowed_packet=16M
set-variable    = query_cache_type=1
set-variable    = query_cache_limit=2M
set-variable    = query_cache_size=8M
set-variable    = table_cache=512
set-variable    = sort_buffer=8M
set-variable    = net_buffer_length=8K
set-variable    = myisam_sort_buffer_size=16M
set-variable    = record_buffer=1M
set-variable    = thread_cache_size=1M
set-variable    = tmp_table_size=64M
set-variable    = max_connections=300
Auszüge aus server-tuning.conf:

Code: Select all

<IfModule prefork.c>
        # 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
        # maximum number of server processes allowed to start
        MaxClients         150
        # maximum number of requests a server process serves
        #MaxRequestsPerChild  0
        # set to 1 because of a bug in php - this will slow down the server
        MaxRequestsPerChild 1
</IfModule>
...
#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
KeepAlive On

#
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
MaxKeepAliveRequests 150

#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAliveTimeout 15

oxygen
Posts: 2138
Joined: 2002-12-15 00:10
Location: Bergheim
 

Re: Zuviele Prozesse?

Post by oxygen »

# set to 1 because of a bug in php - this will slow down the server
MaxRequestsPerChild 1
^^ Das ist natürlich grober unfug
tomek
Posts: 243
Joined: 2003-08-05 09:44
Location: Paderborn
Contact:
 

Re: Zuviele Prozesse?

Post by tomek »

Allerdings.

Setze MaxRequestsPerChild auf 5000 oder 10000. Wenn das immernoch nicht Abhilfe schafft, dann verringere bitte noch MaxKeepAliveRequests auf etwa 100.

Schalte weiterhin in der php.ini die Variable mysql.allow_persistent auf Off.

Für alle Ã?nderungen ist ein Apache Neustart notwendig.
kongotarzan
Posts: 19
Joined: 2002-06-04 15:35
Location: Simbach
 

Re: Zuviele Prozesse?

Post by kongotarzan »

Hallo,

nachdem ich den Beitrag gestern geschrieben hatte, gingen die Probleme richtig los. Etwa im 5 Minutentakt hingen über 300 Prozesse in Warteschleife und nichts ging mehr. Daraufhin habe ich jeweils MySQL mit "/etc/init.d/mysql restart" neu gesartet.
Als Folge hatte ich eine beschädigte Tabelle, welche ich nicht mehr reparieren konnte. 2-3 weitere Tabellen wollte ich aufgrund von Speicherüberhang mit "OPTIMIZE TABLE " optimieren. Leider wurden dann auch diese Tabellen irreparabel beschädigt und es kam eine Fehlermeldung bezüglich Speicher (genauer weiß ich das nicht mehr).

Danach habe ich erst mal einige überflüssige Tabellen geleert und gelöscht um mehr Speicher freizusetzen. Im Anschluß daran konnte ich andere Tabellen wieder optimieren, bei den beschädigten habe ich ein Backup eingespielt.

Nun meine Fragen:

Kann es sein, daß hier der Speicher für MySQL, einzelner Datenbanken oder Tabellen voll waren?

Wo und wie wird denn der Speicher unabhängig von den Feldtypen begrenzt?


P.S.

Danke für die oben aufgeführten Optimierungsvorschläge, welche ich soeben umgesetzt habe.
kongotarzan
Posts: 19
Joined: 2002-06-04 15:35
Location: Simbach
 

Re: Zuviele Prozesse?

Post by kongotarzan »

Kann es sein, daß hier der Speicher für MySQL, einzelner Datenbanken oder Tabellen voll waren?

Wo und wie wird denn der Speicher unabhängig von den Feldtypen begrenzt?
Hallo,

weiß jemand noch Antworten auf meine Fragen?

Von Zeit zu Zeit hängt sich die Datenbank auf, so wie heute morgen wieder. Das leeren einiger Tabellen schafft dann in der Regel Besserung.
andreask2
Posts: 696
Joined: 2004-01-27 14:16
Location: Aachen
 

Re: Zuviele Prozesse?

Post by andreask2 »

Kann es sein dass Du persistente Verbindungen zum DB-Server nutzt? Dann solltest Du mal http://de3.php.net/manual/de/features.p ... ctions.php lesen.

Ich zitier mal kurz:
Beachten Sie jedoch, dass dies auch ein paar Nachteile haben kann, wenn Sie eine Datenbank mit limitierten Verbindungen benutzen, welche durch persistente Verbindungen überschritten werden. Wenn Ihre Datenbank ein Limit von 16 gleichzeitigen Verbindungen hat, und aufgrund einer stark ausgelasteten Server-Session 17 Kind-Prozesse versuchen, eine Verbindung herzustellen, wird es einem nicht gelingen. Sollten in Ihren Skripten Fehler bestehen, welche das Schließen der Verbindungen nicht erlauben (wie z.B. Endlosschleifen), kann das eine Datenbank mit mit nur 16 Verbindungen sehr schnell überschwemmen. Konsultieren Sie die Dokumentation Ihrer Datenbank bezüglich der Behandlung von aufgegebenen Verbindungen oder Verbindungen im Leerlauf.
Und wie bereits ebenfalls bemerkt wurde, MaxRequestsPerChild auf einen hohen Wert setzen, oder 0.

Was ich allerdings anders machen würde, ist KeepAlive auf Off. Persistente DB-Verbindungen sind natürlich ein Parade-Beispiel hierfür, denn so verbringen die Prozesse die meiste Zeit damit auf den keepalive-timeout zu warten, anstatt zu arbeiten. Natürtlich spart man TCP-Overhead, auf der anderen Seite sind aber Resourcen wie RAM, begrenzte DB-Verbidungen etc. dadurch dass der Prozess halt nichts macht, nutzlos gebunden, und stehen anderen Aufgaben nicht zur Verfügung, obwohl eigentlich nicht benötigt.

Daher würde ich nach Möglichkeit wenn viel PHP oder sowas zum Einsatz kommt, auf keep-alive verzichten, und nach Möglichkeit sogar statische Inhalte komplett auf einen anderen Webserver auslagern, der dann natürlich von keep-alive wieder profitieren kann/sollte, und entsprechend schlanker ausgestattet sein kann...
kongotarzan
Posts: 19
Joined: 2002-06-04 15:35
Location: Simbach
 

Re: Zuviele Prozesse?

Post by kongotarzan »

Kann es sein dass Du persistente Verbindungen zum DB-Server nutzt?
Nein!

Ich habe bemerkt, daß mit "df -h" der zugewiesene Speicherplatz für das Verzeichnis var/ zu 100% verwendet war. Nachdem ich nun einige Daten gelöscht habe und wieder zumindest 10% Reserven habe läuft das System wieder. Ich vermute mal stark, daß die Probleme hiermit zusammenhängen könnte, auch wenn ich das nicht nachvollziehen kann.

Was würde denn passieren, wenn für /var kein Speicherplatz mehr frei ist und weitere Zugriffe auf den Server folgen? Werden hierdurch die Anfragen ebenso in Warteschleife gelegt?

Wie kann ich im laufenden Betrieb für "var" mehr Speicherplatz zuweisen (Beispielsweise von /home)?

Danke!
User avatar
Joe User
Project Manager
Project Manager
Posts: 11191
Joined: 2003-02-27 01:00
Location: Hamburg
Contact:
 

Re: Zuviele Prozesse?

Post by Joe User »

Hint: log_bin
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.
kongotarzan
Posts: 19
Joined: 2002-06-04 15:35
Location: Simbach
 

Re: Zuviele Prozesse?

Post by kongotarzan »

Joe User wrote:Hint: log_bin
Hallo,

dies ist in my.cnf bereits auskommentiert! Denke du wolltest darauf anspielen?

Ich denke einfach ich sollte von home etwas Speicher auf var abgeben. Hier das Ergebnis von df -h:
/dev/hda1 510M 334M 150M 69% /
/dev/hda5 4.9G 501M 4.4G 11% /usr
/dev/hda6 4.9G 4.2G 704M 86% /var
/dev/hda7 100G 770M 99G 1% /home
tmpfs 1007M 8.0K 1007M 1% /tmp
tmpfs 20M 0 20M 0% /dev/shm
"Var" wird überwiegend durch die access_logs verwendet, wobei ich schon alles älter als September gelöscht habe um wieder 14% freizubekommen.

Wie könnte ich denn am einfachsten Speicher von hda7 an hda6 verschieben?
jhnet
Posts: 98
Joined: 2004-07-20 11:43
 

Re: Zuviele Prozesse?

Post by jhnet »

Per Symlink.

/home/mysql anlegen und dann Symlink von /var/mysql nach /home/mysql erstellen und natürlich die vorhandenen Datenbanken kopieren. Oder wahlweise das mysql_datadir gleich irgendwo unterhalb von /home unterbringen.

Bye
Jörg
Post Reply