There are a lot of tools for profiling Java and the following is a list:
- HPROF
$java -agentlib:hprof[=options] ToBeProfiledClass
You get a dump AFTER running your application. This is not a live heap watching.
- Jmap, jps
You must know the pid of the Java application to
- EurekaJ and BTrace
- AspectJ
This is the preferred method.
However the best way is to use AOP for performance monitoring and metric gathering consider JMetrix
From AspectJ you can read the following:
3. What are some common development aspects?
Aspects for logging, tracing, debugging, profiling or performance monitoring, or testing.
4. What are some common production aspects?
Aspects for performance monitoring and diagnostic systems, display updating or notifications generally, security, context passing, and error handling.
From AspectJ you can read the following:
3. What are some common development aspects?
Aspects for logging, tracing, debugging, profiling or performance monitoring, or testing.
4. What are some common production aspects?
Aspects for performance monitoring and diagnostic systems, display updating or notifications generally, security, context passing, and error handling.
Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog.
ReplyDeleteReally very informative post you shared here. Kindly keep blogging.
If anyone wants to become a Java developer learn from Java Training in Chennai.
or learn thru Java Online Training in India .
Nowadays Java has tons of job opportunities on various vertical industry.