[Mono-dev] [PATCH] mod_mono: startup problems with Apache 1.3

Robert Jordan robertj at gmx.net
Sat Nov 12 09:34:26 EST 2005


Hi,

The attached patch fixes the problem by not starting
xsp from apache's child_init handler. It's now started
on demand during the first request.

I'm not sure whether this is desired, because it may
lead to HTTP_SERVICE_UNAVAILABLE during the first
request. It just fixes the problem for me.

Robert


> I have production servers that use the httpd config setting
> 
>     StartServers 50
> 
> so it preforks 50 Apache childs on startup.
> 
> Mod_mono (svn HEAD) doesn't seem to cope with that after the
> auto-hosting feature has been added.
> 
> When Apache spawns its 50 childs in the startup phase, mod_mono
> manages to start hundreds of mod-mono-servers, raising the server
> load to a value I never seen before (> 100). After a few seconds
> everythings settles down and the server is back in business.
> 
> To make it reproducible, I've used the apache config from
> mod_mono(8) for the demo site.
> 
> The attached error log was taken between apachectl start and
> apachectl stop, after the server returned to normal operation.
> StartServers was set to 20.
> 
> Mod_mono's and XSP's temp files and folders were deleted
> before running the tests.
> 
> Robert
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mod_mono.diff
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20051112/186e2322/attachment.pl 


More information about the Mono-devel-list mailing list