Bug 534810 (RHQ-1570)

Summary: add init/max traits and committed metrics to the VM memory services
Product: [Other] RHQ Project Reporter: John Mazzitelli <mazz>
Component: PluginsAssignee: John Mazzitelli <mazz>
Status: CLOSED NEXTRELEASE QA Contact: Jeff Weiss <jweiss>
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: dajohnso
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: All   
OS: All   
URL: http://jira.rhq-project.org/browse/RHQ-1570
Whiteboard:
Fixed In Version: 1.2 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description John Mazzitelli 2009-02-13 17:46:00 UTC

Comment 1 John Mazzitelli 2009-03-06 20:48:23 UTC
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"


Comment 2 Jeff Weiss 2009-03-06 20:54:38 UTC
The traits in the file above show up in the UI and the values look sane. rev3238

Comment 3 Red Hat Bugzilla 2009-11-10 20:35:51 UTC
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-1570