Para verificar o processo específico do apache2, use strace. %código% Olhe para as chamadas do sistema e faça o seu caminho.
Eu tenho um VPS autogerenciado que herdei de um administrador anterior dentro da minha empresa, com muitos sites do Wordpress em execução nele. O VPS tem 2 CPUs, 6Gb ou RAM e roda o Ubuntu 10.04 64bit.
Notei que o servidor estava lento, muito lento às vezes. Então eu usei o comando top
para checar o que estava rodando e descobri que havia muitos serviços do apache2 que estavam rodando por longos períodos, até 60 minutos, em algumas ocasiões. Uso da CPU e da memória no telhado.
Os processos do apache2 geralmente são executados por muito tempo - de 4 minutos a 8, 15, 30, 45 ou até uma hora, obstruindo CPU e memória e basicamente matando tudo.
Nada realmente mudou.
Como posso rastrear de onde o problema está vindo? Todos os nossos wordpress são seguros, tanto com a negação de solicitações inesperadas quanto com a segurança de páginas de login não padrão e bloqueio automático de bots.
Eu quero rastrear o problema e corrigi-lo, para que o VPS funcione sem problemas.
Este é o resultado de apache2ctl -S
:
109.228.21.231:80 is a NameVirtualHost
default server server109-228-21-231.live-servers.net (/etc/apache2/plesk.conf.d/ip_default/server109-228-21-231.live-servers.net.conf:8)
port 80 namevhost server109-228-21-231.live-servers.net (/etc/apache2/plesk.conf.d/ip_default/server109-228-21-231.live-servers.net.conf:8)
port 80 namevhost default (/etc/apache2/plesk.conf.d/server.conf:67)
port 80 namevhost lists (/etc/apache2/plesk.conf.d/server.conf:139)
port 80 namevhost atmail.webmail (/etc/apache2/plesk.conf.d/atmail.conf:9)
port 80 namevhost horde.webmail (/etc/apache2/plesk.conf.d/horde.conf:9)
port 80 namevhost accessaa.co.uk (/etc/apache2/plesk.conf.d/vhosts/accessaa.co.uk.conf:112)
port 80 namevhost bighandmedia.org (/etc/apache2/plesk.conf.d/vhosts/bighandmedia.org.conf:8)
port 80 namevhost c-mw.net (/etc/apache2/plesk.conf.d/vhosts/c-mw.net.conf:8)
port 80 namevhost centralexhibitioncentres.org (/etc/apache2/plesk.conf.d/vhosts/centralexhibitioncentres.org.conf:8)
port 80 namevhost conference-news.co.uk (/etc/apache2/plesk.conf.d/vhosts/conference-news.co.uk.conf:112)
port 80 namevhost engage-magazine.co.uk (/etc/apache2/plesk.conf.d/vhosts/engage-magazine.co.uk.conf:8)
port 80 namevhost exhibitingmagazine.co.uk (/etc/apache2/plesk.conf.d/vhosts/exhibitingmagazine.co.uk.conf:8)
port 80 namevhost exhibitionnews.co.uk (/etc/apache2/plesk.conf.d/vhosts/exhibitionnews.co.uk.conf:8)
port 80 namevhost exhibitionworld.co.uk (/etc/apache2/plesk.conf.d/vhosts/exhibitionworld.co.uk.conf:124)
port 80 namevhost h2openmagazine.com (/etc/apache2/plesk.conf.d/vhosts/h2openmagazine.com.conf:103)
port 80 namevhost holdsworthevents.co.uk (/etc/apache2/plesk.conf.d/vhosts/holdsworthevents.co.uk.conf:8)
port 80 namevhost om-pa.co.uk (/etc/apache2/plesk.conf.d/vhosts/om-pa.co.uk.conf:8)
port 80 namevhost peoplepeoplemedia.co.uk (/etc/apache2/plesk.conf.d/vhosts/peoplepeoplemedia.co.uk.conf:8)
port 80 namevhost productivepr.org (/etc/apache2/plesk.conf.d/vhosts/productivepr.org.conf:8)
port 80 namevhost redpavementgroup.com (/etc/apache2/plesk.conf.d/vhosts/redpavementgroup.com.conf:8)
port 80 namevhost show-pro.co.uk (/etc/apache2/plesk.conf.d/vhosts/show-pro.co.uk.conf:8)
port 80 namevhost stgeorgeshalls.com (/etc/apache2/plesk.conf.d/vhosts/stgeorgeshalls.com.conf:76)
port 80 namevhost whitebook.co.uk (/etc/apache2/plesk.conf.d/vhosts/whitebook.co.uk.conf:8)
port 80 namevhost www.redrecruitment.net (/etc/apache2/plesk.conf.d/vhosts/www.redrecruitment.net.conf:8)
port 80 namevhost exhibitionnewsawards.co.uk (/etc/apache2/plesk.conf.d/forwarding/exhibitionnewsawards.co.uk_httpd.conf:6)
109.228.21.231:443 is a NameVirtualHost
default server default-109_228_21_231 (/etc/apache2/plesk.conf.d/server.conf:103)
port 443 namevhost default-109_228_21_231 (/etc/apache2/plesk.conf.d/server.conf:103)
port 443 namevhost lists (/etc/apache2/plesk.conf.d/server.conf:168)
port 443 namevhost atmail.webmail (/etc/apache2/plesk.conf.d/atmail.conf:58)
port 443 namevhost horde.webmail (/etc/apache2/plesk.conf.d/horde.conf:46)
port 443 namevhost accessaa.co.uk (/etc/apache2/plesk.conf.d/vhosts/accessaa.co.uk.conf:10)
port 443 namevhost conference-news.co.uk (/etc/apache2/plesk.conf.d/vhosts/conference-news.co.uk.conf:10)
port 443 namevhost exhibitionworld.co.uk (/etc/apache2/plesk.conf.d/vhosts/exhibitionworld.co.uk.conf:10)
port 443 namevhost h2openmagazine.com (/etc/apache2/plesk.conf.d/vhosts/h2openmagazine.com.conf:10)
port 443 namevhost stgeorgeshalls.com (/etc/apache2/plesk.conf.d/vhosts/stgeorgeshalls.com.conf:10)
wildcard NameVirtualHosts and _default_ servers:
*:80 is a NameVirtualHost
default server server109-228-21-231.live-servers.net (/etc/apache2/sites-enabled/000-default:1)
port 80 namevhost server109-228-21-231.live-servers.net (/etc/apache2/sites-enabled/000-default:1)
Syntax OK
Para verificar o processo específico do apache2, use strace. %código% Olhe para as chamadas do sistema e faça o seu caminho.
Tags process wordpress apache-2.2