jstat does not accept program names as vmid?

Thomas Stüfe thomas.stuefe at gmail.com
Sat Jun 16 17:23:44 UTC 2018


Hi,

just found that jstat does not accept program names as VM ids, it just
accepts Pids:


./images/jdk/bin/jcmd hello.Application
5073:
The following commands are available:
Compiler.CodeHeap_Analytics
Compiler.codecache
...


./images/jdk/bin/jstat  -gcutil   hello.Application
Malformed VM Identifier: hello.Application

./images/jdk/bin/jstat  -gcutil 5073
  S0     S1     E      O      M     CCS    YGC     YGCT    FGC    FGCT
   CGC    CGCT     GCT
  0.00 100.00  66.67   2.64  96.55  88.91      5    0.089     0
0.000     4    0.068    0.156


Is that by design?

Thanks, Thomas


More information about the serviceability-dev mailing list