You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Scott Gifford <sg...@suspectclass.com> on 2010/06/16 06:59:37 UTC

Re: [users@httpd] Apache getting stuck with all workers in a BUSY_READ state

On Tue, Jun 15, 2010 at 1:02 PM, David Fallon <da...@gmail.com> wrote:
[ ... ]

> Any suggestions on a solution, or how I might get more info out of
> apache as to what it's doing while everyone's in the read state?


I would try using strace (or ktrace or truss depending on your OS) on the
processes to see what they are doing.  Between that and lsof you should be
able to tell what the process is blocked reading.

Hope this is helpful,

----Scott.

Re: [users@httpd] Apache getting stuck with all workers in a BUSY_READ state

Posted by Eric Covener <co...@gmail.com>.
On Wed, Jun 16, 2010 at 9:33 AM, David Fallon <da...@gmail.com> wrote:
> Thanks for the suggestion, but unfortunately I've tried that - truss
> in this case is attaching post whatever it's blocking on (so I just
> see it sleeping), and I haven't yet waited out the problem to see what
> happens when/if whatever's blocking times out. Any other ideas?
>

http://httpd.apache.org/dev/debugging.html

-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
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] Apache getting stuck with all workers in a BUSY_READ state

Posted by The Gaijin <ga...@gci.net>.
On 06/16/2010 05:33 AM, David Fallon wrote:
> Thanks for the suggestion, but unfortunately I've tried that - truss
> in this case is attaching post whatever it's blocking on (so I just
> see it sleeping), and I haven't yet waited out the problem to see what
> happens when/if whatever's blocking times out. Any other ideas?

pstack and pfiles might be of use.  (Sol 8+ IIRC.)

Good hunting.

R.


---------------------------------------------------------------------
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] Apache getting stuck with all workers in a BUSY_READ state

Posted by Scott Gifford <sg...@suspectclass.com>.
On Wed, Jun 16, 2010 at 9:33 AM, David Fallon <da...@gmail.com> wrote:

> Thanks for the suggestion, but unfortunately I've tried that - truss
> in this case is attaching post whatever it's blocking on (so I just
> see it sleeping), and I haven't yet waited out the problem to see what
> happens when/if whatever's blocking times out. Any other ideas?
>

truss reports nothing?  Not that it's waiting in a blocking operation?  On
the systems I'm familiar with at least, that means it's not waiting for I/O,
but is off doing something else.  That would indicate it's not waiting for a
proxy response or a user request, but something else altogether.  I'm not
sure what your system is, so its truss may behave differently, you could do
some quick experiments if you're not sure either.

The suggestion to take a look in a debugger is a good one if your Apache has
debugging symbols.  That may be a good next step.

Good luck!

-----Scott.

Re: [users@httpd] Apache getting stuck with all workers in a BUSY_READ state

Posted by David Fallon <da...@gmail.com>.
Thanks for the suggestion, but unfortunately I've tried that - truss
in this case is attaching post whatever it's blocking on (so I just
see it sleeping), and I haven't yet waited out the problem to see what
happens when/if whatever's blocking times out. Any other ideas?

On Tue, Jun 15, 2010 at 9:59 PM, Scott Gifford
<sg...@suspectclass.com> wrote:
> On Tue, Jun 15, 2010 at 1:02 PM, David Fallon <da...@gmail.com> wrote:
> [ ... ]
>>
>> Any suggestions on a solution, or how I might get more info out of
>> apache as to what it's doing while everyone's in the read state?
>
> I would try using strace (or ktrace or truss depending on your OS) on the
> processes to see what they are doing.  Between that and lsof you should be
> able to tell what the process is blocked reading.
> Hope this is helpful,
> ----Scott.
>



-- 
Dave Fallon

---------------------------------------------------------------------
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