Sun Java System Web Server 7.0 Administrator's Guide

Configuring Your JVM

To set JVM command-line options in the Administration interface, perform the following tasks:

ProcedureTo Configure Your JVM

  1. Select the Configuration.

    Select the configuration from the configuration list. Click Configuration tab to get a list.

  2. Click on Java > JVM Settings tab.

    Configure the settings for your JVM.

Adding a JVM Option

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


Note –

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).


Adding JVM Profilers

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.

ProcedureTo Add a JVM Profiler

  1. Select the Configuration.

    Select the configuration from the configuration list. Click Configurations tab to get the list of available configuration.

  2. Click Java > JVM Settings tab.

  3. Click New button under Profilers section.

  4. 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.


    Note –

    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).


Enabling Java Debugging for Your Server

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.

ProcedureEnable JVM Debugging

  1. Select the Configuration.

    Select the configuration from the configuration list. Click Configurations tab to get the list of available configuration.

  2. Click Java > JVM Settings tab.

  3. Select Enable Debug checkbox under Debug Java Settings.

  4. 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.