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

Joshua Tauberer jit at occams.info
Sat May 19 12:46:44 EDT 2007


makska wrote:
> Now I'm trying to launch big web-site consists of about 100.000
> dynamic web-pages (about 100kb each without images) which has about
> 50.000 hits per day.
(snip)
> 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?

I've had the same or a similar uncontrollable memory growth problem for 
the last year or two.  I'm pretty sure it's an issue in mono, since when 
the process gets to around 800MB the heap-shot profiler only reports a 
fraction of that in allocated objects (and beyond that I can't get a 
snapshot).

I just restart the mod-mono-server process via a cron job whenever it 
starts sending back 503/505's, and that works for me.  (That's not to 
say I haven't spent a considerable amount of time trying to track down 
the problem... I haven't had the time to try to construct a simplified 
version of my website with simulated visitors to isolate the problem, 
though.)

Have you tried turning off caching?

-- 
- Josh Tauberer

http://razor.occams.info

"Yields falsehood when preceded by its quotation!  Yields
falsehood when preceded by its quotation!" Achilles to
Tortoise (in "Gödel, Escher, Bach" by Douglas Hofstadter)


More information about the Mono-list mailing list