The reference implementation of Java 2 SDK for Solaris divides options into two groups. One group includes options specific to a particular VM; the other group applies to all VMs. Each group has its own option syntax. VM-specific options all start with -X; for example, -Xdebug to enable debugging. Using the -X by itself produces a help message listing all the VM-specific options that this implementation accepts.
Java 2 SDK for Solaris supports these -X options shown in the table below:
Table 4-1 Currently Accepted -X Options
Lists available options |
|
-Xbootclasspath[/a|/p]:<path> |
Sets, appends to, or prepends to boot class path |
Enables remote debugging |
|
Sets the maximum size in bytes for the JIT compiler code area |
|
Sets initial Java heap size |
|
Sets maximum Java heap size |
|
Disables class garbage collection |
|
(SPARC only) Experimental only. Spend more time optimizing methods in the JIT. This option will most likely benefit long-running CPU-bound applications and might result in increased performance of your application. |
|
Sets maximum Java stack size for any thread |
|
Reduces the use of OS signals |
|
Outputs heap profile to java.hprof.txt or <file> |
|
Does not pause for user interaction on SIGQUIT. |
|
Sets the maximum native stack size for any thread |
|
Turns on instruction tracing |
|
-Xtm |
Turns on method tracing |
The -X options are subject to change without notice.
Many of these options correspond to JDK 1.1.1-1.1.6 options. Refer to the next section for more information.
Also, although these -X options are VM specific, many of them are sufficiently generic that any reasonably useful VM would provide them. Also, Java 2 SDK for Solaris does not support the following reference platform -X option whereas it is supported in the reference release:
Disables asynchronous garbage collection |
The following JDK 1.1 compatibility options are currently allowed:
The oldjava utility provides greater compatibility with the JDK 1.1-based java utility. When you invoke oldjava, the -classpath command-line option and CLASSPATH environmental variable are treated as in JDK 1.1 release. Certain new Java 2 SDK for Solaris options are disabled (in particular the -jar option).