the following was added to the plugin descriptor - I added some traits and metrics for heap/non-heap memory data: Modified: rhq/trunk/modules/plugins/jmx/src/main/resources/META-INF/rhq-plugin.xml (3048 => 3049) --- rhq/trunk/modules/plugins/jmx/src/main/resources/META-INF/rhq-plugin.xml 2009-02-13 14:48:02 UTC (rev 3048) +++ rhq/trunk/modules/plugins/jmx/src/main/resources/META-INF/rhq-plugin.xml 2009-02-13 17:46:58 UTC (rev 3049) @@ -201,14 +201,49 @@ displayType="summary" description="Current heap memory usage" units="bytes"/> + <metric displayName="Heap Committed" + property="{HeapMemoryUsage.committed}" + displayType="summary" + description="Current heap memory allocated. This amount of memory is guaranteed for the Java virtual machine to use" + units="bytes"/> <metric displayName="Non-Heap Usage" property="{NonHeapMemoryUsage.used}" displayType="summary" description="Current memory usage outside the heap" units="bytes"/> + <metric displayName="Non-Heap Committed" + property="{NonHeapMemoryUsage.committed}" + displayType="summary" + description="Current memory allocated outside the heap. This amount of memory is guaranteed for the Java virtual machine to use" + units="bytes"/> <metric displayName="Objects Pending Finalization" property="ObjectPendingFinalizationCount" description="The approximate number of objects for which finalization is pending."/> + <metric displayName="Heap Initial Size" + property="{HeapMemoryUsage.init}" + displayType="summary" + dataType="trait" + description="The amount of heap that the Java virtual machine initially requests from the operating system" + units="bytes"/> + <metric displayName="Heap Maximum Size" + property="{HeapMemoryUsage.max}" + displayType="summary" + dataType="trait" + description="Maximum 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." + units="bytes"/> + <metric displayName="Non-Heap Initial Size" + property="{NonHeapMemoryUsage.init}" + displayType="summary" + dataType="trait" + description="The amount of non-heap memory that the Java virtual machine initially requests from the operating system" + units="bytes"/> + <metric displayName="Non-Heap Maximum Size" + property="{NonHeapMemoryUsage.max}" + displayType="summary" + dataType="trait" + description="Maximum 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." + units="bytes"/> + <resource-configuration> <c:simple-property name="Verbose" type="boolean" description="Output 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."/> @@ -234,6 +269,18 @@ displayType="summary" description="Current memory allocated" units="bytes"/> + <metric displayName="Initial Size" + property="{Usage.init}" + displayType="summary" + dataType="trait" + description="The amount of memory that the Java virtual machine initially requests from the operating system" + units="bytes"/> + <metric displayName="Maximum Size" + property="{Usage.max}" + displayType="summary" + dataType="trait" + description="Maximum 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." + units="bytes"/> <metric property="MemoryManagerNames" displayType="summary" dataType="trait"
The traits in the file above show up in the UI and the values look sane. rev3238
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-1570