This wiki is now locked - both user registration and edits (except by admins) are disabled. We're currently migrating all the content to our new wiki. If you have time, please register and help us out!

You can still view the source code of every page. Once a page has been copied over to the new wiki, please add a link to it to MigratedPages (the only page which is still editable), to notify the admins to go and blank it.


How to profile the node (with hprof)


Shut down the node.

Edit wrapper.conf to add the profiling options and turn off various timeouts:

wrapper.java.additional.3=-Xloggc:freenet.loggc
wrapper.java.additional.4=-Xrunhprof:heap=all,format=a,depth=12,lineno=y,doe=y,gc_okay=y
wrapper.startup.timeout=0
wrapper.shutdown.timeout=0
wrapper.jvm_exit.timeout=0
wrapper.ping.timeout=0
wrapper.disable_restarts=true

In freenet.ini, enable minimal logging and turn off hang checkers (this is another kind of timeout):

logger.priority=NORMAL
logger.priorityDetail=
node.disableHangCheckers=true

Or turn it off altogether:

logger.enabled=false
node.disableHangCheckers=true

And disable any logger.logLevelDetails

This will produce a file called java.hprof.txt on shutdown (which may take some time), and when you kill -QUIT the node.

Search for SITES BEGIN within the file, the main table follows. The stack trace numbers refer to traces earlier on in the file - search from the beginning of the file for TRACE < number i got from the main table >
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki