Re: [us...@httpd] debugging websites running on Apache?

2010-11-19 Thread Scott Gifford
On Fri, Nov 19, 2010 at 7:00 AM, Tomasz Chmielewski wrote: > How do you debug websites running on Apache? > I have a few tricks I use. First, I try to write my applications so they can be run from the commandline. That means when they misbehave, I can run them directly under strace or a debugg

Re: [us...@httpd] debugging websites running on Apache?

2010-11-19 Thread Tomasz Chmielewski
On 19.11.2010 14:39, Igor Galić wrote: What are other debugging methods which can be used on a busy webserver? Ideally, I'd like to see all connections, database queries, files opened for read/write by Apache processes, with timestamps, as I connect from a given IP address (so all other noise is

Re: [us...@httpd] debugging websites running on Apache?

2010-11-19 Thread Igor Galić
- "Tomasz Chmielewski" wrote: > How do you debug websites running on Apache? > > Say, you have a website which is dog slow on the powerful server. If your website is static, and is dog slow although running on a powerful server, you're doing it wrong. Check http://wiki.apache.org/httpd/Pe

[us...@httpd] debugging websites running on Apache?

2010-11-19 Thread Tomasz Chmielewski
How do you debug websites running on Apache? Say, you have a website which is dog slow on the powerful server. My favourite way (after checking the obvious errors from the logs) was to simply run Apache through strace, which would print where httpd processes connect to (and possibly hang, whi