7 Replies Latest reply on Jul 26, 2010 8:55 AM by ssroy73

    Is it possible to monitor individual java component

    ssroy73

      Hi,

       

      Is there any ways I can monitor individual java classes (like number of instance created etc) bundled in JAR/WAR.

       

       

      I will really appreciate your valuable input on this.

       

       

      Environment: JBoss 4.2.3

      Monitoring Tool: JOPR 2.3.1

       

       

      Thanks & Regards,

       

      Roy

        • 1. Re: Is it possible to monitor individual java component
          mazz

          > Is there any ways I can monitor individual java classes (like number of instance created etc) bundled in JAR/WAR.

           

          There is nothing like that. You could write your own custom plugin to do this.

           

          Note that the JMX plugin (which supplies the data for the JBossAS child service "JVM" and its children service resources) can provide low-level JVM metrics, like total number of classes loaded, threads started, memory usage, etc - it doesn't get you information like how many individual classes are instantiated and things like this. This data comes from the standared Java Platform MBeans - whatever metrics they expose, we can collect and report on via the JMX plugin - and the Java Platform MBeans doesn't collect information like individual class instance counts.

           

          When in doubt of what you can or cannot monitor, you can take a look at the plugins' descriptors and see their resource types and metrics/operations/configuration they support. We also try to keep the list of the more commonly needed managed resources list up to date, but the plugin descriptor is always the way to know what can and cannot be managed and what metrics they support.

           

          In your case, JBossAS 4.x doesn't have an MBean that spits out that data, and since it doesn't spit out that data, there is nothing for us to collect and report. If you ever want to know what JBossAS 4.x emits as metrics, just go to its JMX console and peek directly into the MBeans that JBossAS exposes.

          • 2. Re: Is it possible to monitor individual java component
            ssroy73

            Thanks a lot John and really appreciate.

             

            Got your point.

             

            I have one more query. Can you please help.

             

            I want to display few graphs on dashboard. I found the option to save graph in dashboard. But it does not display the graph in chart form. Is it possible to do this.

             

             

            Thanks a lot.

             

            Best Regards - Roy

            • 3. Re: Is it possible to monitor individual java component
              mazz

              > I want to display few graphs on dashboard.

               

              Roy, no, not yet BUT that's coming very soon though. Our new GWT interface will have this. Take a look at ghinkle's demo and you'll see you can do what you want in the new stuff - fast forward to half way through the demo and you'll see the feature you want.

               

              http://www.jroller.com/ghinkle/entry/rhq_and_customizable_dashboards

              • 4. Re: Is it possible to monitor individual java component
                ssroy73

                Thanks John.

                 

                When is the tentative release date for the new version.

                 

                 

                Best Regards - Roy

                • 5. Re: Is it possible to monitor individual java component
                  mazz

                  Not sure of any official date - but probably by September or October.

                   

                  You can build from source - I'm pretty sure ghinkle committed all this stuff into the master branch.  So if you build the RHQ distribution from the master branch, this stuff is in there. Of course, this isn't production ready code yet, but if you want it to test and play with, its there.

                  • 6. Re: Is it possible to monitor individual java component
                    ssroy73

                    Thanks John.

                     

                    Rgds - Roy

                    • 7. Re: Is it possible to monitor individual java component
                      ssroy73

                      Hi John,

                       

                      I am facing an issue with Apache auto discovery using RHQ 3. Following is the thread. Can you please suggest/give any hint.

                       

                      https://community.jboss.org/message/554361#554361

                       

                       

                      Thanks a lot.

                       

                       

                      Best Regards - Roy