Enabling solution monitoring

Run the solutionManager setproperty script to capture warning messages about a solution.

About this task

You must enable the system warningEnabled property to unlock the system monitoring.

Use the properties in the solutionManager script to capture agent and runtime specific warnings. Warnings can be returned in the following cases:
  • An exception is thrown in the agent when processing an event.
  • An agent takes longer than the configured threshold to process an event.
  • The queue for concurrent processing of an entity is getting longer than the configured threshold.
  • The queue of incoming events waiting to be processed is getting longer than the configured threshold.

Procedure

  1. Enable the system warning property:
    propertyManager set warningEnabled=true
    Check the messages.log file and look for the following message: CWMBD0224I: System monitor logging service is enabled.
  2. Enable the solution monitoring property by running the solutionManger setproperty command.
    solutionManager setproperty hello_world_sln warningSolutionWarningEnabled=true 
    Check the messages.log of each runtime server and look for the following message: CWMBD0218I: hello_world_sln:solutionWarning is enabled.
  3. Optional: Edit the default values for specific or all solution warning properties by running the solutionManger setproperty command.
    solutionManager setproperty hello_world_sln warningSolutionWarningMaxSize=500 warningProcessingTimeThreshold=5000 warningIncomingEventQueueThreshold=8000

Results

You get the following warning information in each log entry (LogEntry) in the messages.log file: message, timestamp, warning type (solution), warning level (warning, error), and solution name. For example:
LogEntry [type=solutionWarning, time=1461852351875, localizedMessage=CWMBD0213W: Excessive events for entity with id TRAIN0 and type station.Train is limiting concurrent processing., solutionVersion=Rolling, level=WARNING]
LogEntry [type=solutionWarning, time=1461812177369, localizedMessage=CWMBD0214W: The event queue load for solution PerfTestSolution_JMS has reached an average of 9,207 per server., solutionVersion=PerfTestSolution_JMS, level=WARNING]

What to do next

Use the SystemMonitorMXBean API to retrieve the warning messages captured for each runtime server. For more information, see SystemMonitorMXBean