JBoss Profiler 2.0
I recently got myself into a tough situation where I needed to do some memory profiling a web
application. I had a custom written profiler which does ok on
measuring the time consumption, but not the memory. Since most of the
profilers are commercial, I tried out JBoss Profiler 2.0,
Wow! I have never seen a profiler work in just 3-4 steps. If you don't believe
me, try it yourself:
Steps:
1.Download JBoss Profiler 2.0 - http://labs.jboss.com/jbossprofiler/downloads.html
2.Copy files to your JBoss,
Reference:
1.An excellent User Guide comes with the download, it has everything you need to know.
Steps:
1.Download JBoss Profiler 2.0 - http://labs.jboss.com/jbossprofiler/downloads.html
2.Copy files to your JBoss,
- jboss-profiler.jar -> jboss/bin
- jboss-profiler.properties (Add packages to be instrumented in includes) -> jboss/bin
- javassist.jar -> Jboss/bin
- jboss-profiler.sar -> jbossas/server/(default)/deploy
-javaagent:jboss-profiler.jar -Djboss-profiler.properties=jboss-profiler.properties4.Start the Server, Use the Client program to collect the statistics
java -Xmx512m -Djboss-profiler-client.properties=jboss-profiler-client.properties -jar jboss-profiler-client.jar -h(host) -P(port) snapshot
Reference:
1.An excellent User Guide comes with the download, it has everything you need to know.
Tags:
Published at DZone with permission of its author, Senthil Balakrishnan.(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)





Comments
Jesper Pedersen replied on Thu, 2010/05/13 - 7:52am
Senthil Balakrishnan replied on Tue, 2010/05/25 - 9:56am
in response to: jesper.pedersen
Sri Kanth replied on Wed, 2011/08/10 - 7:44am
Sri Kanth replied on Wed, 2011/08/10 - 9:26am