[Mono-list] Stability fo mod_mono

Julien Sobrier julien at sobrier.net
Sat Apr 26 13:18:09 EDT 2008


Hello,
we're running mod_mono on a server for a few weeks and we have a lot of
stability issues:

1/ every time we upload new code, we have to restart mod_mono, otherwise
it doesn't work most of the time (the process is up but acccces to a
pcage times out). Is it normal?
2/ Once we restart mod_mono, if we access an aspx page to quickly,
mod_mono times out: the process is up, but the page is not displayed. I
usually wait at least 30s
3/ Quite often, mod_mono seems to be down. The process is still up, but
no pagedisplayed. using the mod_mono control panel to restart  mod_mono
doesn't work (503 errors), we have to stop Apache, kill mod_mono,
restart Apache

The server gets less than 1,000 hits a day coming from about 3 unique
users. There are mono programs running on the same host: one every
minutes, another one every hours (the same mono program with different
arguments).

How is your experience with mod_mono? is it reliable for you?

So far we've copped with the consequences of the problem: automated
restart of mod_mono every 3 hours, monitoring of mod_mono, etc. But I
don't know how to go to the root cause of the problem: configuration
issue, something wrong with my ASP.Net code, etc.?

The mono version:
mono: 1.2.6
mod_mono: 1.2.6
xsp: 1.2.6
Apache: 2.2.3

Hardware:
2 VMWare guests on a Dual Core Athlon 3400
CentOS 5 64bits, 1 CPU
RAM: 256 MB and 1.8 GB

The VMs are identical, beside the memory allocated. The one with 256 MB
is not more or less unstable than the one with 1.8 GB

Apache config file:
include conf.d/mod_mono.conf
Alias /radio /usr/share/mono/asp.net/apps/ozon-e-0.9
MonoApplicationsConfigFile ozon-e
/etc/xsp/2.0/applications-available/ozon-e.web
app
MonoServerPath ozon-e "/usr/bin/mod-mono-server2"
# Auto-restart after three hours.
MonoAutoRestartMode Time
MonoAutoRestartTime 00:03
<Location /radio>
        Allow from all
        Order allow,deny
        SetHandler mono
        MonoSetServerAlias ozon-e
</Location>

Any idea how I can find out more infromation about mod_mono being down?

BTW, I can see this in the apache logs:
[Fri Apr 25 22:20:51 2008] [error] Not running mod-mono-server.exe
because no Mo
noApplications, MonoApplicationsConfigFile or MonoApplicationConfigDir
specified
.
[...]
[Fri Apr 25 22:20:37 2008] [notice] caught SIGTERM, shutting down
[Fri Apr 25 22:20:37 2008] [warn] (22)Invalid argument: Failed to
destroy the '/
tmp/mod_mono_dashboard_XXGLOBAL_1' shared memory dashboard
[...]
[Sat Apr 26 09:58:14 2008] [warn] (22)Invalid argument: Failed to
destroy the '/
tmp/mod_mono_dashboard_default_3' shared memory dashboard


Julien


More information about the Mono-list mailing list