Debugging CEI monitor models (deprecated)
If you find a problem while testing monitor models that use the Common Event Infrastructure (CEI) (deprecated) or if you just want to understand how a monitor model gathers information, use the debugger that is included with the IBM® Business Monitor development toolkit.
About this task
The debugger provides a representation of all of the operations performed on monitor model elements, such as updating metrics, evaluating triggers, starting and stopping stopwatches, and incrementing counters. You can set breakpoints to stop at points of interest. Then you can step through the operations and inspect the current state of a monitoring context instance as it is being updated.
Debugging a monitor model helps you understand the runtime behavior of the monitor model. You can see the order in which steps are processed for each inbound event. You can verify if expressions are being calculated correctly, metrics and key performance indicators (KPIs) are being updated properly, triggers are firing as expected, and events are being received or filtered out as planned. You can examine the evaluation of a complex expression as metrics are updated, or the calculation of KPIs as the underlying metrics are set or changed.
- No values showing up in the dashboard space.
- Maybe the events are not being emitted, or maybe none of the events is satisfying the filter condition to reach a monitoring context.
- Incorrect values being shown in the dashboard space.
- One or more metrics, stopwatches, counters, KPIs, or measures are not being updated properly.
- Outbound events not being sent.
- You can debug the model to see why the events are not being emitted. You can also inspect the content of outbound events before they are emitted to see if they contain all the necessary information and are formatted as you expect.
Even when there are no problems, you might want to step through the operations of a new monitor model in the debugger before it is deployed. You will improve your understanding of how monitor models operate at run time, and you might also uncover problems or detect behavior that you did not expect.
- Navigate to one of the following files:
- WAS_HOME/logs/manageprofiles/PROFILE_NAME_create.log
- WAS_HOME/logs/manageprofiles/PROFILE_NAME_augment.log
- Check to see whether the file contains the isDeveloperServer parameter.
- Navigate to the application_server_root/installableApps.wbm/debugger directory.
- Install the following files:
- com.ibm.wbimonitor.debug.server.application.ear
- com.ibm.wbimonitor.ice.machine.application.ear
- From the WebSphere® Application Server administrative
console, change the starting weight to 100 by completing these steps:
- Click .
- Click IBM_WBM_IVM (which represents the com.ibm.wbimonitor.ice.machine.application.ear file), and then click Startup behavior.
- In the Startup order field, enter 100.
- Save the changes.