8 Replies Latest reply on Aug 2, 2010 6:19 AM by ssroy73

    Incorrect Max Heap displayed

    ssroy73

      Hi,

       

      We have set MAX heap of 256M in Jboss. The same is visible in JBoss JMX-Console also. But when I look at the same value from RHQ, it shows me zero. I have attached snapshot of both. The same happens to 'Total Memory' as well.

       

      Any hint will be greatly appreciated.

       

      Thanks a lot.

       

      Best Regards,

       

      Roy

        • 1. Re: Incorrect Max Heap displayed
          ssroy73

          Noticed few exceptions in agent.log. PSA the same.

           

          Thanks a lot.

           

          Rgds - Roy

          • 2. Re: Incorrect Max Heap displayed
            mazz

            Is that metric disabled? What's the collection interval if its enabled? Did you wait long enough for that collection interval to expire before checking the metric value?

             

            Go to the Measure>Schedules subtab to check these things.

            • 3. Re: Incorrect Max Heap displayed
              ssroy73

              Hi John,

               

              Thanks for reply.

               

              These metrics are enabled and I had changed the collection interval at 30s. I waited for long time but its still same.

               

              Its showing value for 'FreeMemory' but this is not matching with the value I can see from jmx-console. But 'ActiveThreadGroupCount' shows same both in jmx-console and RHQ.

               

               

              Rgds - Roy

              • 4. Re: Incorrect Max Heap displayed
                ssroy73

                Hi John,

                 

                What could be the reason for following highlighted errors.

                 

                Environments Used:

                 

                JBoss: 4.2.3

                Apache: 2.2.15

                RHQ: 3

                OS: Ubuntu

                 

                2010-07-30 11:44:56,979 INFO  [MeasurementManager.collector-1] (rhq.core.pc.measurement.MeasurementCollectorRunner)- [PERF] Collection of measurements for [org.rhq.plugins.jbossas.JBossASTomcatConnectorComponent@56d071] took [5799ms] 2010-07-30 11:44:57,597 ERROR [ResourceContainer.invoker.daemon-1] (org.rhq.plugins.apache.ApacheServerComponent)- An error occurred while attempting to collect an SNMP metric.
                org.rhq.plugins.www.snmp.SNMPException: Error occurred while retrieving column applInboundAssociations(1.3.6.1.2.1.27.1.1.8): Request timed out.
                at org.rhq.plugins.www.snmp.SNMPSession_v1.getColumn(SNMPSession_v1.java:136)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:597)
                at org.rhq.plugins.www.snmp.SNMPSessionCache.invoke(SNMPSessionCache.java:145)
                at $Proxy56.getColumn(Unknown Source)
                at org.rhq.plugins.apache.ApacheServerComponent.getValues(ApacheServerComponent.java:271)
                at sun.reflect.GeneratedMethodAccessor58.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:597)
                at org.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread.call(ResourceContainer.java:525)
                at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
                at java.util.concurrent.FutureTask.run(FutureTask.java:138)
                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
                at java.lang.Thread.run(Thread.java:619)
                2010-07-30 11:45:00,526 WARN  [MeasurementManager.collector-1] (rhq.core.pc.measurement.MeasurementCollectorRunner)- Failure to collect measurement data for Resource[id=10062, type=Apache Virtual Host, key=ssroy.pvb.corp.investec.com:9090|ssroy.pvb.corp.investec.com:9090, name=ssroy.pvb.corp.investec.com:9090, parent=ssroy.pvb.corp.investec.com:9090] - cause: org.rhq.plugins.www.snmp.SNMPException:Error occurred while retrieving column wwwServiceName(1.3.6.1.2.1.65.1.1.1.1.5): Request timed out.
                2010-07-30 11:45:00,539 INFO  [InventoryManager.availability-1] (rhq.core.pc.inventory.InventoryManager)- Sending availability report to Server...
                2010-07-30 11:45:00,746 ERROR [ResourceContainer.invoker.daemon-3] (org.rhq.plugins.apache.ApacheVirtualHostServiceComponent)- An error occurred while attempting to collect an SNMP metric.
                org.rhq.plugins.www.snmp.SNMPException: Error occurred while retrieving column 1.3.6.1.2.1.65.1.2.5.1.2.2(1.3.6.1.2.1.65.1.2.5.1.2.2): Request timed out.
                at org.rhq.plugins.www.snmp.SNMPSession_v1.getColumn(SNMPSession_v1.java:136)
                at org.rhq.plugins.www.snmp.SNMPSession_v1.getTable(SNMPSession_v1.java:156)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:597)
                at org.rhq.plugins.www.snmp.SNMPSessionCache.invoke(SNMPSessionCache.java:145)
                at $Proxy56.getTable(Unknown Source)
                at org.rhq.plugins.apache.ApacheVirtualHostServiceComponent.collectSnmpMetric(ApacheVirtualHostServiceComponent.java:442)
                at org.rhq.plugins.apache.ApacheVirtualHostServiceComponent.getValues(ApacheVirtualHostServiceComponent.java:233)
                at sun.reflect.GeneratedMethodAccessor58.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:597)
                at org.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread.call(ResourceContainer.java:525)
                at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
                at java.util.concurrent.FutureTask.run(FutureTask.java:138)
                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
                at java.lang.Thread.run(Thread.java:619)
                2010-07-30 11:45:00,849 ERROR [ResourceContainer.invoker.daemon-3] (org.rhq.plugins.apache.ApacheVirtualHostServiceComponent)- An error occurred while attempting to collect an SNMP metric.
                org.rhq.plugins.www.snmp.SNMPException: Error occurred while retrieving column wwwSummaryInLowBytes(1.3.6.1.2.1.65.1.2.1.1.6): Request timed out.
                at org.rhq.plugins.www.snmp.SNMPSession_v1.getColumn(SNMPSession_v1.java:136)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:597)
                at org.rhq.plugins.www.snmp.SNMPSessionCache.invoke(SNMPSessionCache.java:145)
                at $Proxy56.getColumn(Unknown Source)
                at org.rhq.plugins.apache.ApacheVirtualHostServiceComponent.collectSnmpMetric(ApacheVirtualHostServiceComponent.java:424)
                at org.rhq.plugins.apache.ApacheVirtualHostServiceComponent.getValues(ApacheVirtualHostServiceComponent.java:233)
                at sun.reflect.GeneratedMethodAccessor58.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:597)
                at org.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread.call(ResourceContainer.java:525)
                at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
                at java.util.concurrent.FutureTask.run(FutureTask.java:138)
                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
                at java.lang.Thread.run(Thread.java:619)
                2010-07-30 11:45:00,952 ERROR [ResourceContainer.invoker.daemon-3] (org.rhq.plugins.apache.ApacheVirtualHostServiceComponent)- An error occurred while attempting to collect an SNMP metric.
                org.rhq.plugins.www.snmp.SNMPException: Error occurred while retrieving column 1.3.6.1.2.1.65.1.2.5.1.3.2(1.3.6.1.2.1.65.1.2.5.1.3.2): Request timed out.
                at org.rhq.plugins.www.snmp.SNMPSession_v1.getColumn(SNMPSession_v1.java:136)
                at org.rhq.plugins.www.snmp.SNMPSession_v1.getTable(SNMPSession_v1.java:156)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:597)
                at org.rhq.plugins.www.snmp.SNMPSessionCache.invoke(SNMPSessionCache.java:145)
                at $Proxy56.getTable(Unknown Source)
                at org.rhq.plugins.apache.ApacheVirtualHostServiceComponent.collectSnmpMetric(ApacheVirtualHostServiceComponent.java:442)
                at org.rhq.plugins.apache.ApacheVirtualHostServiceComponent.getValues(ApacheVirtualHostServiceComponent.java:233)
                at sun.reflect.GeneratedMethodAccessor58.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:597)
                at org.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread.call(ResourceContainer.java:525)
                at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
                at java.util.concurrent.FutureTask.run(FutureTask.java:138)
                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
                at java.lang.Thread.run(Thread.java:619)
                2010-07-30 11:45:01,034 INFO  [ResourceContainer.invoker.daemon-3] (org.rhq.plugins.apache.ApacheVirtualHostServiceComponent)- Collected 51 metrics for VirtualHost MainServer.
                2010-07-30 11:45:02,716 WARN  [ConfigurationManager.threadpool-1] (rhq.core.pc.configuration.ConfigurationCheckExecutor)- Unable to check for updated configuration
                java.lang.RuntimeException: Configuration is supported only for Apache version 2 and up using Augeas. You either have an old version of Apache or Augeas is not installed.

                at org.rhq.plugins.apache.ApacheServerComponent.loadResourceConfiguration(ApacheServerComponent.java:302)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:597)
                at org.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread.call(ResourceContainer.java:525)
                at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
                at java.util.concurrent.FutureTask.run(FutureTask.java:138)
                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
                at java.lang.Thread.run(Thread.java:619)
                2010-07-30 11:45:02,718 WARN  [ConfigurationManager.threadpool-1] (rhq.core.pc.configuration.ConfigurationCheckExecutor)- Unable to check for updated configuration
                java.lang.Exception: Configuration is supported only for Apache version 2 and up using Augeas. You either have an old version of Apache or Augeas is not installed.
                at org.rhq.plugins.apache.ApacheVirtualHostServiceComponent.loadResourceConfiguration(ApacheVirtualHostServiceComponent.java:139)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:597)
                at org.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread.call(ResourceContainer.java:525)
                at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
                at java.util.concurrent.FutureTask.run(FutureTask.java:138)
                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
                at java.lang.Thread.run(Thread.java:619)
                2010-07-30 11:45:02,719 WARN  [ConfigurationManager.threadpool-1] (rhq.core.pc.configuration.ConfigurationCheckExecutor)- Unable to check for updated configuration
                java.lang.Exception: Configuration is supported only for Apache version 2 and up using Augeas. You either have an old version of Apache or Augeas is not installed.
                at org.rhq.plugins.apache.ApacheVirtualHostServiceComponent.loadResourceConfiguration(ApacheVirtualHostServiceComponent.java:139)
                at sun.reflect.GeneratedMethodAccessor68.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:597)
                at org.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread.call(ResourceContainer.java:525)
                at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
                at java.util.concurrent.FutureTask.run(FutureTask.java:138)
                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
                at java.lang.Thread.run(Thread.java:619)
                2010-07-30 11:45:02,719 INFO  [ConfigurationManager.threadpool-1] (rhq.core.pc.configuration.ConfigurationCheckExecutor)- Configuration update check completed in 12113ms 2010-07-30 11:45:20,591 INFO  [MeasurementManager.sender-1] (rhq.core.pc.measurement.MeasurementCollectorRunner)- Measurement collection for [31] metrics took 10441ms - sending report to Server.

                 

                 

                Thanks a lot.

                 

                Best Regards,

                 

                Roy

                • 5. Re: Incorrect Max Heap displayed
                  mazz

                  The first is probably due to your Apache's SNMP module responding too slowing for requests for SNMP data. RHQ agent plugin is asking Apache SNMP module for data, and the request is timing out.

                   

                  The second I'm not familiar with because I didn't write any of the Apache/Augeas stuff - but the error message seems straight forward You must have Augeas installed for RHQ to manage Apache configuration (we use Augeas to read/write the apache configuration files) and you must have Apache 2 (not Apache 1). Again, I'm not familiar with this code, I only deduced this from the error message.

                  • 6. Re: Incorrect Max Heap displayed
                    ssroy73

                    Regarding Timeout --> Is there any way to increase it.

                     

                    Apache --> We are using Apache 2.2.15

                     

                    Augeas --> I have installed Augeas in my system but getting the same error

                     

                     

                    Thanks & Regards - Roy

                    • 7. Re: Incorrect Max Heap displayed
                      lkrejci

                      To be able to configure Apache, make sure to enable Augeas in the connection properties of the apache resource. The property is called "Enable Augeas support" and it is off by default.

                       

                      Also you don't have to have augeas installed on your system, because it is bundled with the agent. The agent always uses it own copy of the augeas lib regardless of the version installed system wide.

                       

                      The error message is after all slightly confusing..

                      • 8. Re: Incorrect Max Heap displayed
                        ssroy73

                        Thank you very much.

                         

                        Both exceptions have disappered now after setting the value to "true".

                         

                         

                        But I am still getting Max Heap as zero in the graph where as in Jboss JMX-console (jboss.system:ServerInfo), I can see the value of Max Heap as 256.

                         

                         

                        Any hint will be greatly appreciated.

                         

                         

                        Thanks a lot.

                         

                        Best Regards - Roy