Check out http://www.javaperformancetuning.com for a complete list of tools, 
and tuning advice for java apps.

Here is some info on my own JAMon open source monitoring tool.  The JAMon 
servlet filter, and JAMon jdbc proxy driver are no-code solutions for timing 
page hits, and database sql (for any jdbc driver).  Read on for more info...

One strength of jamon is the diversity of things that it can monitor and the 
ease with which you can do it.

1) JDBC/SQL Monitoring - You can monitor you sql/jdbc without changing
code, by using the new driver.  Next I will work on providing a DataSource
which will make using it in J2EE apps easier.   Here are some samples of
how you can monitor your SQL/JDBC WITHOUT changing your code.  I tested the
the new jamon monitoring driver with a couple jdbc drivers
(HSQLDB/ASA/IQ/OpenA).  The driver to use in class.forName(...) is:
com.jamonapi.proxy.JAMonDriver

jdbc:jamon:sybase:Tds:localhost:2638?jamonrealdriver=com.sybase.jdbc2.jdbc.SybDriver
jdbc:jamon:sybase:Tds:eagu62.fss.gsa.gov:2638?jamonrealdriver=com.sybase.jdbc2.jdbc.SybDriver&PROTOCOL_CAPTURE=/opt/sw/eas/eas5/sched.log
jdbc:jamon:opena:jamonrealdriver=com.asgardsw.OpenA.OpenADriver&159.142.46.162:3987/M10CSTEST/DBTESTPB/
 (OPENA)CONFIG/AMWEB/DEV
 ON SOFTWARE

2) Servlet Filter - You can use the servlet filter to monitor pages in your
web app without changing a line of code.  Simply add some lines to your
web.xml

3) Interface Monitoring - ANY java interface as well as the exceptions it
throws can be monitored with 1 line of code.

MyInterface mine=(MyInterface) MonProxyFactory.monitor(new MyObject());

4) Exceptions/SQL Details - Previous versions of JAMon only allowed you to look 
at the jamon summary report.  Now you can look at an Exception buffer of the 
most n recent exceptions any monitored interface have thrown (including jdbc 
interfaces such as Connection).  You can also look at the most N recent query 
that was thrown.

5) Dynamic Changes to Monitor Strings - As jamon uses strings which can be 
created at runtime you can monitor runtime data such as pagehits by user, by 
day, and many other things.

     Monitor mon=MonitorFactory.start("pageHit."+userName);
           ....
     mon.stop();

6) More Info - My web site does a good job of explaining these capabilities
and more.  I also have a couple releases planned with some cool new
features over the next couple months.

A demo can be found at http://www.ssouza.com/jamon ,and JAMon can be
downloaded at http://www.jamonapi.com


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967980#3967980

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967980
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to