There seems to be 4 profilers that's known to work with Java CAPS 5.

  1. NetBeans Profiler
  2. JProfiler
  3. OptimizeIt
  4. Wily
I have only seen NetBeans Profiler profiling Java CAPS 5.1.3. It takes a little while to setup but its interface is intuitive and it's versatile.

Yesterday, I found a 'lighter' profiler(sort of) while browsing blogs.sun.com so I tried it on my Java CAPS 5.1.3.

An application profiler using an embedded AspectJ based Java agent - Adventures in Java
Some applications of this facility that immediately come to mind are method tracing, method logging, heap tracing (dynamically tracing the amount of heap space used by an application as it runs), application health monitoring (trends of method invocations resulting in uncaught exceptions vs. “normal” execution), etc.. At development time, this framework can provide lightweight profiling capabilities.

I edited domain.xml file to change java options and restarted. And..., it worked! I could measure time spent in methods in particular classes.

Once Subhajit posts the source code, you can write your own 'lightweight' profiler.
Comments:

Post a Comment:
  • HTML Syntax: NOT allowed

This blog copyright 2009 by Katsumi Inoue