Ankur Agarwal
Ankur Agarwal

Reputation: 24758

JVM options : what values are passed?

I am using commadline java and javac on my Ubuntu Linux host and I was wondering how can I get the list and values of options being passed to JVM like -Xmx -Xms -Xss ?

Also I could not find this information on man java or man javac and I was very surprised with that. Can you help?

Upvotes: 0

Views: 373

Answers (3)

jtahlborn
jtahlborn

Reputation: 53694

If you need to access this information at runtime, you can use the JMX management beans, specifically RuntimeMXBean.getInputArguments. Additionally, many of the values are available from the relevant beans, e.g. the current heap memory.

Upvotes: 1

Kounavi
Kounavi

Reputation: 1121

A quick look:
Javac options (it may be for 1.5 but it is still true for the latest JRE/JDK )
JRE default options in Linux/Solaris which was originally found in Java Hotspot VM options (see the section Categories of Java HotSpot VM Options ).

Hope this helps!

Upvotes: 0

QuantumMechanic
QuantumMechanic

Reputation: 13946

I am assuming you are asking what are the possible command line options and their potential values.

This is the man page for the Solaris/Linux version of the JVM.

The general page for links to documentation of the OS-specific versions of all the tools is here.

Upvotes: 1

Related Questions