[Mono-list] Unable to set up reliable hosting on Mono

Maxim Karavaev makska at yandex.ru
Thu Oct 25 09:47:02 EDT 2007


Hello!

For about several monhts we are tying to set up hosting on Mono (mono 1.2.5.1, Apache 2.2 on Gentoo i386).

We've got a lot of difficulties that we can't solve. Some or all web-sites on mono become buzz at least one time per two days.
We can't submit a bug to Bugzilla because these errors are unrepeatable and we haven't so many time to find it, so we can't write test cases for it. They just occausly happen without any evident reasons.

1) When heavy web-application is running (for example with a dozens of threads), it become buzz in several minutes or hours, leaving in logs exceptions like:
System.IO.EndOfStreamException: Failed to read past end of stream.
  at System.IO.BinaryReader.ReadByte () [0x00000]
  at Mono.WebServer.ModMonoRequest.GetInitialData () [0x00000]
  at Mono.WebServer.ModMonoRequest..ctor (System.Net.Sockets.NetworkStream ns) [0x00000]
  at Mono.WebServer.RequestReader..ctor (System.Net.Sockets.NetworkStream ns) [0x00000]
  at Mono.WebServer.ModMonoWorker.InnerRun (System.Object state) [0x00000]
  at Mono.WebServer.ModMonoWorker.Run (System.Object state) [0x00000]

This exception happen occausaly, but when web-app become buzz, there are a lot of it in logs.


2) Other exception like
** ERROR **: file domain.c: line 178 (mono_jit_info_table_find): assertion failed: (ret == 0)
aborting...
** (process:22358): ERROR (recursed) **: file domain.c: line 178 (mono_jit_info_table_find): assertion failed: (ret == 0)
aborting...

happen usually when we try to restart some web-sites (via mono-ctrl panel) or whole apache.



After both these exceptions we should "kill" several buzz mono processes to get web-server running again.


3) We don't know how to change default permissions of new files created by mono web-app. We can't do it by setting MonoUnixUmask. Is there any examples how to do it?


Are there any ways to solve these difficulties, or the only one solutions is return to Windows?
Or maybe anyone have such expirience setting up mass hosting on Mono and could give some recommendation to community?


Thanks a lot for your time!

Best wishes,
Maxim Karavaev


More information about the Mono-list mailing list