Over a million developers have joined DZone.

JBoss Profiler 2.0

· Java Zone

What every Java engineer should know about microservices: Reactive Microservices Architecture.  Brought to you in partnership with Lightbend.

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,
  • 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
3.Add the following to your run.conf or run.bat JAVA_OPTS,
-javaagent:jboss-profiler.jar -Djboss-profiler.properties=jboss-profiler.properties
4.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.

Microservices for Java, explained. Revitalize your legacy systems (and your career) with Reactive Microservices Architecture, a free O'Reilly book. Brought to you in partnership with Lightbend.

Topics:

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}