[Mono-list] Heavy loaded web-site on Mono

Miguel de Icaza miguel at novell.com
Sat May 19 21:58:54 EDT 2007


Hello Makska,

> 1. Uncontrolled grow of used memory. After about hour or two mono
> process grows up to 2-3Gb and goes down (visitors get "Service
> temporary unavailable" error). Web-application didn't contain any big
> object in memory, just 100-200 entries in Cache object with sliding
> expiration. Web-pages are simple too: 5 aspx pages with several user
> controls.
> Is the reason of this situation in non-compactiong GC in Mono or in
> possible programmers errors?
> 
> 2. Behavior of Cache object. Value of Cache.Count variable is in about
> 2 times higher than number of Keys available via
> Cache.GetEnumerator(). Even when I didn't add any object to Cache,
> Cache.Count indicates 20-30 entries which are unavailable via
> enumerator.
> 
> Could anyone explain this situations or give any advises?

We should get to the bottom of this.  Do you think you could help us by
debugging what the problem could be?

You could try running mod_mono with HeapShot (make sure that the mono
command line that runs your mod-mono-server or xsp has the command line
argument --profile=heap-shot)

See this page for more info:

	www.mono-project.com/HeapShot

Miguel.


More information about the Mono-list mailing list