PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Server-Tuning bei hoher Last


Cerberus
29.11.2008, 10:31
Anders als die Version von Feudas, möchte ich euch heute mal die compilierbare Version nahe bringen ...
Diese hat einen deutlichen Leistungsschub, gegenüber der Basis-Version von Feudas ....

Wenn also euer Server bei der Anzeige von TOP oder ps -uax das zeigt
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
wwwrun 8640 6.8 4.2 395952 42760 ? S 12:58 0:30 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun 8773 4.5 4.1 395696 42316 ? S 13:02 0:11 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun 8777 1.9 4.4 400100 44564 ? S 13:02 0:04 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun 8806 6.7 4.1 393624 41956 ? S 13:03 0:10 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun 8810 5.2 4.0 392284 40592 ? S 13:03 0:07 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun 8811 6.0 4.1 395644 42412 ? S 13:03 0:09 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun 8815 6.7 4.4 397408 45340 ? S 13:03 0:09 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun 8827 9.6 4.1 395244 41800 ? S 13:04 0:11 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun 8838 5.7 4.1 393372 41664 ? S 13:04 0:04 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun 8847 7.0 4.1 393312 41608 ? S 13:05 0:05 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun 8851 8.8 4.1 393328 41664 ? S 13:05 0:05 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun 8854 6.1 4.0 393056 41352 ? S 13:05 0:03 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun 8855 4.2 4.0 392464 40824 ? S 13:05 0:02 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun 8858 9.3 4.0 392376 40856 ? S 13:05 0:04 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun 8869 3.2 4.0 392796 40824 ? S 13:05 0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun 8872 12.2 3.6 388996 37204 ? S 13:06 0:02 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun 8875 14.3 4.2 397556 43464 ? S 13:06 0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun 8876 9.0 4.2 397556 43444 ? S 13:06 0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun 8877 8.3 3.6 388996 37196 ? S 13:06 0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun 8878 10.0 3.6 388996 37196 ? S 13:06 0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
solltet Ihr mal über diese Möglichkeit (http://www.netvision-technik.de/forum/glossary.php?do=viewglossary&term=16) nachdenken

Danach sollte es dann so

12717 wwwrun 15 0 501m 41m 20m S 9 4.2 0:04.82 httpd2-prefork
3237 mysql 15 0 299m 75m 5600 S 1 7.7 24:59.30 mysqld
12920 wwwrun 15 0 499m 29m 7448 S 1 2.9 0:00.92 httpd2-prefork
12906 wwwrun 18 0 501m 36m 12m S 0 3.7 0:01.97 httpd2-prefork

aussehen

hier im Forum hat diese Maßnahme die effektiv-Last von 90% Apache auf 20% Apache gedrückt ...

Fragen und Probleme hier :)

Pr1me
29.11.2008, 10:38
Jep darum hatte ichs auch nochmal mit XCache gepostet :)
Wir laufen immer unter 4% nun.

Solstice
29.11.2008, 11:09
Und was macht man wenn die CPU last unter 10% ist und die seite trotzdem lahmt?

mfg,
Sol

Cerberus
29.11.2008, 11:11
dann sollte man bei top nachsehen, was diesen LAG verursacht ...

mqsl-Server vielleicht ...

ich arbeite im Moment noch an einem MySQL-Server-Script, welches mir die relevanten Daten anzeigt

HaBe
29.11.2008, 11:41
um die last zusätzlich zu mindern hab ich bei mir lighttpd statt apache laufen. das hat 25-50% verbesserung gebracht (auch dank fcgi)...

$iMpLy
29.11.2008, 11:42
fein fein, nur was kleines ..
ich finde bei mir das hier nicht:

apt-get install php5-devel
fehlermeldung:
E: Konnte Paket php5-devel nicht finden
lg SiMpLy

Cerberus
29.11.2008, 11:44
sorry ..
falsches Packet ...
ich ändere das sofort ..

php5-dev muß es heißen

$iMpLy
29.11.2008, 11:47
ah, *hehe* :)

und dann noch was, was ich ned verstehe und auch ned finde..

und rufen phpize auf
phpize

wie genau soll das funzzeln?!? :/

Cerberus
29.11.2008, 11:49
einfach diesen Befehl auf der Komandozeile eingeben ...
mehr ist nicht notwendig

aber darauf achten, das du im APC-Verzeichnis stehst ...

$iMpLy
29.11.2008, 11:52
ahso.. gut. dann läuft ja da alles etc. :D