jueves, 7 de enero de 2010

Strace apache Debugging mode (CentOS)

Para arrancar apache en debug mode y poder ver los requests a nivel de syscall:

# service httpd stop
# /usr/sbin/httpd -X

Sólo arranca un worker y luego se puede ver mediante strace con el siguiente comando:

# strace -p `ps uxaw | grep http | grep -v grep | awk '{print $2}'`

No se puede añadir la OPCION -X a /etc/sysconf/httpd

URL interesante
http://www.prefetch.net/articles/debuggingapache.html

No hay comentarios:

Publicar un comentario