Bug 534810 (RHQ-1570) - add init/max traits and committed metrics to the VM memory services
Summary: add init/max traits and committed metrics to the VM memory services
Keywords:
Status: CLOSED NEXTRELEASE
Alias: RHQ-1570
Product: RHQ Project
Classification: Other
Component: Plugins
Version: unspecified
Hardware: All
OS: All
medium
medium
Target Milestone: ---
: ---
Assignee: John Mazzitelli
QA Contact: Jeff Weiss
URL: http://jira.rhq-project.org/browse/RH...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-02-13 17:46 UTC by John Mazzitelli
Modified: 2014-11-09 22:48 UTC (History)
1 user (show)

Fixed In Version: 1.2
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

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



Note You need to log in before you can comment on or make changes to this bug.