user710818
user710818

Reputation: 24248

What can be java programm startup parameters? Does exist a list?

Sometimes I see like:

-D

or -X

that passed to jdk/bin/java... Where I can find complete list of these parameters?

Upvotes: 1

Views: 15023

Answers (5)

Michael Borgwardt
Michael Borgwardt

Reputation: 346397

The standard options (and some common non-standard ones) are listed in the documentation of the java command.

There are also a lot of vendor-specific non-standard options for tuning and debugging the VM's behaviour, especially garbage collection.

Upvotes: 4

Andrzej Doyle
Andrzej Doyle

Reputation: 103817

The man page, or running the executable with the -help flag, will display the standard parameters.

For Sun-VM specific -XX:... options, there's a list at Java Hotspot VM Options - though by definition this is JVM-specific, and you may wish to search for a similar page if you're using an alternative VM.

Upvotes: 1

Pratik
Pratik

Reputation: 30855

just go to the bin dir of the jdk into the cmd(command prompt) and type java and enter

like this way

enter image description here

Upvotes: 3

Brett Walker
Brett Walker

Reputation: 3586

at the command line type java -? and java -X to see a list of options and their explanations.

Upvotes: 2

Related Questions