strange nginx hang after ~18600 requests
Maxim Dounin
mdounin at mdounin.ru
Tue Dec 18 15:44:58 UTC 2012
Hello!
On Tue, Dec 18, 2012 at 10:24:59AM -0500, gadh wrote:
> I'm developing a module that uses a handler module and header+body filter
> module
> at my handler phase (registered in the nginx rewrite phase) i stop the
> request (return NGX_OK), then issue a subrequest to another server, get the
> result back (hook function), then continue to the header+body filter, change
> the headers + body and calls the next filters accordingly.
> also, the subrequest runs thru a proxy , here's the relevant conf lines:
[...]
> but almost exactly after 18500-18600 reuests (that ran smoothly without any
> errors, debug level INFO with printouts of my own) - the nginx hangs - not
> stuck - since i see in debug level "debug" its epoll loop runing ok, but not
> recv nor proceesing any other requests although they continue to come from
> my ab test
>
> any suggestions please ?
Most likely your module causes some resouce leak, which later
results in a hang. Hard to say more without seeing the code which
causes the problem.
--
Maxim Dounin
http://nginx.com/support.html
More information about the nginx
mailing list