On Mon, 21 May 2007 18:52:29 +0400, Maxim Karavaev <[EMAIL PROTECTED]> scribbled:
Hey Maxim, [snip] > > > non-compactiong GC in Mono or in possible programmers errors? > > > As Miguel advised in another post, could you run your application with > > > heap-shot and post the results? > > I've tried to get heap-shot, but didn't understand how to do it exactly. > > I was trying to add "--profile=heap-shot" to file /usr/bin/mod-mono-server2, > also I've tried to set variable $MONO_OPTIONS to --profile=heap-shot. > > But results are the same: heap-shot-gui didn't "see" mod-mono process and > command kill -PROF <pid> just killed the process without dumping memory to > file. > > What do I wrong? You can try to add the following statement to your apache vhost config: MonoSetEnv MONO_OPTIONS=--profile=heap-shot This should pass the profiling option to the mod-mono-server2 script. If it does not, you can rename /usr/bin/mono to /usr/bin/mono.real and create a /usr/bin/mono script that passes the above option to mono.real on exec. > Also I've found that huge grow of memory accurs only with 'trace > enabled="true"' option in web.config. After turning it off and swicthing off > session state web-application works well enougth for me. The reason for this is what Robert wrote in the other mail :) > But anyway it seems like size of mod-mono process never decreases. Also real > size of mod-mono process is bigger than value reported by GC.GetTotalMemory(); You might want to use the pmap(1) utility on your (mod_)mono process like this: $ pmap -d <MONO_PID>|grep ^mapped mapped: 269968K writeable/private: 18648K shared: 5732K This shows the real memory consumption of the process (the writeable/private figure is significant). best regards, marek
signature.asc
Description: PGP signature
_______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
