This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Performance and the fly likes jinfo tool Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Performance
Bookmark "jinfo tool" Watch "jinfo tool" New topic
Author

jinfo tool

Mohtashim Shaikh
Ranch Hand

Joined: Jul 18, 2010
Posts: 43
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

Joined: Jun 26, 2002
Posts: 860
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.



http://www.jamonapi.com/ - a fast, free open source performance tuning api.
JavaRanch Performance FAQ
steve souza
Ranch Hand

Joined: Jun 26, 2002
Posts: 860
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

Joined: Jun 26, 2002
Posts: 860
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.
 
jQuery in Action, 2nd edition
 
subject: jinfo tool
 
Similar Threads
Assertion Flags
applet runs slowly
Is Java Not Really Possible on PDA/Micro?
What is Client VM?
can't start compiler