Java Options

From LogicalDOC Community Wiki
Revision as of 12:05, 25 January 2010 by Blucecio (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

If you launch from a shell the command: java -?
this will return the list of available options for the command.

By running the command: java -X
instead will be shown a list of non-standard options.
Note: This list may vary from version to version of Java and is subject to change (between versions) without warning or notice.

Options that are specified with -XX are not stable and are not recommended for casual use.
These options are subject to change without notice.

maximum Java heap size (900 megabytes)
maximum Size of the Permanent Generation (384 megabytes)
initial Java heap size
Maximum size of new generation
Default size of new generation
Parallel Young Generation garbage collector (for multiprocessor machines)
Attempt to descrease remark pauses when used with -XX:+UseParNewGC
Enable the concurrent low pause collector
If true, when coercing expressions to numbers "" and null will be coerced to zero as required by the specification. If not specified, the default value of true will be used.

Note: Many of the options presented are related to JVM 1.4 in particular, refer to the following URLs:

Should therefore be careful when using these options on a JVM 1.6.
For the latest list of available options for the J2SE 6.0 refer to the following documentation:

JVM 1.5 - J2SE 5

A Collection of JVM Options
Tuning Garbage Collection with the 5.0 Java[tm] Virtual Machine
tagtraum industries incorporated ~ GCViewer VMFlags

JVM 1.6 - J2SE 6

Java HotSpot VM Options
Java SE 6 HotSpot[tm] Virtual Machine Garbage Collection Tuning