Sun Java System Web Server 7.0 Update 2 Administrator's Configuration File Reference

jvm

The jvm element configures the Java Virtual Machine (JVM). This element may appear zero or one time within the server element. For more information, see server.

Subelements

The jvm element can contain the following subelements:

Table 3–28 List of jvm Subelements

Element 

Occurrences 

Description 

enabled

0 or 1 

Determines whether the server creates a JVM. The default value is true.

java-home

The location of the JDK. If relative path is used, it is relative to the server's config directory.

class-path-prefix

0 or 1 

The prefix for the system classpath. Because this classpath takes precedence over the server classpath, changing it can prevent the server from working properly. To add classes to the system classpath, use the class-path-suffix element instead.

server-class-path

0 or 1 

The classpath containing server classes. Changing this classpath can prevent the server from working properly. To add classes to the system class path, use the class-path-suffix element instead.

class-path-suffix

0 or 1 

The suffix for the system classpath. 

env-class-path-ignored

0 or 1 

Determines whether the server ignores the CLASSPATH environment variable. The default value is true.

native-library-path-prefix

0 or 1 

The prefix for the operating system native library path. 

sticky-attach

0 or 1 

Determines whether the server attaches each HTTP request processing thread to the JVM only once or attaches and detaches on each request. The default value is true.

debug

0 or 1 

Determines whether JVM is started in debug mode, ready for attachment with a Java Platform Debugger Architecture (JPDA) debugger. The default value is false.

debug-jvm-options

0 or more 

Defines the JPDA options. For more details, see http://java.sun.com/products/jpda/doc/conninv.html#Invocation

jvm-options

0 or more 

Defines the server-wide JVM options. For more details, see http://java.sun.com/docs/hotspot/VMOptions.html

bytecode-preprocessor-class

0 or more 

The name of the bytecode preprocessor class. The value is a name of a class that implements com.sun.appserv.BytecodePreprocessor.

profiler

0 or 1 

Configures a Java profiler. For more details, see profiler.


Note –

(On Windows only). Logging out of the machine where the web server is installed might abort the web server process. To avoid this problem, perform these steps:

  1. Add the following line to the server.xml file of the web server instance.

    <JVMOPTIONS>-Xrs</JVMOPTIONS>

  2. Restart the instance.


See Also

servlet-container