Skip navigation.

User Guide

  Previous Next vertical dots separating previous/next from contents/index/pdf Contents Index View as PDF   Get Adobe Reader

Using Advanced Features of the Management Console

This section describes the more advanced features of the Management Console. Some of these are only available when running in the Developer mode, described in Mode of Operation.

This section is divided into the following topics:

 


Historical Data

The historical data window displays a chart where historical data for an attribute subscription can be viewed. This is useful for observing trends over time and, for example, finding when a server running with BEA JRockit JVM has its peak loads.

Viewing Historical Data

  1. Select the connection for which you want to view historical data.
  2. Click View > View Historical Data.
  3. The Historical Data Chart appears (see Figure 7-1).

    Figure 7-1 Historical Data Chart

     Historical Data Chart


     
  4. Right-click on the Historical Data graph.
  5. The Edit Graph Attributes window appears.

  6. Add an attribute subscription to the Historical Data Graph (see Customizing Graphs for information on how to change the graph.
  7. Set a start date and start time for when you want to view the data.
  8. Select a viewing range.
  9. Scroll, using the arrow buttons below the graph, to find the time period of interest.

 


Thread Stack Dump

The thread stack dump contains a list of all running threads in BEA JRockit JVM with a method call stack trace for each thread.

Viewing the Thread Stack Dump

  1. Click Tools > View Thread Stack Dump.
  2. The Thread Stack Dump window appears (see Figure 7-2).

    Figure 7-2 Thread Stack Dump

     Thread Stack Dump


     
  3. Click Copy to Clipboard if you want to paste the stack dump info into; for example, MSNotepad.
  4. Click OK to close the file.

 


Starting and Running the Console in Headless Mode

You can run the Management Console, its notification subsystem, and the user actions without using a GUI. This function is referred to running the console in a "headless" mode and can greatly reduce the amount of system overhead required to run BEA JRockit.

Look into the information on:

Running a Headless Management Console

To run the Console in the headless mode, start the console as you normally would (see Start the BEA JRockit Management Console for details) but add the -headless command-line option; for example:

java -jar ManagementConsole.jar -headless

You can control the console's behavior by using the command-line options described in Table 7-1.

As it runs, the JVM statistics normally associated with the Management Console can be written to file. The file to which statistics are written will be automatically created, but only if you choose to save, or "persist" data. It will be created in a directory of your choosing.

You can control which JVM statistics are persisted by specifying them in an XML settings file. The settings file is also created automatically, when you exit the application when it is running in GUI mode. By default, it will be created in the <user_home>/.ManagementConsole directory. You can specify another file at another location by using the -settings command-line option.

Controlling the Console with Command Line Options

You can use one of the command line options listed in Table 7-1to control the behavior of the headless Management Console.

Note: These options are not specific to running the Console in the headless mode; they are also valid when running it with a GUI.

Table 7-1 Headless Management Console Command-line Options

Option

Description

-headless

Starts the console in the headless mode (won't load GUI related classes).

-settings <settings file>

Starts the console using the specified settings file. If you are starting in the GUI mode and this file doesn't exist, it will be created when you close the application.

-connectall

Makes all connections available in the settings file (that is, previously added by using the GUI).

-connect <connection 1> <connection 2> <...>

Connects to the named connections available in the settings file previously added by using the GUI.

-autoconnect

Automatically connects to any JVM running the management server with JDP turned on.

-uptime <time in seconds>

Runs the Console for the specified amount of time, and then automatically shut it down.

-useraction <name> <delay in seconds> <period (optional)>

Runs the named user action after the specified delay. If no period has been specified, the action will be run once. If the period has been specified it will be run every <period (optional)> seconds.

-version

Prints the version of the ManagementConsole and then exits.

For example:

java -jar ManagementConsole.jar -headless -settings
C:\Headless\consolesettings.xml -connectall -autoconnect -uptime 3600
-useraction ctrlbreak 30 60

This example:

All notification rules that have been previously added to specific connections will be active.

 


JRA Recordings

The BEA JRockit Runtime Analyzer (JRA) is an internal tool used by the BEA JRockit development team to analyze runtime performance of BEA JRockit and Java applications running on it. This tool provides information on internals in BEA JRockit that are useful to the development team and BEA JRockit in general.

One part of the JRA runs inside the JVM, recording information about it and the Java application currently running. You start the recording in the Management Console and view the recorded result in the JRA. For information on how to use the JRA, see Using the BEA JRockit Runtime Analyzer.

Creating a JRA Recording

  1. Click Plugins > Start JRA Recording.
  2. The JRA Recording dialog appears (Figure 7-3).

    Figure 7-3 JRA Recording Dialog

     JRA Recording Dialog


     
  3. Type a descriptive name for the recording in the File name field. This is the name by which the file is saved.
  4. Type in the duration of the recording.
  5. Select the type(s) of recording you want.
  6. Click Start recording.
  7. The JRA Recording Progress box appears (Figure 7-4).

    Figure 7-4 JRA Recording Progress Box

     JRA Recording Progress Box


     
  8. When the recording is complete, click Done.
  9. You can cancel the recording at any time by clicking Abort.

 

Skip navigation bar  Back to Top Previous Next