On Tue, Nov 10, 2009 at 11:33 AM, Alexander Gladysh <[email protected]>wrote:
> >> >> 2. If I run io.popen() and do not close the file explicitly, I have a > >> >> zombie process hanging around (my wild guess is that it happens > >> >> because GC does not kick in, as my script does not create enough > >> >> garbage). > > >> > Not really a WSAPI issue, but I can force closing of Lua states when I > >> > discard stale ones, instead of letting the GC close them, and this > will > >> > trigger __gc metamethods on these states. My bad. > > >> Would be great, thanks! Those zombies are surely looking hungry for > >> our admin's brains :-) > > > Already in github. > > When does Lua state becomes stale one? > > I set a very conservative default time-to-live, one day (checked every hour), because this negatively impacts caching. You can edit it in wsapi.fcgi to values more suitable to your workload: ttl controls staleness, period controls how often WSAPI does the collection. -- Fabio
_______________________________________________ Kepler-Project mailing list [email protected] http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project http://www.keplerproject.org/
