[ANN] ngx_lua v0.1.5: ability to capture multiple parallelsubrequests

agentzh agentzh at gmail.com
Fri Feb 11 14:00:03 MSK 2011


On Fri, Feb 11, 2011 at 5:11 PM, Justin Cormack
<justin at specialbusservice.com> wrote:
>
> Have you tried getting Lua to garbage collect before yielding? That
> might help.
>

Forcing a full garbage collection cycle will block the nginx worker
for a while because nginx is single threaded and the Lua VM is shared
within the worker process. That's also one of the reasons Java web
apps also freeze when JVM does a full GC cycle. So it only makes sense
when the system is really short of RAM resources :)

Cheers,
-agentzh



More information about the nginx mailing list