You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Joe A <jo...@gmail.com> on 2005/10/19 17:49:34 UTC

[users@httpd] apache2 timeout troubleshooting

What would cause apache2 to occasionally become unresponsive? SAR isn't
reporting any heavy load for the 10 minute period during which it crashed...
apparently when it was unresponsive there was "just one single apache thread
running"

Re: [users@httpd] apache2 timeout troubleshooting

Posted by Joe A <jo...@gmail.com>.
cool that's interesting i'll check it out

On 10/19/05, Joshua Slive <js...@gmail.com> wrote:
>
> On 10/19/05, Joe A <jo...@gmail.com> wrote:
> > oh ok, i guess you are talking about using top to find an httpd process
> with
> > high cpu? then how do i attach a debugger to it?
>
> gdb /path/to/httpd
> attach pid
> where
>
> (replace pid with the process id obtained from top)
> http://httpd.apache.org/dev/debugging.html#backtrace
>
> Joshua.
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Re: [users@httpd] apache2 timeout troubleshooting

Posted by Joshua Slive <js...@gmail.com>.
On 10/19/05, Joe A <jo...@gmail.com> wrote:
> oh ok, i guess you are talking about using top to find an httpd process with
> high cpu? then how do i attach a debugger to it?

gdb /path/to/httpd
attach pid
where

(replace pid with the process id obtained from top)
http://httpd.apache.org/dev/debugging.html#backtrace

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] apache2 timeout troubleshooting

Posted by Joe A <jo...@gmail.com>.
oh ok, i guess you are talking about using top to find an httpd process with
high cpu? then how do i attach a debugger to it?

On 10/19/05, Joshua Slive <js...@gmail.com> wrote:
>
> On 10/19/05, Joe A <jo...@gmail.com> wrote:
> > joshua,
> >
> > what do u mean by "shows a process on cpu"?
>
> Something with high cpu usage.
>
> Joshua.
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Re: [users@httpd] apache2 timeout troubleshooting

Posted by Joshua Slive <js...@gmail.com>.
On 10/19/05, Joe A <jo...@gmail.com> wrote:
> joshua,
>
>  what do u mean by "shows a process on cpu"?

Something with high cpu usage.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] apache2 timeout troubleshooting

Posted by Joe A <jo...@gmail.com>.
joshua,

what do u mean by "shows a process on cpu"?

On 10/19/05, Joshua Slive <js...@gmail.com> wrote:
>
> On 10/19/05, Joe A <jo...@gmail.com> wrote:
> > What would cause apache2 to occasionally become unresponsive? SAR isn't
> > reporting any heavy load for the 10 minute period during which it
> crashed...
> > apparently when it was unresponsive there was "just one single apache
> thread
> > running"
>
> Usually a buggy module.
>
> But you need to do a little more research. See if top/ps shows a
> process on cpu. If so, attach to it with a debugger and see what it
> is up to.
>
> Joshua.
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Re: [users@httpd] apache2 timeout troubleshooting

Posted by Joshua Slive <js...@gmail.com>.
On 10/19/05, Joe A <jo...@gmail.com> wrote:
> What would cause apache2 to occasionally become unresponsive? SAR isn't
> reporting any heavy load for the 10 minute period during which it crashed...
> apparently when it was unresponsive there was "just one single apache thread
> running"

Usually a buggy module.

But you need to do a little more research.  See if top/ps shows a
process on cpu.  If so, attach to it with a debugger and see what it
is up to.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org