[Mono-bugs] [Bug 80092][Wis] New - Serving web pages with mod_mono is just not reliable!
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Thu Nov 30 01:49:43 EST 2006
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by jwiegley at gmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=80092
--- shadow/80092 2006-11-30 01:49:43.000000000 -0500
+++ shadow/80092.tmp.21925 2006-11-30 01:49:43.000000000 -0500
@@ -0,0 +1,78 @@
+Bug#: 80092
+Product: Mono: Class Libraries
+Version: 1.2
+OS: Debian Woody
+OS Details: Linux 2.4.31, Mono 1.2-rc0
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: Sys.Web
+AssignedTo: gonzalo at ximian.com
+ReportedBy: jwiegley at gmail.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Serving web pages with mod_mono is just not reliable!
+
+I've been having the following problem for almost a year now, and after trying everything I could
+to resolve it on the server side, I'm beginning to think that this may just be a Mono bug after all.
+
+I'm running mod_mono 1.2 under apache 2.0.55 on an x86 Linux box running 2.4.31. I have no
+process limits. Here is the relevant configuration sections of my httpd.conf:
+
+<IfModule prefork.c>
+MaxClients 150
+StartServers 5
+MinSpareServers 5
+MaxSpareServers 10
+</IfModule>
+
+<IfModule worker.c>
+StartServers 2
+MaxClients 150
+MinSpareThreads 25
+MaxSpareThreads 75
+ThreadsPerChild 25
+MaxRequestsPerChild 0
+</IfModule>
+
+# Assume no memory leaks at all
+MaxRequestsPerChild 10
+
+Timeout 300
+KeepAlive On
+MaxKeepAliveRequests 100
+KeepAliveTimeout 15
+
+######################################################################
+
+Include conf/mod_mono.conf
+
+Alias /johnw "/home/johnw/Sites/johnw"
+MonoPath /home/johnw/mono-1.2
+MonoApplications default "/johnw:/home/johnw/Sites/johnw"
+MonoServerPath /home/johnw/mono-1.2/bin/mod-mono-server2
+<Location /johnw>
+ SetHandler mono
+</Location>
+
+
+What is happening to me is that my site (http://johnwiegley.com) serves web pages just fine, to
+multiple users, without a hitch -- until about 3-7 days into service. At that point it just flat out
+dies, and nothing can get my site running again without me shutting down Apache, killall -9
+mono, and then restarting Apache. It happens almost continuously now, so that even though I
+have a nightly cronjob doing just that, people still perceive my site to be constantly down.
+
+This is what my error_log says just before service stops:
+
+Unhandled Exception: System.ExecutionEngineException: Couldn't create thread
+
+I don't get anything more than that. I used to think this was a fork limit problem, so I argued
+with my sysadmin until he removed all ulimit restrictions on process creation.
+
+Do you have any idea what I could try? I love using Mono on a Linux box, but the severe
+instability is going to force me over to a Windows webhost very soon. :(
+
+John
More information about the mono-bugs
mailing list