To set JVM command-line options in the Administration interface, perform the following tasks:
Select the Configuration.
Select the configuration from the configuration list. Click Configuration tab to get a list.
Click on Java > JVM Settings tab.
Configure the settings for your JVM.
You can add/delete command line JVM options by specifying the values here.
Click Add JVM Option button to add a JVM option.
Some examples for JVM options are:-Djava.security.auth.login.config=login.conf, -Djava.util.logging.manager=com.iplanet.ias.server.logging.ServerLogManager and -Xms128m -Xmx256m
Using CLI
For adding JVM options through CLI, execute the following command.
wadm> create-jvm-options --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config=config1 -Dhttp.proxyHost=proxyhost.com -Dhttp.proxyPort=8080 |
See CLI Reference, create-jvm-options(1).
JVM Profiler helps you diagnose and resolve performance problems, memory leaks, multi-threading problems and system resource usage problems in your Java applications to ensure the highest level of stability and scalability for your applications.
Select the Configuration.
Select the configuration from the configuration list. Click Configurations tab to get the list of available configuration.
Click Java > JVM Settings tab.
Click New button under Profilers section.
Provide values for the following parameters:
Name — Provide a short name for the new JVM Profiler.
Enabled — Determines if the profiler is enabled at runtime.
Class path — Provide a valid class path for the profiler. (Optional).
Native library path — Provide a valid native library path. (Optional).
JVM Options — You can specify additional JVM options for the CLI.
Using CLI
For adding a JVM profiler through CLI, execute the following command.
wadm> create-jvm-profiler --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config=config1 |
See CLI Reference, create-jvm-profiler(1).
The JVM can be started in debug mode and can be attached with a JPDA (Java Platform Debugger Architecture) debugger. When you enable debugging, you enable both local and remote debugging.
Sun Java System Web Server's debugging is based on the JPDA software. To enable debugging, perform the following tasks.
Select the Configuration.
Select the configuration from the configuration list. Click Configurations tab to get the list of available configuration.
Click Java > JVM Settings tab.
Select Enable Debug checkbox under Debug Java Settings.
Provide JVM options as necessary by clicking the New button.
The default JPDA options are as follows:
-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=7896 |
If you substitute suspend=y, the JVM starts in suspended mode and stays suspended until a debugger attaches to it. This is helpful if you want to start debugging as soon as the JVM starts. To specify the port to use when attaching the JVM to a debugger, specify address=port_number. Check out the JPDA documentation for a list of debugging options.