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