Hello to everyone! I'm a novice to JBoss and have some problems/ The problems are that I need to get some metrics through the JMX(just for example : heap memory). Well, It is realized by putting the query to run the twiddle in the powershell script for futher running in SCOMR2. The problem is that twiddle is needed a great time to get the parameters. Can you tell me the reason of the problem? Or the way how can I get the performance metrics and loading sequence of different modules?
Thanks a lot!
Thanks for reply. Well. the time is about a second to get one argument in the jboss.web. The problem is that we need much more arguments to be retrieved through JMX. So we just put the query to start twiddle with a get parameter inside the loop in powershell script. and we want to see output in SCOM in a live time. So if we have for example 10 argunebts in the Mbean to be retrieved we need 10 sec for script to run and this is too long(( And I just need to view the sequence of loading all modules when running the twiddle to watch which of them take the biggest time.
How often are you going to be asking for this information? Most monitoring tools only query this information once every 15 minutes by default. If you ask for it too often you can have a significant performance impact on app server (it can't service as many user requests if you are constantly asking it for data updates).
Of course one of the issues is that each time twiddle is run it has to:
1) load and initialize the JVM
2) establish the connection with the app server
3) request the MBean info
4) clean up and close
Most of the time is spent in the first 2 steps. You could speed things up by either writing your own JMX code (or modifying the twiddle source) to handle multiple MBeans in step 3.
Joined: Apr 08, 2011
Thank you. Peter! I'm already about to writing my own JMX code. But. to tell you the truth. I still want to watch on the performance view of the mentioned four steps, is there any open source tool or just a trial one to make a plots like this: dependency between time to load and the number of step in twiddle loading process. Just for example I want to see some kind of this: The loading of the JVM takes 30 sec, connection takes 15 sec, and so on. Thanks a lot!
Are you asking for something that will give you the times for each of the 4 twiddle steps that I mentioned? There is nothing that I know of, though you could possible modify twiddle to provide that data.