Red Hat Training

A Red Hat training course is available for Red Hat JBoss Operations Network

3.8. JMX - Server

Overview

Table 3.4164. Overview

Description:Generic JMX Server
Singleton: no
Plugin:JMX

Note

In order to monitor your Java applications via JMX, you need to expose their MBeans to remote JMX clients. In order to do this, you must pass in some system properties when starting your application's Java virtual machine. To run a JVM with JMX remoting enabled without authentication, you must pass in the following system properties: * -Dcom.sun.management.jmxremote.port=19988 * -Dcom.sun.management.jmxremote.ssl=false * -Dcom.sun.management.jmxremote.authenticate=false You can require your remote JMX endpoint to demand authentication for clients to be able to connect to it. To run a JVM with JMX remoting enabled with password authentication: * -Dcom.sun.management.jmxremote.port=19988 * -Dcom.sun.management.jmxremote.ssl=false * -Dcom.sun.management.jmxremote.authenticate=true * -Dcom.sun.management.jmxremote.password.file=/some/directory/jmxremote.password Note that "jmxremote.password" must be read-only. On Windows, you must use "cacls" command to do this: {code}cacls /some/directory/jmxremote.password /P username:R{code} A password file template is located at $JRE_HOME/lib/management/jmxremote.password.template. There is also an auth file that you can use to define other roles. For more information on setting this up and setting up SSL, see [Monitoring and Management Using JMX|http://java.sun.com/j2se/1.5.0/docs/guide/management/agent.html]. If you wish to expose your JBossAS 4 application server's MBeans over this remote JMX mechanism, you must pass in these extra properties, in addition to the properties specified above: * -Djboss.platform.mbeanserver * -Djavax.management.builder.initial=org.jboss.system.server.jmx.MBeanServerBuilderImpl

Child Resource Types

Autodiscovery Process Scans

Table 3.4165. Metrics

NameQuery
javaprocess|basename|match=^java.*

Connection Properties

Table 3.4166. 

NameDescriptionRequiredInternal Name
TypeThe EMS connection type for this JMX Server yes type
Connector AddressThe connection url in the form of a JMXServiceURL - this should only be set if the JVM has JMX Remoting enabled no connectorAddress
Install URIThe installation path for the selected server type which will be used to find client libraries (if appropriate) no installURI
PrincipalThe login principal/username no principal
CredentialsThe login credentials/password no credentials
Additional Class Path EntriesComma-separated list of directories and filenames that contain resources and classes needed to communicate with the JMX Server and its MBeans. If you specify 'some/directory/*.jar', all jars found in the given directory will be added. no additionalClassPathEntries
Command Linethe command line of the JVM at the time it was discovered - only used by JVMs with type Local; if the command line of the JVM changes, this property's value will need to be updated accordingly in order for RHQ to connect to the JVM no commandLine

Note

You must use the internal name to reference Configuration Properties in Dynamic Group Definition expressions.

Metrics

none

Configuration Properties

none

Operations

none

Package Types

none

3.8.1. JMX - Operating System Service

Overview

Table 3.4167. Overview

Description: 
Singleton: yes
Plugin:JMX

Child Resource Types

none

Connection Properties

Table 3.4168. 

NameDescriptionRequiredInternal Name
Object Name  yes objectName
Name Template  yes nameTemplate
Description Template  yes descriptionTemplate

Note

You must use the internal name to reference Configuration Properties in Dynamic Group Definition expressions.

Metrics

Table 3.4169. Metrics

NameTypeDescriptionInternal Name
Free Physical MemorymeasurementThe amount of free physical memory for the OSFreePhysicalMemorySize
Free Swap MemorymeasurementThe amount of free swap space for the OSFreeSwapSpaceSize
Process CPU TimemeasurementThe cpu time used by this processProcessCpuTime
Process CPU Time per MinutemeasurementThe cpu time used by this processProcessCpuTime
Committed Virtual MemorymeasurementSize of virtual memory used by this processCommittedVirtualMemorySize
Open FilesmeasurementThe number of files opened by this process. Note that this metric is not supported on Windows.OpenFileDescriptorCount

Note

You must use the internal name to reference Traits in Dynamic Group Definition expressions.

Configuration Properties

none

Operations

none

Package Types

none

3.8.2. JMX - Threading Service

Overview

Table 3.4170. Overview

Description:Information on threading in the VM
Singleton: yes
Plugin:JMX

Child Resource Types

none

Connection Properties

Table 3.4171. 

NameDescriptionRequiredInternal Name
Object Name  yes objectName
Name Template  yes nameTemplate

Note

You must use the internal name to reference Configuration Properties in Dynamic Group Definition expressions.

Metrics

Table 3.4172. Metrics

NameTypeDescriptionInternal Name
Thread CountmeasurementNumber of active threads in the systemThreadCount
Peak Thread CountmeasurementPeak count of active threads in the systemPeakThreadCount
Total Started Thread CountmeasurementCount of threads started since system startTotalStartedThreadCount
Daemon Thread CountmeasurementCount of threads marked as daemons in the systemDaemonThreadCount
Suspended Thread CountmeasurementCount of suspended threadsSuspendedThreadCount
Deadlocked Thread CountmeasurementCount of threads that are deadlocked waiting to acquire object monitors. This is a CPU-time consuming metric.DeadLockedThreadCount

Note

You must use the internal name to reference Traits in Dynamic Group Definition expressions.

Configuration Properties

Table 3.4173. 

NameDescriptionRequiredInternal Name
Thread Contention Monitoring Enabled  yes ThreadContentionMonitoringEnabled
Thread Cpu Time Enabled  yes ThreadCpuTimeEnabled

Note

You must use the internal name to reference Configuration Properties in Dynamic Group Definition expressions.

Operations

Table 3.4174. Metrics

NameDescription
Reset Peak Thread MetricsReset the peak number of threads
Find Monitor Deadlocked ThreadsFinds cycles of threads that are in deadlock waiting to acquire object monitors
Thread DumpReturns a summary of all live threads, including both daemon and non-daemon threads

Package Types

none

3.8.3. JMX - VM Memory System Service

Overview

Table 3.4175. Overview

Description:The memory system of the Java virtual machine including both the heap and non-heap memory.
Singleton: yes
Plugin:JMX

Child Resource Types

Connection Properties

Table 3.4176. 

NameDescriptionRequiredInternal Name
Object Name  yes objectName
Name Template  yes nameTemplate

Note

You must use the internal name to reference Configuration Properties in Dynamic Group Definition expressions.

Metrics

Table 3.4177. Metrics

NameTypeDescriptionInternal Name
Heap UsagemeasurementCurrent heap memory usage{HeapMemoryUsage.used}
Heap Usage PercentagemeasurementCurrent heap memory usage as percentage of committed heapCalculated.HeapUsagePercentage
Heap CommittedmeasurementCurrent heap memory allocated. This amount of memory is guaranteed for the Java virtual machine to use{HeapMemoryUsage.committed}
Non-Heap UsagemeasurementCurrent memory usage outside the heap{NonHeapMemoryUsage.used}
Non-Heap CommittedmeasurementCurrent memory allocated outside the heap. This amount of memory is guaranteed for the Java virtual machine to use{NonHeapMemoryUsage.committed}
Objects Pending FinalizationmeasurementThe approximate number of objects for which finalization is pending.ObjectPendingFinalizationCount
Heap Initial SizetraitThe amount of heap that the Java virtual machine initially requests from the operating system{HeapMemoryUsage.init}
Heap Maximum SizetraitMaximum amount of heap that can be used for memory management. This amount of memory is not guaranteed to be available if it is greater than the amount of committed memory. The Java virtual machine may fail to allocate memory even if the amount of used memory does not exceed this maximum size.{HeapMemoryUsage.max}
Non-Heap Initial SizetraitThe amount of non-heap memory that the Java virtual machine initially requests from the operating system{NonHeapMemoryUsage.init}
Non-Heap Maximum SizetraitMaximum amount of non-heap memory that can be used for memory management. This amount of memory is not guaranteed to be available if it is greater than the amount of committed memory. The Java virtual machine may fail to allocate memory even if the amount of used memory does not exceed this maximum size.{NonHeapMemoryUsage.max}

Note

You must use the internal name to reference Traits in Dynamic Group Definition expressions.

Configuration Properties

Table 3.4178. 

NameDescriptionRequiredInternal Name
VerboseOutput verbose information to the output stream to regarding Memory. Typically, a Java virtual machine implementation prints a message when it frees memory through garbage collection. yes Verbose

Note

You must use the internal name to reference Configuration Properties in Dynamic Group Definition expressions.

Operations

Table 3.4179. Metrics

NameDescription
Run Garbage CollectionRuns the garbage collector.

Package Types

none

3.8.3.1. JMX - Memory Pool Service

Overview

Table 3.4180. Overview

Description:A memory pool represents the memory resource managed by the Java virtual machine and is managed by one or more memory managers.
Singleton: no
Plugin:JMX
Child Resource Types
none
Connection Properties

Table 3.4181. 

NameDescriptionRequiredInternal Name
Object Name  yes objectName
Name Template  yes nameTemplate
Description Template  yes descriptionTemplate
NameThe memory pool's name yes name

Note

You must use the internal name to reference Configuration Properties in Dynamic Group Definition expressions.
Metrics

Table 3.4182. Metrics

NameTypeDescriptionInternal Name
UsedmeasurementCurrent memory usage{Usage.used}
CommittedmeasurementCurrent memory allocated{Usage.committed}
Initial SizetraitThe amount of memory that the Java virtual machine initially requests from the operating system{Usage.init}
Maximum SizetraitMaximum amount of memory that can be used for memory management. This amount of memory is not guaranteed to be available if it is greater than the amount of committed memory. The Java virtual machine may fail to allocate memory even if the amount of used memory does not exceed this maximum size.{Usage.max}
Memory Manager NamestraitGarbage collectors for this spaceMemoryManagerNames
TypetraitPool locationType

Note

You must use the internal name to reference Traits in Dynamic Group Definition expressions.
Configuration Properties
none
Operations
none
Package Types
none

3.8.3.2. JMX - Garbage Collector Service

Overview

Table 3.4183. Overview

Description:A garbage collector that collects one or more memory pool.
Singleton: no
Plugin:JMX
Child Resource Types
none
Connection Properties

Table 3.4184. 

NameDescriptionRequiredInternal Name
Object Name  yes objectName
Name Template  yes nameTemplate
Description Template  yes descriptionTemplate
NameThe garbage collector's name yes name

Note

You must use the internal name to reference Configuration Properties in Dynamic Group Definition expressions.
Metrics

Table 3.4185. Metrics

NameTypeDescriptionInternal Name
Collection CountmeasurementNumber of collectionsCollectionCount
Collection Count per MinutemeasurementNumber of collectionsCollectionCount
Collection TimemeasurementThe amount of time spent in collectionCollectionTime
Collection Time per MinutemeasurementThe amount of time spent in collectionCollectionTime
Memory Pool NamestraitThe names of the memory pools used by this type of garbage collectorMemoryPoolNames

Note

You must use the internal name to reference Traits in Dynamic Group Definition expressions.
Configuration Properties
none
Operations
none
Package Types
none

3.8.4. JMX - VM Compilation System Service

Overview

Table 3.4186. Overview

Description:The compilation system of the Java virtual machine
Singleton: yes
Plugin:JMX

Child Resource Types

none

Connection Properties

Table 3.4187. 

NameDescriptionRequiredInternal Name
Object Name  yes objectName
Name Template  yes nameTemplate

Note

You must use the internal name to reference Configuration Properties in Dynamic Group Definition expressions.

Metrics

Table 3.4188. Metrics

NameTypeDescriptionInternal Name
Total Compilation TimemeasurementThe approximate accumulated elapsed time spent in compilationTotalCompilationTime

Note

You must use the internal name to reference Traits in Dynamic Group Definition expressions.

Configuration Properties

none

Operations

none

Package Types

none

3.8.5. JMX - VM Class Loading System Service

Overview

Table 3.4189. Overview

Description:The class loading system of the Java virtual machine
Singleton: yes
Plugin:JMX

Child Resource Types

none

Connection Properties

Table 3.4190. 

NameDescriptionRequiredInternal Name
Object Name  yes objectName
Name Template  yes nameTemplate

Note

You must use the internal name to reference Configuration Properties in Dynamic Group Definition expressions.

Metrics

Table 3.4191. Metrics

NameTypeDescriptionInternal Name
Loaded ClassesmeasurementThe number of classes currently loaded in the VMLoadedClassCount
Total Classes LoadedmeasurementThe total number of classes loaded since the start of the VMTotalLoadedClassCount
Total Classes Loaded per MinutemeasurementThe total number of classes loaded since the start of the VMTotalLoadedClassCount
Unloaded ClassesmeasurementThe total number of classes unloaded since the start of the VMUnloadedClassCount
Unloaded Classes per MinutemeasurementThe total number of classes unloaded since the start of the VMUnloadedClassCount

Note

You must use the internal name to reference Traits in Dynamic Group Definition expressions.

Configuration Properties

Table 3.4192. 

NameDescriptionRequiredInternal Name
VerboseOutput verbose information to the output stream to regarding class loading. Typically, a Java virtual machine implementation prints a message each time a class file is loaded. yes Verbose

Note

You must use the internal name to reference Configuration Properties in Dynamic Group Definition expressions.

Operations

none

Package Types

none

3.8.6. JMX - java.util.logging Service

Overview

Table 3.4193. Overview

Description:Logging control for the java.util.logging subsystem
Singleton: yes
Plugin:JMX

Child Resource Types

none

Connection Properties

Table 3.4194. 

NameDescriptionRequiredInternal Name
Object Name  yes objectName
Name Template  yes nameTemplate
Config Management EnabledWhen false, configuration reading for this resource will fail. yes configManagementEnabled

Note

You must use the internal name to reference Configuration Properties in Dynamic Group Definition expressions.

Metrics

none

Configuration Properties

Table 3.4195. 

NameDescriptionRequiredInternal Name
Appender List  yes AppenderList

Note

You must use the internal name to reference Configuration Properties in Dynamic Group Definition expressions.

Operations

none

Package Types

none