To set JVM command-line options in the Administration interface, perform the following tasks:
Click the Configuration tab and select the configuration from the configuration list.
Click Java > JVM Settings tab.
Configure the settings for your JVM.
You can add or delete command line JVM options by specifying the values here.
Click Add JVM Option 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
To add 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.
Click Configurations tab to see the list of available configurations and select the configuration you need.
Click Java > JVM Settings tab.
Under the Profilers section, click New.
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
To add 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 to 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 JPDA software. To enable debugging, perform the following tasks.
Click the Configurations tab to see the list of available configurations and select the configuration you need.
Click Java > JVM Settings tab.
Under Debug Java Settings, select the Enable Debug checkbox.
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.