[Mono-dev] mod_mono, fast_cgi and configuration.

Joshua Tauberer jit at occams.info
Wed May 9 09:53:50 EDT 2007

Robert Jordan wrote:
> Joshua Tauberer wrote:
>> Something needs to be figured out about why we are forced into spawning 
>> a dozen m-m-servers (one per Apache child process) at startup.
> When apache's MPM == prefork, apache is spawning a `StartServers'
> amount of children during its initialization. At this time,
> mod_mono is also trying to spawn mod-mono-server, which leads
> to a wild horde of m-m-server process. All m-m-s process but one (the
> winner) will immediately die.
> That's caused by the lack of a decent cross-process locking
> feature in some APR versions. I had a patch for this issue (using
> lock files), but it used to fail when apache's MPM != prefork.
> A workaround is to keep StartServers below 5 (or below an amount
> that doesn't take your server down for a couple of seconds).
>> If the mono process dies, mod_mono should restart it.
> That's problematic for the same reason: lack of a working & reliable
> cross-process locking feature that works with all MPM modules.

Right (I sort of remember the patch). If we can only fix it with the 
latest version of APR and for prefork, we should at least do that. 
That's the default setup in at least Fedora Core, and I imagine elsewhere.

- Josh Tauberer


"Yields falsehood when preceded by its quotation!  Yields
falsehood when preceded by its quotation!" Achilles to
Tortoise (in "Gödel, Escher, Bach" by Douglas Hofstadter)

More information about the Mono-devel-list mailing list