On Thu, Sep 05, 2002 at 06:49:59PM -0400, Benjamin Coates wrote:
> My new build 498 node runs out of a default-sized heap within hours, and 
> doing 
> -Xmx256m fills up and starts thrashing on my 128MB system.
> 
> how do you get a heap dump?

Something like this:

java -Xrunhprof:heap=sites,depth=4,format=a freenet.node.Main

Assuming freenet-ext.jar and freenet.jar are in your CLASSPATH.

To get it to dump the heap, either press Ctrl+\, or use kill to send a 
SIGXXX (can't remember which signal - any help anyone?) to the java 
process.  It will be dumped to java.hprof.txt in Freenet's working 
directory.

See:
  http://www.javaworld.com/javaworld/jw-12-2001/jw-1207-hprof.html

...for the format of this file.

Ian.

-- 
Ian Clarke                                        ian at freenetproject.org
Founder & Coordinator, The Freenet Project    http://freenetproject.org/
Chief Technology Officer, Uprizer Inc.           http://www.uprizer.com/
Personal Homepage                                       http://locut.us/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: 
<https://emu.freenetproject.org/pipermail/devl/attachments/20020905/cb09fc58/attachment.pgp>

Reply via email to