Skip navigation.

User Guide

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

Using the BEA JRockit Management Console

To help you navigate in the Management Console, there are several information tabs (the number of tabs depends on which mode of operation you are using, see Developer Mode). You can also customize the display to fit your personal preferences. This section contains information on the following subjects:

 


Viewing Summary Information

The Overview tab (Figure 6-1) shows an summary of selected connections. To select more than one connection, select the folder containing the connections you want to view. They will appear simultaneously. The page is divided into a "dashboard" with gauges in the upper part and graphs in the lower part.

Note: The figure shows the Overview tab when the console is connected to JRockit, see Creating a New Connection.

Figure 6-1 Overview Tab

 Overview Tab


 

 


Customizing the Displays

You can customize the console and change the way some of the monitoring data is displayed, as described in the following sections:

Customizing Gauges and Bars

The gauges and bars are graphical devices showing memory and processor usage (Figure 6-2).

Figure 6-2 Gauges and Bars

 Gauges and Bars


 

Customizing Graphs

Graphs appear on the Management Console to show specified information about BEA JRockit.

Changing Graph Attributes

  1. Right-click on a graph and select Edit Attributes. The Edit Graph Attributes window appears (see Figure 6-4).
  2. In this window, you can do the following:

  3. Close the window when you are done with the settings.

If you have trouble seeing all attributes on a graph, try to rescale the attribute in the Edit Graph Attribute window.

 


Monitoring Memory Usage

The Memory tab (Figure 6-5) shows information about the memory status of the system, as shown.

Figure 6-5 Memory Tab

 Memory Tab


 

At the bottom of the page the following text information is displayed (in kilobytes):

Memory Tab Functionality

You can manipulate certain memory aspects of the JVM from the Memory Tab. These aspects are described in Table 6-1.

Table 6-1 Memory Tab Functionality

Function

Procedure

Manipulating the heap size

You can manipulate the heap size in any of the following ways:

  • Reset the size of your heap by entering a numeric value in the New heap size field and click Change heap size. The size set here, expressed in megabytes, represents the current heap size, not the maximum heap size.

  • Make the current size the maximum heap size by selecting lock heapsize.

Please refer to Setting the Heap Size for heap size requirements.

Exiting on out of memory errors

If you want to exit the JVM when JRockit encounters an Out of memory (OOM) error, select Exit on OOM.

Changing the nursery size

If you are running a generational garbage collector, you can reset the nursery size by typing a new value in New nursery size and click Suggest nursery size. This action is not setting the nursery size to exactly the size you specify, it only tries to get as close as possible to the value.

Note: If you are not running a generational collector, these fields are disabled.

Please refer to Setting the Size of the Nursery for nursery size requirements.

 


Monitoring Running Processes

The Processor tab (Figure 6-6) shows information about the running processor status of the system.

Figure 6-6 Processor Tab

 Processor Tab


 

 


Viewing Information about JRockit

The System tab (Figure 6-7) shows various information about the system status.

Figure 6-7 System Tab

 System Tab


 

 


Viewing and Creating Custom Alerts and Notifications

The Notification tab (Figure 6-8) lists all available rules for the alerts that you have created; the active rules for the specific connection are listed under Active rules for this connection (the right pane). When you start using the Management Console, the list of available rules is empty. When you exit the Management Console, the rules that you have created are saved in the console settings file (see Console Settings File). You create your own notification rules by combining an attribute subscription with a trigger, with optional constraints. The trigger alerts you with a prescribed notification (see Creating a New Rule) as soon as the rule option is met.

Figure 6-8 Notification Tab (Rules Defined)

 Notification Tab (Rules Defined)


 

You can programatically create custom notification actions and constraints, which are also stored in the console settings file. Once added, these actions and constraints will also appear on the Notification tab of the Management Console. This document does not cover how to do that.

About Notification Triggers

A notification trigger can be a certain event, for example, that the connection to BEA JRockit JVM was lost, or that an attribute reaches a certain value, for example, the used memory reaches 90%. A notification constraint can limit when a rule is triggered; for example, by not sending alerts at night or on certain dates.

The notification action is how the alert is communicated to the user. It can be one of the following:

Creating a New Rule

  1. Select the Notification tab.
  2. Click New.
  3. The Name your rule dialog appears (Figure 6-9):

    Figure 6-9 Name Your Rule Dialog

     Name Your Rule Dialog


     
  4. Type in a name for the rule and click Next. Try to make the name as descriptive as possible, that way you will have an easier time when remembering how the rule works.
  5. The Select attribute subscription trigger dialog appears (Figure 6-10):

    Figure 6-10 Select Trigger Dialog

     Select Trigger Dialog


     
  6. Select a trigger (the individual triggers are described to the right in the window).
  7. Enter a threshold in Max value below the trigger list (not required for all triggers).
  8. Set a trigger flank:
  9. Click Next.
  10. The Select action dialog appears (Figure 6-11):

    Figure 6-11 Select Action Dialog

     Select Action Dialog


     
  11. Select an action and enter settings data, if required.
  12. In this example, you need to set the name of the JRA file, how long the recording should last, and the different sample statistics.

    Now you have two choices:

    1. decide that you rule is done, continue with step 12. in Creating a New Rule, or
    2. decide that you need to add a constraint to your rule. Continue with step 9. in Creating a New Rule.
  13. Click Next.
  14. The Select constraint(s) dialog appears (Figure 6-12):

    Figure 6-12 Select Constraint Dialog

     Select Constraint Dialog


     
  15. Select a constraint and click Add.
  16. The constraint name will appear in the Active Constraints list.

  17. Enter the specific constraint setting.
  18. By selecting a date, day, or time, the event is only triggered on that specific date, day, or time.

  19. Click Finish.
  20. The new rule appears in the All available rules list on the Notification tab, as shown in Figure 6-8. If you want to use the rule for your connection, add it as described in Using a Rule to Monitor a Connection.

Creating Your Own Notification Actions and Constraints

You can create your own notification actions and constraints that you can use for your rules, see Adding Custom Notification Actions and Constraints for more information on how to do that.

Editing a Rule

  1. In the All available rules list, select the rule to be edited and click Edit.

Using a Rule to Monitor a Connection

  1. Select the rule, in the Available rules list.
  2. Click Add to Connection.
  3. The rule appears in the Active rules for this connection list, as shown in Figure 6-13.

    Figure 6-13 Rule Added to Active rules for This Connection List

     Rule Added to Active rules for This Connection List


     

Viewing a Notification Alert

  1. Click View > Notification Alert.
  2. A Notification Alerts window appears (see Figure 6-14 for an example of an alert that was sent to the application):

    Figure 6-14 Notification Alert Sent to Application

     Notification Alert Sent to Application


     
  3. Select the notification, from the bottom half of the Notification Alerts window, you want to view.
  4. In the Notification Alerts window you can view how the notification was triggered, when, for how long the condition was met, etc.

  5. Click Close to close the window or Remove if you want to delete the selected alert.

Note: The application alerts are not saved when you exit the Management Console.

Removing a Rule from a Connection

  1. Select the rule, in the Active rules for this connection list, you want to stop using.
  2. Click Remove from Connection.
  3. The rule now only appears in the Active rules for this connection list.

Removing a Rule from the Available Rules List

  1. Select the rule to be removed from the All available rules list.
  2. Click Remove.
  3. A removal confirmation dialog box appears.

  4. Click Yes.
  5. The rule disappears from the All available rules list.

 


Getting Method Profiling Data

The Method Profiler tab (see Figure 6-15) contains templates that allows you to monitor method execution in a non-intrusive way. Method profiling can provide information about the average time spent in selected methods and the number of times methods are invoked. A template is a collection of different monitoring methods (the Management Console is shipped with a Demo Template). The template settings are stored in the console settings file (see Console Settings File) and can be used with all connections.

Figure 6-15 Method Profiler tab

 Method Profiler tab


 

By creating your own method templates, you get a powerful tool to monitor you running application's methods and find out where in the code you might have glitches.

Starting and Stopping a Method Profiling Template

  1. From the Select template list, select the template you want to start.
  2. If you have not created a template yet, you can start the template called Demo Template.

  3. Click Start or Stop.
  4. The numbers in the Invocation count cells for each method begin to increment as method calls are made. If you select Stop, this activity will cease.

Creating a New Method Profiling Template

  1. Click New template.
  2. The New template dialog box appears (Figure 6-16).

    Figure 6-16 New Template Dialog Box

     New Template Dialog Box


     
  3. Type in a name for the new template in the text field.
  4. Click OK.
  5. You can now add methods to your own template.

Removing a Method Profiling Template

  1. Select the template you wish to remove.
  2. Click Remove.
  3. A confirmation dialog box appears.

  4. Click Yes.

Adding a Method to a Template

  1. Select the template you wish to add methods to from the Select template list.
  2. Click Add Method.
  3. The Enter class name dialog appears (Figure 6-17).

    Figure 6-17 Enter Class Name Dialog

     Enter Class Name Dialog


     
  4. Enter a fully qualified class name, for example, java.lang.Object in the text field and click Next.
  5. The Select method dialog appears (Figure 6-18):

    Figure 6-18 Select Method Dialog

     Select Method Dialog


     
  6. Select the methods to be added to the template and click Finish.
  7. The method name will appear in the Method list for that template, as shown in Figure 6-19.

    Figure 6-19 Method Profiling Information List with Method Added

     Method Profiling Information List with Method Added


     

Removing a Method from a Template

  1. From the Select template list, select the template you want to modify.
  2. From the Method list, select the method(s) to be removed from the template.
  3. Click Remove Method(s).

Method Profiling Settings

You can switch between using qualified method names or short names in the method profiling table.

 


Counting Exceptions in BEA JRockit

The Exception Count tab (Figure 6-20) shows exceptions thrown in BEA JRockit JVM. It counts the number of exceptions of a certain type. This information is helpful when you are troubleshooting your Java application.

Figure 6-20 Exception Counting Tab

 Exception Counting Tab


 

Adding an Exception

  1. Enter the fully qualified name of the exception into the text field at the top of the page, e.g., "java.io.IOException".
  2. Choose whether or not all subclasses of that exception should be included in the count by selecting or deselecting the Include all subclasses checkbox.
  3. Click Add. You can only add subclasses of java.lang.Throwable which are loaded in BEA JRockit JVM and you can only add exceptions while connected.

The exception should now be displayed in the table.

Starting, Stopping, and Removing an Exception Count

 

Skip navigation bar  Back to Top Previous Next