-
1. Re: Performance parameters for JBOSS
peterj Dec 2, 2008 2:02 PM (in response to ran_sushmi)Use the JMX Console (http://localhost:8080/jmx-console). It lists all of the MBeans registered in JBossAS. Several of them contain performance information. Here are some examples, there are others:
For a data source named xxx, the following MBean provides information on the number of connections:
jboss.jca:name=xxx,service=ManagedConnectionPool
For HTTP connections, you can see the thread counts in
jboss.web:type=ThreadPool,name=http-99.99.99.99-8080
where 99.99.99.99 is your IP address.
For servlets, you can see processing times and number of requests in
jboss.web:j2eeType=Servlet,J2EEserver=none,J2EEApplication=xxx,WebModule=//hostname/xxx,name=XXX
For EJBs, you can see similar information in the stats attribute for
jboss.management.local:J2EEServer=local,j2eeType=bean-type,J2EEApplication=ear-file,EJBModule=jar-file,name=ejb-name -
2. Re: Performance parameters for JBOSS
ran_sushmi Jan 24, 2009 7:32 AM (in response to ran_sushmi)thanks, for your answer. I tried http://localhost:8080/jmx-console on the web server containing the JBOSS but I get like 'Internet Explorer cannot display the Web page'. Then, I tried with IP also,
http://41.211.233.2:8080/jmx-console
but I get same message like 'Internet Explorer cannot display the Web page'.
I hope, my question is clear.
Please, help in solving the doubt.
regards -
3. Re: Performance parameters for JBOSS
peterj Jan 24, 2009 2:43 PM (in response to ran_sushmi)What version of JBoss AS? Is it running?
-
4. Re: Performance parameters for JBOSS
kcbraunschweig Jan 26, 2009 5:49 PM (in response to ran_sushmi)I'm running jboss 4.2.1. Here are a few other things you could try:
1. Just go to your server's IP in your browser on port 8080. You should get a default jboss landing page with a link to the jmx-console among others. You may find that you don't have the jmx console loaded.
2. You can also poke at stuff from the command line with twiddle. For starters you can list the objects that are available like this:% twiddle.sh -s localhost serverinfo -l
That will give you a big list of objects. If you want to know about one, get its info like this:% twiddle.sh -s localhost info jboss.system:type=ServerInfo
You'll get a description and a list of Attributes and Operations supported by that object. If you want to actually get the object, try this:% twiddle.sh -s localhost get jboss.system:type=ServerInfo
That object has some memory stats in it so may be interesting to you. My problem now though is that I've found some objects in the list that I can run the "info" command on but not the "get" command and I don't know why. Here's an example:% twiddle.sh -s localhost get jboss:service=Naming 14:48:56,435 ERROR [Twiddle] Exec failed java.io.NotSerializableException: java.lang.reflect.Method at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1081)
If you figure out any more, I'd be interested. Still new at this also. -
5. Re: Performance parameters for JBOSS
ran_sushmi Jan 28, 2009 7:41 AM (in response to ran_sushmi)thanks, for your answer.
But, when I give from $JBOSS_HOME/bin, the command:-
twiddle.sh -s localhost serverinfo -l
it gives,
---------------------------------------------------
twiddle.sh -s localhost serverinfo -l
-bash: twiddle.sh: command not found
---------------------------------------------------
Please, help in solving the doubt.
regards -
6. Re: Performance parameters for JBOSS
dimitris Jan 28, 2009 7:47 AM (in response to ran_sushmi)Maybe read a unix tutorial first?
./twiddle.sh serverinfo -l -
7. Re: Performance parameters for JBOSS
brettcave Jan 28, 2009 8:26 AM (in response to ran_sushmi)/path/to/jboss/home/bin/twiddle.sh
edit the file, make sure you have correct java home, etc...
another nice way to monitor jboss is to use nagios with the "check_jboss" plugin - it uses twiddle with some bash output manipulation to alert on mem usage, number threads, etc... (our environment is linux, not sure of implementation on windows). -
8. Re: Performance parameters for JBOSS
peterj Jan 28, 2009 11:03 AM (in response to ran_sushmi)ran_sushmi, in one post you stated you were new to Java, but you never said you were new to Linux... ;-)
-
9. Re: Performance parameters for JBOSS
ran_sushmi Jan 28, 2009 11:38 AM (in response to ran_sushmi)thanks, for your answer. Sorry, I was running the shell script wrong.
regards -
10. Re: Performance parameters for JBOSS
ran_sushmi Jan 28, 2009 11:39 AM (in response to ran_sushmi)thanks, for your answer. I have been able to check using twiddle functionality for now.
regards -
11. Re: Performance parameters for JBOSS
ran_sushmi Jan 28, 2009 11:53 AM (in response to ran_sushmi)thanks, brettcave. I have checked using twiddle functionality for now.
regards.