[Mono-aspnet-list] AutoHosting and Apache restart

Max Rubis maxr at expeditions.com
Mon Apr 12 16:54:27 EDT 2010


Hi All.

I've been running Mono on my CentOS 5.4 server for a while already. I have 5 virtual hosts that run asp.net websites. Recently I noticed occasional freezes when I update precompiled assemblies, so I decided to switch from AutoHosting to manual configuration so each vhost will be processed by its own mod-mono-server2.

I disabled AutoHosting and set .NET 2.0 in mod_mono.conf:
    MonoServerPath "/usr/bin/mod-mono-server2"
    MonoAutoApplication disabled

Then in each vhost I configured different mono applications like this:
    MonoApplications domain.com "/:/home/sites/domain.com"
    <Location />
        MonoSetServerAlias domain.com
        AddHandler mono .aspx .ascx .asax .ashx .config .cs .asmx .axd
    </Location>

Everything is working except couple annoyances:

1)      When I restart (or reload) Apache, mod_mono do NOT restart xsp servers. After completion of the restart, mod_mono just spawns another set of xsp servers: after restart I have 10 xsp processes; another restart - 15 total, and so on.

2)      Even though, I disabled AutoHosting, I still see A BUNCH of XXGLOBAL processes in Mono control panel: there is general one, then one for each vhost (alogn side with proper Mono application that I defined in the vhost configuration file)

My config:
httpd-2.2.3-31
Mono and mod_mono 2.6.3

XSP command line:
/usr/bin/mono /usr/lib/mono/2.0/mod-mono-server2.exe --filename /tmp/mod_mono_server_domain.com --applications /:/home/sites/domain.com --nonstop

I appreciate any input.

Thanks,
Max
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-aspnet-list/attachments/20100412/90297c26/attachment.html 


More information about the Mono-aspnet-list mailing list