bea.com | products | dev2dev | support | askBEA |
|
e-docs > WebLogic Server > JRockit for Windows and Linux User Guide > Configuring and Running JRockit |
JRockit for Windows and Linux User Guide |
Configuring and Running JRockit
This section describes how to use JRockit's command line options. JRockit supports all the standard Java command line options plus numerous extended options.
This section includes information on the following subjects:
Note: If JRockit behaves in some unexpected way, please consult the JRockit FAQ. If that doesn't solve your problem, please send an e-mail to support@bea.com
Setting Up JRockit by Using Standard Command Line Options
The following are the standard command line options you can use with JRockit:
Tells JRockit where to look for classes and resources.
Use a semicolon to separate entries on Windows systems and a colon on Linux. Alternately, you can use the option -cp to represent -classpath; for example:
Setting Standard Output Options
The following options determine if the system will provide messages to the operator and what the form and content of those messages should be.
Tells JRockit to display verbose output. This option is used mainly for debugging purposes and causes a lot of output to the console. Supported components are memory, load and codegen. If no component is given, JRockit will display verbose information on everything.
Changing JRockit Behavior by Using -X Options
The -X command line options are used to change the behavior of JRockit to better suit the needs of different Java applications.
Warning: -X options are non-standard and are subject to change at any time.
Preventing JRockit from Initiating Shutdown After Receiving a Logoff Event
-Xnohup
If the JRockit is run as a service (for example, the servlet engine for a web server), it can receive CTRL_LOGOFF_EVENT or SIGHUP but should not initiate shutdown, since the operating system will not actually terminate the process. To avoid possible interference such as this, use the -Xnohup command-line option. When this option is used with JRockit, the JVM does not watch for or process CTRL_LOGOFF_EVENT or SIGHUP events.
If you specify -Xnohup, be aware of the following:
Configuring Garbage Collection and Thread Management by Using -X Options
Additional -X options, specific to garbage collection and threading, are described in Configuring the JRockit Memory Management System and Configuring the JRockit Thread System.