Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Performance Tracing Solution?

 
Trudy Falcon
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to indentify bottlenecks in a jboss web application -- specifically to be able to track how long each java method takes to execute -- and then to easily be able to view the results. (Results could also be in XML or JSON format, which could be readily viewed with an XML or JSON editor). Some other requirements are that it be:

1.)Lightweight � will need to be run in a production environment, so it cannot slow the environment down too much.
2.)Should be non-invasive � I don�t want to have to recomplile or really even restart anything particularly in a production environment. One thought to turn the monitoring on is to just pass a param in on the request, for example.
3.)As mentioned before �need to be able to be able to view the results in a nice, neat way in order to easily make sense of the results.

Does anyone know of any tools out there that meet these requirements? I think most profiler tools that I am aware of are too heavy weight but perhaps there are some I am not aware of more lightweight. From my initial research I have come upon: JavaSimon, jamon api, usemon � (though don�t think I want results in a database), or roll your own kinda thing using AspectWerkz/aspect programming.

Could anyone provide any recommendations/direction?

Thanks very much.
 
Peter Lawrey
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Firstly, I suggest using Java 6 if you can. It is far more lightweight for using profiling. Secondly, I would suggest using yourkit. It slows down the application by about 20-35% which is the best I have seen for any profiler.
 
Erik Ostermueller
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Has anyone used JAMon in production?
http://jamonapi.sourceforge.net/
It sure appears to be a lightweight API -- I was curious if others had experience with this.

I wrote something recently about lightweight measurements vs. traditional jvmpi profilers, that might be of interest:
http://www.ibm.com/developerworks/architecture/library/ar-perfprof/

--Erik
 
steve souza
Ranch Hand
Posts: 862
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the interest of full disclosure I wrote JAMon. Having said that, I have used jamon in production in many applications with no problems. You can always disable jamon too and it becomes a noop, so there isn't much of a downside. Of course you should test it out on your app in dev and test and see how it works in those environments before deploying to production.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!