hoher CPU load durch PHP?

Apache, Lighttpd, nginx, Cherokee
Post Reply
chris2deuce
Posts: 7
Joined: 2004-03-18 00:19
 

hoher CPU load durch PHP?

Post by chris2deuce »

hi

habe mir vor 2 Tagen n Strato Rootserver geholt und dieses soweit eingerichtet.
Daten:
CPU: Celeron 2,4ghz, 512mb ram
Kernel: Linux 2.4.25 i686

Apache 1.3.26
PHP Version 4.2.2
MySQL: 3.25.52

Nun läuft nur 1 Website drauf (php), diese jedoch verurscht schon nur bei 5-10 besuchern ein CPU load von 30-70%!!!!!!!
Ich bin ratlos! Die Homepage lief davor problemlos und schnell auf einem virtuellen server!

schaut euch das mal an:

Code: Select all


 1:20pm  up 11:05,  1 user,  load average: 2.52, 3.63, 4.61
94 processes: 86 sleeping, 8 running, 0 zombie, 0 stopped
CPU states: 51.5% user, 48.4% system,  0.0% nice,  0.0% idle
Mem:   514388K av,  158568K used,  355820K free,       0K shrd,   13308K buff
Swap:  514072K av,   23780K used,  490292K free                   98480K cached

  PID USER     PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME COMMAND
19681 dompb  14   0  4996 4996  3328 R     5.2  0.9   0:00 php
19685 dompb  15   0  5088 5088  3336 R     5.2  0.9   0:00 php
19682 dompb  14   0 29136  28M 27616 R     4.4  5.6   0:00 php
19684 dompb  14   0 14540  14M 12868 R     4.2  2.8   0:00 php
19689 dompb  19   0 19080  18M 17560 R     3.8  3.7   0:00 php
19504 root      10   0  1048 1048   804 R     0.3  0.2   0:00 top
19546 wwwrun     9   0  5064 3724  3512 S     0.3  0.7   0:00 httpd
 1291 wwwrun     9   0  4800 3200  3112 S     0.1  0.6   0:19 httpd
 1295 wwwrun     9   0  4964 3608  3520 S     0.1  0.7   0:16 httpd
30559 root       9   0  2152 2092  1684 R     0.1  0.4   0:00 sshd
 3220 wwwrun    10   0  5088 3748  3536 S     0.1  0.7   0:03 httpd
 3598 wwwrun     9   0  5384 4104  3772 S     0.1  0.7   0:02 httpd
19545 wwwrun     8   0  5064 3724  3512 S     0.1  0.7   0:00 httpd
    1 root       8   0    72   64    64 S     0.0  0.0   0:06 init
    2 root       9   0     0    0     0 SW    0.0  0.0   0:01 keventd
    3 root      18  19     0    0     0 SWN   0.0  0.0   0:00 ksoftirqd_CPU0
    4 root       9   0     0    0     0 SW    0.0  0.0   0:20 kswapd
    5 root       9   0     0    0     0 SW    0.0  0.0   0:00 bdflush
    6 root       9   0     0    0     0 SW    0.0  0.0   0:00 kupdated
   10 root       9   0     0    0     0 SW    0.0  0.0   0:00 khubd
   11 root       9   0     0    0     0 SW    0.0  0.0   0:02 kjournald
   80 root       9   0     0    0     0 SW    0.0  0.0   0:00 kjournald
  331 root       9   0   424  364   364 S     0.0  0.0   0:00 dhcpcd
das ist doch nicht normal das PHP soviel Ram und CPU braucht oder?

was mich noch stutzig macht ist folgendes:

Code: Select all

wwwrun    1291  0.0  0.6 81864 3200 ?        S    02:41   0:19 /usr/sbin/httpd -f /etc/httpd/httpd.conf -DSSL
wwwrun    1292  0.0  0.7 81864 3612 ?        S    02:41   0:20 /usr/sbin/httpd -f /etc/httpd/httpd.conf -DSSL
wwwrun    1293  0.0  0.6 81988 3184 ?        S    02:41   0:20 /usr/sbin/httpd -f /etc/httpd/httpd.conf -DSSL
wwwrun    1294  0.0  0.6 81984 3584 ?        S    02:41   0:18 /usr/sbin/httpd -f /etc/httpd/httpd.conf -DSSL
wwwrun    1295  0.0  0.7 81864 3608 ?        S    02:41   0:16 /usr/sbin/httpd -f /etc/httpd/httpd.conf -DSSL
wwwrun    1303  0.0  0.7 81864 3604 ?        S    02:41   0:17 /usr/sbin/httpd -f /etc/httpd/httpd.conf -DSSL
wwwrun    1304  0.0  0.7 81864 3608 ?        S    02:41   0:15 /usr/sbin/httpd -f /etc/httpd/httpd.conf -DSSL
wwwrun    1331  0.0  0.6 81988 3240 ?        S    02:42   0:17 /usr/sbin/httpd -f /etc/httpd/httpd.conf -DSSL
wwwrun    1332  0.0  0.6 81864 3600 ?        S    02:42   0:18 /usr/sbin/httpd -f /etc/httpd/httpd.conf -DSSL
wwwrun    1333  0.0  0.7 81988 3960 ?        S    02:42   0:17 /usr/sbin/httpd -f /etc/httpd/httpd.conf -DSSL
vpopmail  1733  0.0  1.3 83180 6688 ?        S    02:55   0:09 /usr/sbin/httpd -f /etc/httpd/httpd.visas -DSSL
wwwrun   18517  0.1  0.7 81864 3748 ?        S    11:30   0:07 /usr/sbin/httpd -f /etc/httpd/httpd.conf -DSSL
root     30559  0.0  0.4  7368 2100 ?        S    12:12   0:00 /usr/sbin/sshd
root     30568  0.0  0.3  2800 1704 pts/0    S    12:12   0:00 -bash
wwwrun    3220  0.1  0.7 81864 3748 ?        S    12:28   0:03 /usr/sbin/httpd -f /etc/httpd/httpd.conf -DSSL
wwwrun    3598  0.0  0.7 81988 4104 ?        S    12:29   0:02 /usr/sbin/httpd -f /etc/httpd/httpd.conf -DSSL
wwwrun   17362  0.0  0.7 81864 3740 ?        S    13:12   0:00 /usr/sbin/httpd -f /etc/httpd/httpd.conf -DSSL
wwwrun   18529  0.1  0.7 81864 3744 ?        S    13:16   0:00 /usr/sbin/httpd -f /etc/httpd/httpd.conf -DSSL
wwwrun   19532  0.0  0.7 81864 3728 ?        S    13:20   0:00 /usr/sbin/httpd -f /etc/httpd/httpd.conf -DSSL
wwwrun   19537  0.2  0.7 81864 3724 ?        S    13:20   0:00 /usr/sbin/httpd -f /etc/httpd/httpd.conf -DSSL
wwwrun   19543  0.1  0.7 81864 3732 ?        S    13:20   0:00 /usr/sbin/httpd -f /etc/httpd/httpd.conf -DSSL
wwwrun   19546  0.0  0.7 81864 3728 ?        S    13:20   0:00 /usr/sbin/httpd -f /etc/httpd/httpd.conf -DSSL
root     20139  0.0  0.0  1740  504 ?        S    13:22   0:00 /usr/lib/courier-imap/libexec/authlib/authdaemond.plain start
root     20140  0.0  0.0  1740  504 ?        S    13:22   0:00 /usr/lib/courier-imap/libexec/authlib/authdaemond.plain start
root     20141  0.0  0.0  1740  504 ?        S    13:22   0:00 /usr/lib/courier-imap/libexec/authlib/authdaemond.plain start
root     20142  0.0  0.0  1740  504 ?        S    13:22   0:00 /usr/lib/courier-imap/libexec/authlib/authdaemond.plain start
root     20143  0.0  0.0  1740  504 ?        S    13:22   0:00 /usr/lib/courier-imap/libexec/authlib/authdaemond.plain start
wwwrun   20231  0.0  0.6 81816 3496 ?        S    13:22   0:00 /usr/sbin/httpd -f /etc/httpd/httpd.conf -DSSL
500      20232  7.5  1.0 46612 5524 ?        S    13:22   0:00 php -c ºûÿ¿
mysql    20235  1.0  0.6 26792 3284 ?        S    13:22   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql
500      20236 14.0  7.3 46088 37716 ?       R    13:22   0:00 php -c ¾úÿ¿
500      20237 15.0  7.1 46084 36660 ?       R    13:22   0:00 php -c #ûÿ¿
500      20238 14.5  5.8 45980 29920 ?       R    13:22   0:00 php -c ?úÿ¿
500      20239 18.0  1.0 46384 5260 ?        R    13:22   0:00 php -c 0ûÿ¿
500      20242 15.0  0.9 46016 4808 ?        R    13:22   0:00 php -c .úÿ¿
500      20244 15.0  0.9 46016 4808 ?        R    13:22   0:00 php -c ?úÿ¿
mysql    20245  1.0  0.6 26792 3284 ?        S    13:22   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql
500      20246  0.0  0.3 12240 2012 ?        R    13:22   0:00 php -c ?ûÿ¿
500      20247  0.0  0.6 12544 3456 ?        R    13:22   0:00 php -c �úÿ¿
php -c �úÿ¿ ???? wtf?
das httpd so oft gestartet wurde ist auch i.o?

Ich währe euch sehr sehr dankbar wenn ihr mir ein Paar tips geben könnt wie ich dem Problem auf die Spur kommen kann.

Wäre es ein Risiko hier den phpinfo.php link zu posten (evtl ist da n fehler drinne?!?)

mfg
chris
chris2deuce
Posts: 7
Joined: 2004-03-18 00:19
 

Re: hoher CPU load durch PHP?

Post by chris2deuce »

kann mir denn keiner etwas helfen?
ich muss eigentlich davon ausgehen das der Stratoserver im neuinstallierten zustand einwandfrei funktioniert oder etwa nicht?
gleitz
Posts: 44
Joined: 2004-01-26 21:48
 

Re: hoher CPU load durch PHP?

Post by gleitz »

Standardinstallation von Strato? -> Apache aktuelle Version installieren, nicht YOU-Update.
chris2deuce
Posts: 7
Joined: 2004-03-18 00:19
 

Re: hoher CPU load durch PHP?

Post by chris2deuce »

Habe vor 2 Tagen den server komplett nochmal neuinstallieren lassen (automatisch)

was ist besser, apache 1 oder 2?
core
Posts: 25
Joined: 2003-06-21 18:05
Location: Stadtilm
 

Re: hoher CPU load durch PHP?

Post by core »

Aehm ich kenne mich jetzt nicht so gut mit kommerziellen Root-Server Angeboten aus, wohl aber mit der Problematik an sich - PHP. Ich nehme an, dass du diese Ausgabe aus einer SSH-Sitzung mit deinem Server hast, oder?

Die komischen Zeichen koennten Interpretationen der jeweiligen Konsole sein (PuTTY macht das bei mir haeuftg mit Umlauten etc.). Ansonsten kann es gut sein, dass du eine unguenstige Server-Konfiguration hinsichtlich des Webservers hast. Der Apache(2) liefert ein benchmark-Programm mit, dass du mal testen kannst. Desweiteren wuerde ich dir in jedem Falle Apache 2 empfehlen - allein schon wegen Sicherheit, Funktionalitaet und Perfomance.

Andererseits kann es auch sein, dass deine PHP Skripte einfach unperformant programmiert sind. Das geschiet beispielsweise durch rekursive Datenbankabfragen, Behandlung großer Datenmengen etc. Auch koennen unguenstige MySQL-Query-Konstrukte den zustaendigen Rechner schnell ins Schwitzen bringen.

Das mit der Prozessausgabe ist jedoch sehr merkwuerdig. Um das o.g. wirklich auszuschließen, wuerde ich mal den Support bitten, einen Teil des ps-Logs dir als Mail oder so zu schicken, wo du es im PlainTextFormat ansehen kannst.
Dann wuerde ich mal einen Testlauf machen, wenn moeglichst keiner die Seite außer dir besucht und sehen was passiert, bei welchen Skriptaufrufen wieviel Prozesse gestartet werden und was am laengsten dauert - das sollte auch an der Geschwindigkeit des Seitenaufbau erkennbar sein.
gleitz
Posts: 44
Joined: 2004-01-26 21:48
 

Re: hoher CPU load durch PHP?

Post by gleitz »

Es ist keine Fehler in der Strato-Hardware, sondern ein Softwarefehler seitens des Apache´s in Suse 8.1.

Irgendwelche Prozesse hängen sich als auf und treiben die Serverlast hoch. Soweit ich das jetzt mitbekommen habe, ist es ein Fehler in Core.
Lösung: Aktuellen Apache installieren.
chris2deuce
Posts: 7
Joined: 2004-03-18 00:19
 

Re: hoher CPU load durch PHP?

Post by chris2deuce »

ich probiere mal den apache 2 mit prefork, oder ist der worker besser?
majortermi
Userprojekt
Userprojekt
Posts: 916
Joined: 2002-06-17 16:09
 

Re: hoher CPU load durch PHP?

Post by majortermi »

chris2deuce wrote:php -c �úÿ¿ ???? wtf?
Das ist eine alte buggy suPHP-Version. In der aktuellen ist das gefixed (okay, dafür ist darin ein anderer Bug, der ist aber immerhin im HEAD state schon gefixed). Ich verstehe nicht, dass Strato immernoch diese uralte Version von suPHP auf die System macht. Sag das bitte mal dem Support von denen. Du darfst mich ruhig zitieren. :wink:
Erst nachlesen, dann nachdenken, dann nachfragen... :)
Warum man sich an diese Reihenfolge halten sollte...
gangsta
Posts: 25
Joined: 2003-12-18 17:57
 

Re: hoher CPU load durch PHP?

Post by gangsta »

Danke für diese Antwort (und die Frage), ich habe nämlich aktuell das selbe Problem.. Habe auch dutzende (teils hunderte) von diesen kryptischen php-Prozessen..

Werde mal suPHP updaten.... Ich hoffe, dass das hilft
core
Posts: 25
Joined: 2003-06-21 18:05
Location: Stadtilm
 

Re: hoher CPU load durch PHP?

Post by core »

Wo wir gerade dabei sind. Welche Erfahrungen hast du/habt ihr mit suPHP gemacht? Auch jetzt mal Zwecks Sicherheit und Ausgereiftheit des Moduls, ich bin immer noch am Zögern, ob ich auch fuer solche Erfweiterungen entwickeln soll.
chris2deuce
Posts: 7
Joined: 2004-03-18 00:19
 

Re: hoher CPU load durch PHP?

Post by chris2deuce »

tjo :(

ich hab nun apache2, mysql 4 und php 4.3.4 installiert.

Nun habe ich n anderes Problem. Und zwar stürzt der Apache2 nach ca 7-10 std im betrieb sozusagen ab. er generiert lauter neue Prozesse, aber die Website ist nciht mehr erreichbar.

Code: Select all

root     16277  0.0  0.7  6728 3656 ?        S    19:36   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
root     16278  0.0  0.0  1376  404 ?        S    19:36   0:12 /usr/local/visas/cronolog/cronolog --symlink=/usr/local/visas/logfile
nobody   31692  0.5  0.9  7444 4832 ?        S    23:31   0:03 /usr/local/apache2/bin/httpd -k start -DSSL
nobody   31715  0.6  0.9  7308 4700 ?        S    23:31   0:03 /usr/local/apache2/bin/httpd -k start -DSSL
root     32558  0.0  0.4  7360 2284 ?        S    23:33   0:00 /usr/sbin/sshd
root     32570  0.0  0.3  2812 1712 pts/0    S    23:33   0:00 -bash
nobody   32620  0.8  1.0  7764 5164 ?        S    23:33   0:04 /usr/local/apache2/bin/httpd -k start -DSSL
nobody     441  0.6  0.9  7288 4660 ?        S    23:33   0:03 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    1669  0.5  0.9  7268 4656 ?        S    23:35   0:01 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    1752  0.6  0.9  7672 5048 ?        S    23:35   0:02 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    2376  0.8  0.9  7328 4652 ?        S    23:37   0:02 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    2388  0.5  0.9  7464 4840 ?        S    23:37   0:01 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    2902  0.5  0.8  7240 4628 ?        S    23:38   0:01 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    3068  0.6  0.9  7432 4800 ?        S    23:38   0:01 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    3069  0.4  0.9  7376 4744 ?        S    23:38   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    3197  0.4  0.8  7260 4576 ?        S    23:38   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    3515  0.2  0.8  7244 4564 ?        S    23:38   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    3552  0.2  0.9  7532 4928 ?        S    23:38   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    3631  0.5  0.9  7528 4896 ?        S    23:39   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    3654  0.2  0.9  7388 4748 ?        S    23:39   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    3655  0.1  0.8  7220 4524 ?        S    23:39   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    3997  0.4  0.8  7132 4500 ?        S    23:39   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    4009  0.3  0.8  7264 4572 ?        S    23:39   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    4026  0.1  0.8  7232 4556 ?        S    23:39   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    4027  0.1  0.8  7288 4628 ?        S    23:39   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    4028  0.1  0.9  7308 4664 ?        S    23:39   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    4029  0.1  0.8  7220 4524 ?        S    23:39   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
mysql     4240  0.0  2.5 42932 13332 ?       S    23:39   0:00 /usr/local/mysql/bin/mysqld --defaults-extra-file=/usr/local/mysql/da
nobody    4246  0.0  0.8  7152 4444 ?        S    23:39   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    4254  0.0  0.8  6980 4124 ?        S    23:39   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    4255  0.0  0.8  7276 4572 ?        S    23:39   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    4260  0.1  0.8  7152 4520 ?        S    23:39   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    4261  0.0  0.8  7152 4436 ?        S    23:39   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    4263  0.0  0.8  7152 4436 ?        S    23:39   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    4264  0.0  0.8  7152 4444 ?        S    23:39   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    4272  0.0  0.8  7152 4436 ?        S    23:39   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    4273  0.0  0.8  7148 4444 ?        S    23:39   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    4274  0.0  0.8  6980 4124 ?        S    23:39   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    4275  0.0  0.8  6996 4136 ?        S    23:39   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    4277  0.0  0.8  7152 4444 ?        S    23:39   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    4278  0.0  0.8  6980 4124 ?        S    23:39   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    4279  0.1  0.9  7408 4776 ?        S    23:39   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    4281  0.0  0.8  7152 4436 ?        S    23:39   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    4293  0.0  0.8  7152 4436 ?        S    23:40   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    4294  0.0  0.8  7152 4444 ?        S    23:40   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    4295  0.0  0.8  7180 4452 ?        S    23:40   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    4296  0.0  0.8  7152 4436 ?        S    23:40   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    4299  0.0  0.8  6980 4124 ?        S    23:40   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    4300  0.0  0.8  6980 4124 ?        S    23:40   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    4301  0.0  0.8  7152 4444 ?        S    23:40   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    4304  0.0  0.8  6980 4124 ?        S    23:40   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    4305  0.0  0.8  7152 4436 ?        S    23:40   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    4306  0.1  0.8  7264 4576 ?        S    23:40   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    4307  0.0  0.8  6980 4124 ?        S    23:40   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    4308  0.0  0.8  7152 4448 ?        S    23:40   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    4309  0.0  0.8  6980 4124 ?        S    23:40   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    4310  0.0  0.8  7152 4436 ?        S    23:40   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    4311  0.0  0.8  7264 4564 ?        S    23:40   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    4312  0.0  0.8  6980 4124 ?        S    23:40   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    4345  0.0  0.8  7152 4436 ?        S    23:40   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    4353  0.0  0.8  6980 4124 ?        S    23:40   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    4354  0.0  0.8  6980 4124 ?        S    23:40   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    4361  0.0  0.8  7152 4444 ?        S    23:40   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    4362  0.1  0.9  7384 4724 ?        S    23:40   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    4363  0.1  0.9  7380 4712 ?        S    23:40   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    4364  0.0  0.8  6980 4124 ?        S    23:40   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    4373  0.0  0.8  6980 4124 ?        S    23:40   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    4374  0.0  0.8  7216 4532 ?        S    23:40   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    4375  0.0  0.8  6980 4124 ?        S    23:40   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    4376  0.0  0.8  6980 4124 ?        S    23:40   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    4378  0.0  0.8  7152 4444 ?        S    23:40   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    4379  0.0  0.8  7152 4436 ?        S    23:40   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    4381  0.0  0.8  6980 4124 ?        S    23:40   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    4384  0.0  0.8  6996 4136 ?        S    23:40   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    4390  0.0  0.8  6980 4124 ?        S    23:40   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    4391  0.0  0.8  7152 4436 ?        S    23:40   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    4392  0.0  0.8  6980 4124 ?        S    23:40   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    4393  0.0  0.8  7152 4444 ?        S    23:40   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    4395  0.0  0.8  6980 4124 ?        S    23:40   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    4396  0.0  0.8  7152 4444 ?        S    23:40   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    4397  0.0  0.8  7264 4556 ?        S    23:40   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
nobody    4398  0.0  0.8  7152 4436 ?        S    23:40   0:00 /usr/local/apache2/bin/httpd -k start -DSSL
Das geht noch so 30-40 Zeilen weiter :(

da hilft nur noch n apache stop + restart

weiss jemand wieso er plötzlich aufgibt?
Das complilieren des Apache lief ohne probleme, so das ich davon ausgehe das es an der Binärdatei nicht liegt!

hier gehts zur phpinfo.php
http://www.becoming-pornoboss.de/bp2/phpinfo.php

Man bisher wirklich nur stress mit dem Server :roll:

----


auf dieser website läuft ein browsergame mit "normalerweise" über 100.000 hits täglich, aber der Apache gibt immer noch nach eingin Stunden auf!!!

Ich hab leider keine referenzwerte gefunden, aber mit 8 Leuten auf der Website sagt "top"

NAch kompletten Reboot des Server:
3:34pm up 14 min, 1 user, load average: 0.37, 0.28, 0.20
85 processes: 81 sleeping, 4 running, 0 zombie, 0 stopped
CPU states: 28.2% user, 10.7% system, 0.0% nice, 60.9% idle
Mem: 514388K av, 87824K used, 426564K free, 0K shrd, 5060K buff
Swap: 514072K av, 0K used, 514072K free 33156K cached

PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND
4191 mysql 16 0 12272 11M 1948 R 1.9 2.3 0:00 mysqld
1391 nobody 10 0 6320 6320 3680 S 1.5 1.2 0:08 httpd
2047 nobody 9 0 4640 4640 3640 S 1.5 0.9 0:07 httpd
2294 nobody 9 0 4648 4648 3664 S 1.5 0.9 0:06 httpd
4055 nobody 9 0 4580 4580 3640 S 1.5 0.8 0:00 httpd
1633 nobody 13 0 6216 6216 3636 R 1.3 1.2 0:08 httpd
3975 nobody 9 0 6308 6308 3640 S 1.3 1.2 0:01 httpd
2357 nobody 9 0 6396 6396 3668 S 1.1 1.2 0:05 httpd
2048 nobody 9 0 4564 4564 3672 S 0.9 0.8 0:06 httpd
2360 nobody 9 0 4600 4600 3656 S 0.7 0.8 0:06 httpd
3737 nobody 9 0 4632 4632 3624 S 0.5 0.9 0:01 httpd
3308 root 10 0 1040 1040 804 R 0.3 0.2 0:01 top
1353 root 9 0 400 400 336 S 0.1 0.0 0:00 cronolog
3161 nobody 9 0 4608 4608 3644 S 0.1 0.8 0:03 httpd
1 root 9 0 240 240 208 S 0.0 0.0 0:06 init
Geht die CPU last in Ordnung, oder ist das deutlich zuviel?
bin dankbar für jede hilfe.
Post Reply