Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jinfo tool

 
Mohtashim Shaikh
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Need to know if there is any command / way that jinfo lists all the VM options all at once.

Also, Can someone help point to the documentation that contains all the VM options.

I found the below but it does not look complete.

http://www.oracle.com/technetwork/java/javase/tech/vmoptions-jsp-140102.html

For example: The above link does not show "jinfo -flag MaxHeapSize" the -> MaxHeapSize flag.

I need the list of all the flags.

Regards,
Mohtashim
 
steve souza
Ranch Hand
Posts: 862
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I haven't found a great link myself let alone any decent explanation of many of the flags.

Here is a better list of the flags though it is code and so lacks in explanations...
http://cr.openjdk.java.net/~gbenson/zero-10/hotspot/src/share/vm/runtime/globals.hpp.html

The jmap tool can give some useful information. Also if you haven't used visualvm check that out. It is part of the jdk and can also be downloaded if you don't have it installed.

 
steve souza
Ranch Hand
Posts: 862
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also the jps utility will show a list of the <pid> you need to pass to jmap. You can also see this list with visualvm.
 
steve souza
Ranch Hand
Posts: 862
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It would certainly be nice if the jvm could spit out all options both explicitly set as well as ones where the defaults where used and an indication of which ones were set.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic