Portál AbcLinuxu, 11. května 2025 10:31
Prosim o pomoc, mam debian 64bit + apache na kterem mi bezi 4 domeny - jen jedna z domen je vice navstevovana (phpbb forum) - prave je na foru 58lidi a vztizeni 4procesoru (ht = 8jader) je 100%.
Prosim o pomoc jak zjistit co mi to vytizeni muze dela. V priloze posilam vypis z TOP - zrovna se forum seka
Dik
Začal by som tým, že si povolím mod_status pre svoju IP, a potom sa pozriem ktoré requesty tam tak dlho visia. To sa robí normálne cez browser, ideš na http://tvojadomena/server-status, len musíš v konfigurácii apache povoliť mod_status. Tým zistíš, ktoré skripty (URLky) Ti to zabíjajú a vieš sa pri ďalšom pátraní že prečo sústrediť už len na ne.
< IfModule mod_status.c> # # Allow server status reports generated by mod_status, # with the URL of http://servername/server-status # Uncomment and change the ".example.com" to allow # access from other hosts. # < Location /server-status> SetHandler server-status # ExtendedStatus On Order deny,allow Deny from all Allow from localhost ip6-localhost Allow from 83.240.58.13 193.19.177.104 193.19.177.105 193.19.177.106 # Allow from .example.com < /Location> < /IfModule>Pokud odkomentuju ExtendedStatus On a resetnu apache tak to napise
Restarting web server: apache2We failed to correctly shutdown apache, so we're now killing all running apache processes. This is almost certainly suboptimal, so please make sure your system is working as you'd expect now! (warning). ... waiting Syntax error on line 10 of /etc/apache2/mods-enabled/status.conf: ExtendedStatus not allowed here failed!i kdyz dam vzapeti jeste dalsi restart, tak to napise uz jen chybu
Restarting web server: apache2Syntax error on line 10 of /etc/apache2/mods-enabled/status.conf: ExtendedStatus not allowed here failed!
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.