X

An Oracle blog about NetBeans Profiler

How to see long JVM arguments in VisualVM

Guest Author

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

  

Be the first to comment

Comments ( 0 )
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.