[Mono-list] Mod-mono-server using too much CPU, running too many times

Antonio Santana antjensavwork@hotmail.com
Fri, 01 Oct 2004 08:51:33 -0500


<html><div style='background-color:'><DIV class=RTE>
<P>I meant to write sooner, but kept getting side tracked.&nbsp; As you mentioned httpd and mod-mono-server using up 10% CPU, I looked into my machine and noticed that httpd had a root process with over 15 child processes.&nbsp; Needless to say, I killed them all and restarted httpd, which only started up 1 root process and maintained itself with that one process.&nbsp; Each of the httpd processes were using over 20Mb RAM and appeared to be using up a little over 10% CPU on average consistently.&nbsp; I do not have people hitting this server for web requests.&nbsp; This box is just my newly built "Play with Linux, Apache, and Mono" box.&nbsp; I'm curious to know what might be going on as well that causes httpd to use up extra RAM and CPU.</P>
<P>Thanks!<BR></P>
<P>Antonio</P></DIV>
<DIV></DIV>&gt;From: Joshua Tauberer &lt;tauberer@for.net&gt; 
<DIV></DIV>&gt;To: mono-list &lt;mono-list@lists.ximian.com&gt; 
<DIV></DIV>&gt;Subject: [Mono-list] Mod-mono-server using too much CPU, running too many times 
<DIV></DIV>&gt;Date: Thu, 30 Sep 2004 16:44:09 -0400 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Putting aside the shameless plugs for later, I have two questions 
<DIV></DIV>&gt;about mod_mono: 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;1)&nbsp;&nbsp;Mod-mono-server is consistently using about 10% CPU at times 
<DIV></DIV>&gt;that I know there are no pages being served.&nbsp;&nbsp;Does anyone have any 
<DIV></DIV>&gt;thoughts about the source of this (so I don't have to dive blindly 
<DIV></DIV>&gt;into figuring it out)? 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Is this something that I could expect from having a lot of files in 
<DIV></DIV>&gt;the System.Web.Caching cache -- with the managed file system watcher 
<DIV></DIV>&gt;or FAM? 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;(It's Fedora Core 1, FAM 2.6.8, and Mono's 1.0.1 release.) 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;2)&nbsp;&nbsp;How does mod_mono work in relation to Apache's prefork module?&nbsp;&nbsp; 
<DIV></DIV>&gt;My small understanding of prefork is httpd spawns a few child httpds 
<DIV></DIV>&gt;to do the dirty work.&nbsp;&nbsp;I'm seeing a few mono proceeses starting up, 
<DIV></DIV>&gt;and I don't know whether this is because each httpd child is 
<DIV></DIV>&gt;starting its own mod_mono_server, or for some other reason.&nbsp;&nbsp;(e.g. 
<DIV></DIV>&gt;if mod-mono-server is too busy to pick up a connection, will 
<DIV></DIV>&gt;mod_mono spawn a new mod_mono_server?) 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Is each child httpd supposed to start its own mod_mono_server?&nbsp;&nbsp;Is 
<DIV></DIV>&gt;mod-mono-server able to process multiple requests concurrently?&nbsp;&nbsp;Is 
<DIV></DIV>&gt;the unix socket to mod-mono-server able to support connections from 
<DIV></DIV>&gt;multiple httpd children? 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Thanks guys.&nbsp;&nbsp;Aside from these new issues, I've had no problems 
<DIV></DIV>&gt;getting mod_mono working.&nbsp;&nbsp;(This all goes to show me that playing 
<DIV></DIV>&gt;with a server in my basement and actually having people visit the 
<DIV></DIV>&gt;site are two different things...) 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;-- 
<DIV></DIV>&gt;- Joshua Tauberer 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;http://taubz.for.net 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;** Nothing Unreal Exists ** 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;_______________________________________________ 
<DIV></DIV>&gt;Mono-list maillist&nbsp;&nbsp;-&nbsp;&nbsp;Mono-list@lists.ximian.com 
<DIV></DIV>&gt;http://lists.ximian.com/mailman/listinfo/mono-list 
<DIV></DIV></div></html>