[Mono-list] Garbage collection and memory usage

Gavin Hamill gdh at laterooms.com
Sun Apr 9 16:26:37 EDT 2006

On Sat, 08 Apr 2006 12:56:27 -0400
Miguel de Icaza <miguel at ximian.com> wrote:

> Hello,
> You attach to the running mono process when it hangs, this will be the
> one that looks like:
> 	mono mod-mono-server.exe

OK that's great :) Even after reading this thread, could you do a 'gdb
101'? This is so that when the admin site next fails I'm not fumbling
through pages of docs whilst people around me are panicing that
everything is broken :)

I'm using mono 1.1.14 on the admin site machine, with the "handle
SIGXCPU SIG33 SIGPWR nostop noprint" and "mono_backtrace" macro
in /root/.gdbinit. The admin site runs on x86_64 so I haven't included
define mono_stack since it's marked as only tested on x86.

The symptoms for when the admin site fails are that Apache returns
'Server Temporarily Unavailable' after a few moments for each aspx

So, next time it happens, I'll fire up "gdb --pid=12345" and be
presented with the (gdb) prompt ... from here, what do I type to
provide the most useful information?

> One thing that might help (on private email if you have to) is to
> describe what kind of things your application is doing: what database
> provider, whether you can run pieces of the application from the
> command line (no web version).

We're using Npgsql.dll - not the latest version I confess - in fact
we've been using the same dll for months - just stuck it in the 'bin'
directory along with all the other dll's we're using or have written as
part of our own application.

That said, no problems have been experienced with it on Windows :)

Running the admin site under xsp is an interesting idea, since I'm not
doing anything exotic with mod_rewrite (like I have to for the public
site), however I'd need to reboot the machine to UP mode to use heap
buddy, and I don't want to do that when the machine is far away :) Will
using XSP bring any other debugging benefits than mod_mono ?


More information about the Mono-list mailing list