[Mongrel] Recommentation: Sessions and PStore
zedshaw at zedshaw.com
Sun Sep 3 13:20:31 EDT 2006
On Sun, 2006-09-03 at 10:42 -0600, Kirk Haines wrote:
> On 9/3/06, Zed Shaw <zedshaw at zedshaw.com> wrote:
> > First, the memory leak was because of a bug in how the GC in Ruby was
> > collecting threads after they used a Mutex. Don't ask me why, but
> > switching to Sync fixed it. Problem is, this also causes the leak on
> > Win32. Still working on that problem.
> I still doubt that Mutex itself is the problem here. Sync uses the
> same algorithm for exclusive locking, and I can run _millions_ of
> threads through IOWA, which operates similarly to Mutex with regard to
> how it spawns threads, without any memory leaks, and Mutex gets used
> with every one of those requests/threads.
Theorize all you want, but all I know is, use Mutex, process gets
killed, use Sync, process stays up. Can't argue with the evidence.
Zed A. Shaw
http://www.lingr.com/room/3yXhqKbfPy8 -- Come get help.
More information about the Mongrel-users