Sun Java System Web Server 7.0 Update 7 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. Click the Configuration tab and select the configuration from the configuration list.

  2. Click Java > JVM Settings tab.

    Configure the settings for your JVM.

Adding a JVM Option

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


Note –

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


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. Click Configurations tab to see the list of available configurations and select the configuration you need.

  2. Click Java > JVM Settings tab.

  3. Under the Profilers section, click New.

  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

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


Enabling Java Debugging for Your Server

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.

ProcedureEnable JVM Debugging

  1. Click the Configurations tab to see the list of available configurations and select the configuration you need.

  2. Click Java > JVM Settings tab.

  3. Under Debug Java Settings, select the Enable Debug checkbox.

  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.