Modifying JVM Properties of the Sun Java System Application Server/GlassFish
See Also
You can set and modify the properties for the JVM of the Sun Java System Application Server/GlassFish
by modifying the JVM properties sheet for the server. You can open the properties sheet from the Services window.
To modify the JVM properties:
- Ensure that the Sun Java System Application Server/GlassFish instance is running.
- In the Services window, expand the Servers node and the Sun Java System Application Server/GlassFish instance.
- Right-click the JVMs node and choose Properties to bring up the properties window.
- In the Properties window, you can modify the follow properties of the JVM:
- debug-options. Enter or edit debug options. Note that using an
option of transport=dt_shmem is only supported on Windows.
- server-classpath. Click the box to add a directory or JAR/ZIP
file to the server classpath. You can also remove directories or JAR/ZIP files currently in the server
classpath and reorder the classpath references.
- classpath-prefix. Click the box to add a directory or JAR/ZIP
file to the beginning of the classpath. You can also remove directories or JAR/ZIP files currently in the classpath
and reorder the classpath references.
- RMIC-options. Command-line options for RMIC compiler.
- jvm-options. Displays the JVM options. Edit options directly or
click the box to edit options with the editor.
- Select a JVM-option in the Item List to edit or remove that option.
- Add new options by entering the options in the Item field and then clicking Add.
- Options in the Item List can be moved up or down. Select the item to reposition and click Up or Down.
- Javac-options. Displays the Javac options. Edit options directly or click the box to edit options with the editor.
- native-library-path-prefix. Add entries to the beginning of the
native library path. The native library path is a concatenation of the
server’s relative
path for its native shared libraries, the standard JRE native library
path, the shell environment setting (LD_LIBRARY_PATH on UNIX), and any
path specified on the JVM Profiler Settings page.
- java-home. The name of the installation directory of the Java 2
Standard Edition (J2SE) software.
- classpath-suffix. Click the box to add a directory or JAR/ZIP
file to the end of the classpath. You can also remove directories or
JAR/ZIP files currently in the JVM classpath and reorder the classpath references.
- native-library-path-suffix. Add entries to the end of the native
library path. The native library path is a concatenation of the
server’s relative
path for its native shared libraries, the standard JRE native library
path, the shell environment setting (LD_LIBRARY_PATH on UNIX), and any
path specified on the JVM Profiler Settings page.
- env-classpath-ignored. Set to true to ignore env-classpath. This
is the recommended setting.
- bytecode-preprocessors. Enter a comma-separated list of class
names. Each class must implement the
com.sun.appserv.BytecodePreprocessor interface. Classes are called in
the order specified.
- debug-enabled. Set to true to enable debug mode; otherwise, set
to false to disable debug mode. If set to true, set the jpda_port_number.
- jpda_port_number/shared_memory. This property is determined by
the transport setting in debug-options. If the transport value is
dt_shmem, then this property is shared_memory. If the transport value
is dt_socket, then this property is jpda_port_number. You can change
the value of shared_memory or of the port number. Set the port number
for the Java Platform Debugger Architecture (JPDA). For debugging, you must also enable
debugging by setting debug-enabled to true and set desired debug options.
- Close the window.
- See Also
- Working with the Sun Java System Application Server/GlassFish
Legal Notices