by
0
5
303k
0
Top 1% !
Popular
Pearl of Wisdom
Specified
OpenSource
Popularity: 3656th place
Created
Modified May 4, 2013

Published on:

No tags for this snippet yet.
JVMjre4
LanguageJava
LicenseMIT_X11

Java: generate hprof during runtime

To generate hprof may be interesting for debug purpose, most of all before an OutOfMemory occurs on production applications!
This .ini option halps to create an hprof to be analyzed before the occurrence of memory errors.
See http://docs.oracle.com/javase/7/docs/technotes/samples/hprof.html for further details
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/1052/Java--generate-hprof-during-runtime?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
java -Xrunhprof:heap=sites,depth=10,thread=y,doe=y ...other jvm options in ini file...
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus