[Mono-osx] mod_mono: Failed to create shared memory segment for backend

Tom Moss tom at xhasc.com
Wed Feb 23 13:49:43 EST 2011


Hi,

Anyone seen this problem before (I'm on OS X 10.6.6)?  I have 3 VirtualHosts in Apache, each running a mod_mono instance (i.e. a total of 3) and I always get the following error in my log file (and a blank page in my browser) when making a request to the 3rd virtual host:

[Wed Feb 23 13:20:07 2011] [crit] (24)Too many open files: Failed to create shared memory segment for backend 'user' at '/tmp/mod_mono_dashboard_user_2'.
[Wed Feb 23 13:20:08 2011] [notice] child pid 207 exit signal Bus error (10)

After about 26 times the error changes to:

[Wed Feb 23 13:20:10 2011] [crit] (28)No space left on device: Failed to create shared memory segment for backend 'user' at '/tmp/mod_mono_dashboard_user_2'.
[Wed Feb 23 13:20:11 2011] [notice] child pid 215 exit signal Bus error (10)

My other 2 virtual hosts run normally, no errors.  I have played around with increasing the default limit of open files but that doesn't seem to change anything.


As a work-around, does anyone know if it is possible to share the same mod_mono instance between multiple virtual hosts that only differ by port?  Same host, different port.  I'll paste in my config below.

Thanks in advance,
  Tom

--

Listen 7700
Listen 7706
Listen 7730

<VirtualHost *:7730>

  ServerName trunk
  DocumentRoot /sites/trunk.dev/current
  MonoServerPath trunk "/usr/bin/mod-mono-server2"
  MonoDebug trunk true
  MonoApplications trunk "/:/sites/trunk.dev/current"

  <Location "/">
    Allow from all
    Order allow,deny
    MonoSetServerAlias trunk
    SetHandler mono
  </Location>
</VirtualHost>

<VirtualHost *:7700>

  ServerName api
  DocumentRoot /sites/api.dev/current
  MonoServerPath api "/usr/bin/mod-mono-server2"
  MonoDebug api true
  MonoApplications api "/:/sites/api.dev/current"

  <Location "/">
    Allow from all
    Order allow,deny
    MonoSetServerAlias api
    SetHandler mono
  </Location>
</VirtualHost>

<VirtualHost *:7706>

  ServerName user
  DocumentRoot /sites/user.dev/current
  MonoServerPath user "/usr/bin/mod-mono-server2"
  MonoDebug user true
  MonoApplications user "/:/sites/user.dev/current"

  <Location "/">
    Allow from all
    Order allow,deny
    MonoSetServerAlias user
    SetHandler mono
  </Location>
</VirtualHost>



More information about the Mono-osx mailing list