Here is the command line I use to profile Fred:
$java -client -mx400m 
-Xrunhprof:cpu=samples,file=/var/log/freenet-unstable/freenet.prof,depth=5,cutoff=0.000000001
 
freenet.node.Main --paramFile /etc/freenet-unstable/freenet.conf 

Produces quite detailed results, including stack traces. Go to the end of the 
file for the
list, then cross reference to the stack tracs. Unfortunately, java profiling is 
unaware
of the unix concept "CPU time", so the first few items will be things
reading sockets etc. I am now running it overnight with no local traffic
to see what I can see. One other thing: terminating the node with
"killall java" doesn't produce a stack trace. You need to kill the java
process at the top of the tree, and only that one. This is not a problem if
you use the standard ./stop-freenet.sh script.
-- 
Matthew Toseland
toad at amphibian.dyndns.org/amphibian at users.sourceforge.net
Full time freenet hacker.
http://freenetproject.org/
Freenet Distribution Node (temporary) at 
http://amphibian.dyndns.org:8889/1QzGdT3DAFA/
ICTHUS.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: 
<https://emu.freenetproject.org/pipermail/devl/attachments/20030124/dfba4455/attachment.pgp>

Reply via email to