[Mono-list] Mono/XSP mem/cpu usage

Pedro Santos donbonifacio at gmail.com
Thu Apr 23 11:26:16 EDT 2009


I'm using mono-fastcgi-server2 for a while and I've noticed the following:

» the amount of memory that mono uses increases a lot, I used to have
mono with 600Mb, Now I restart mono every couple of hours (it stays at
an average of 250M)
» Sometimes mono uses a _lot_ of CPU, even though we don't have much
load at that time

Here's a snap of top at the server:

top - 16:18:26 up 25 days,  3:15,  1 user,  load average: 2.03, 2.09, 2.14
Tasks: 107 total,   1 running, 106 sleeping,   0 stopped,   0 zombie
Cpu(s): 32.6%us,  8.9%sy,  0.0%ni, 49.9%id,  0.0%wa,  0.0%hi,  8.6%si,  0.0%st
Mem:   1033300k total,   838260k used,   195040k free,   152352k buffers
Swap:  1510068k total,    95716k used,  1414352k free,   256572k cached

26810 root      20   0  327m 266m  33m S  200 26.4 325:03.89 mono

The mono process is running for about 3h and is using 200% of CPU. If
I restart the web process, it stays steady at 0-30, but at some time
it increases to 100/200% and stays there.
I really don't know if this is mono's fault or my application's fault.
How can I troubleshoot this?

Thank you,

PS: I'm using everything 2.4

Pedro Santos
Home - http://psantos.zi-yu.com
Work - http://www.pdmfc.com
The future - http://www.orionsbelt.eu

More information about the Mono-list mailing list