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

Maxim Karavaev makska at yandex.ru
Fri May 25 22:16:35 EDT 2007


>>> 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.
Thanks for advise,

I've tried tp do that but result is the same.

May be reason of it is in installation of heap-shot?

After I did all staps listed here: www.mono-project.com/HeapShot, I've got exception like "Library not found" running heap-shot. 
I find that .dll and .so libraries isn't copied to necessary folders after "make install". So I've copied heaps-shot's .exes and .dlls to /usr/lib/heap-shot and .so to /usr/lib by myself.


More information about the Mono-list mailing list