[Mono-devel-list] XSP/mod_mono recycling?

Gonzalo Paniagua Javier gonzalo at ximian.com
Mon Jan 31 16:31:35 EST 2005

On Mon, 2005-01-31 at 09:55 -0500, Miguel de Icaza wrote:
> Hello,
>     Apache has a mechanism in which it recycles the server processes
> every once in a while, this helps if you have a module that leaks some
> kind of resource, and basically resorts to the operating system to
> cleanup after it.
>     Today mod_mono and xsp run everything in a single process, and am
> wondering if it would not be a good idea to have them restart the
> processes every once in a while?

If apache recycles the process running mod-mono-server, it will make
mod-mono-server stop/start.

>     This for instance would help in long running applications that might
> be fragmenting the Mono heap while we get a compacting GC.  This would
> also help if we have some unmanaged library running on the process that
> leaks, or whose managed wrapper does not properly dispose of its
> resources.

We have parameters for setting the max. amount of memory and/or CPU time
used by mod-mono-server before the kernel kills it (and mod_mono
respawns it).

I don't see any problem with adding a Time-To-Live argument, but I'd
rather use the memory/CPU time limits instead of restarting
mod-mono-server every once in a while, as it loses the compilation
results for cached pages et al.


More information about the Mono-devel-list mailing list