[Mono-list] Heavy loaded web-site on Mono
Караваев Максим
makska at yandex.ru
Sun May 20 09:44:39 EDT 2007
> > 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?
Thanks a lot for answer!
I didn't use <% @OutputCache %>, and I was trying to not using Cache for other objects. Memory was growing not so fast, but the problem was not solved.
Also I can't run web-site without using of Cache. I store in Cache results of some heavy SQL queries. Without it web-site work very slow.
I'll try to use the same decision (restart web-app by cron script) for first time.
More information about the Mono-list
mailing list