Tuesday Jan 22, 2008

How to see long JVM arguments in VisualVM

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

  

About

A blog by NetBeans Profiler & VisualVM developers.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today