JMX monitoring configuration

The configuration enables definition of the JMX beans and/or attributes to be monitored by inspectIT.

Configuration

JMX configuration is done in the JMX Definition profile type. The sensor definition page offers the AddRemove and Duplicate sensor assignment options. There are three basic configuration parts for each assignment:

Configuration OptionDescription
DomainThe domain of the object name. If the domain includes at least one occurrence of the wildcard characters asterisk (*) or question mark (?), then the object name is a pattern. The asterisk matches any sequence of zero or more characters, while the question mark matches any single character.
Object name properties

The key properties are an unordered set of keys and associated values of the MBean. The same key may not occur twice in a given ObjectName. Each value associated with a key is a string of characters that is either unquoted or quoted. An unquoted value is a possibly empty string of characters which may not contain any of the characters comma, equals, colon, or quote. If the unquoted value contains at least one occurrence of the wildcard characters asterisk or question mark, then the object name is a property value pattern. The asterisk matches any sequence of zero or more characters, while the question mark matches any single character.

AttributesOne of more names of the attributes of the MBean to monitor. The option to monitor all attributes is available.

Examples

JMX ConfigurationDescription

Monitors the Count attribute of the MBean represented by the object name java.nio:type=BufferPool,name=direct.

Monitors the UsageThresholdExceeded and CollectionUsageThresholdExceeded attributes of any bean that belongs to the java.lang domain and is of type MemoryPool. This will monitor beans with any name, thus for example:

  • java.lang:type=MemoryPool,name=CMS Old Gen
  • java.lang:type=MemoryPool,name=Code Cache
  • java.lang:type=MemoryPool,name=Par Eden Space
  • etc

 

Monitor all beans which domain starts with java and which have type and name properties defined. Monitors all attributes.