How to see long JVM arguments in VisualVM

Posted by Tomas Hurka on Jan 22 2008, 06:10:00 PM CET

If JVM arguments string is longer than 1024 bytes, you will see that JVM arguments are truncated in VisualVM. This is generally not a big problem, but some applications like application servers can have very long list. If you want to see whole list, you can fortunately increase 1024 string length limit with PerfMaxStringConstLength VM option. One can add -XX:PerfMaxStringConstLength=new_limit or better add PerfMaxStringConstLength=new_limit line to ~/.hotspotrc file.

See the results for GlassFish application server without and with PerfMaxStringConstLength added to .hotspotrc

  

Category: Tips & Tricks | Permalink | Comments [0]

Trackback URL: http://blogs.sun.com/nbprofiler/entry/how_to_see_long_jvm
Comments:

Post a Comment:

Name:
E-Mail:
URL:

Your Comment:

HTML Syntax: NOT allowed