[DGD] Large dumpfile?

Erwin Harte harte at xs4all.nl
Fri Jan 11 19:08:33 CET 2002


On Fri, Jan 11, 2002 at 04:08:52AM -0500, Thomas Conner Annandale wrote:
> At the moment, I'm using DGD as a customized httpd and that's all.  Yet
> the dump file is currently 40 megs and constantly growing.  I'm having a
> hard time figuring out where it's all coming from.  Is there some way to
> find out which objects all that memory is going to?  Perhaps a command to
> call on an object that will tell you how much memory it's taking up?  It
> would be very useful in diagnosing my situation.

You can use the status(obj) kfun to see how many sectors it used the
last time it was stored in the swap-device:

    status(obj)[O_NSECTORS]

That, combined with a loop over all objects in your game, should tell
you something about where your mysterious data use is coming from.

If your lib tracks how many and which clones there are of which
objects, I'd see if perhaps you have a leak somehwere, for instance
because connection-objects don't self-destruct upon disconnect, or so.

Hope that helps,

Erwin.
-- 
Erwin Harte <harte at xs4all.nl>
_________________________________________________________________
List config page:  http://list.imaginary.com/mailman/listinfo/dgd



More information about the DGD mailing list