Hi,
Wie sind die "Normalwerte" für eine Serverauslastung?
cat /proc/loadavg
sagt bei mir
"10.46 10.38 10.54 6/135 27146"
Hintergrund ist eine Steigerung massiver http Seitenzugriffe. Ich habe keine Idee mehr, wie ich den Server noch stabil halten kann.
cut -d. -f1 /proc/uptime
This server has been up 15 day(s) 5 hour(s) 44 minute(s) and 55 second(s)
Angaben zum Server
4.3.10,
12.22 Distrib 4.0.23,
Apache/2.0.52,
i686,Linux,,2,
Intel(R) Pentium(R) D CPU 3.00GHz,
2250.000,
2048,
KB,
GenuineIntel
top - 19:36:44 up 15 days, 5:59, 2 users, load average: 14.21, 12.20, 11.31
Tasks: 123 total, 13 running, 110 sleeping, 0 stopped, 0 zombie
Cpu0 : 62.5% us, 37.5% sy, 0.0% ni, 0.0% id, 0.0% wa, 0.0% hi, 0.0% si
Cpu1 : 83.8% us, 16.2% sy, 0.0% ni, 0.0% id, 0.0% wa, 0.0% hi, 0.0% si
Mem: 2065372k total, 1276604k used, 788768k free, 119388k buffers
Swap: 1967952k total, 55576k used, 1912376k free, 532976k cached
12065 mysql 15 0 851m 238m 3292 S 36.9 11.8 42:31.61 1 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --u
3143 bind 23 0 63340 21m 920 S 0.0 1.1 7:40.86 1 /usr/sbin/named -u bind
30132 nobody 18 0 145m 10m 6964 R 0.0 0.5 0:03.91 0 /usr/sbin/httpd -k restart
29820 nobody 15 0 144m 10m 7124 S 0.0 0.5 0:04.70 0 /usr/sbin/httpd -k restart
usw...
Die Abfragen vom Mysql sind schon optimiert worden
+-------+-----------+-----------+-----------+-------+-----+------+-------------------+
| 17132 | db8489143 | localhost | db8489143 | Sleep | 284 | | NULL |
| 18160 | db1102289 | localhost | db1102289 | Sleep | 4 | | NULL |
| 18168 | db1102289 | localhost | db1102289 | Sleep | 3 | | NULL |
| 18170 | db6006779 | localhost | db6006779 | Sleep | 2 | | NULL |
| 18172 | db8613533 | localhost | db8613533 | Sleep | 1 | | NULL |
| 18173 | root | localhost | NULL | Query | 0 | NULL | SHOW PROCESSLIST |
| 18174 | db9608358 | localhost | db9608358 | Sleep | 1 | | NULL |
| 18175 | db1824927 | localhost | db1824927 | Sleep | 1 | | NULL |
+-------+-----------+-----------+-----------+-------+-----+------+-------------------+
Gibt es eine pauschale Möglichkeit die Maximale Auslastung eines Webservers zu bestimmen?
Nachdem der Server fest steht hilft mir nur noch
killall -9 httpd
bzw. apachectl restart , mysql
Grüße Simone