JAMON API Setup – Notes


Download latest copy and install the jar file to maven repository
mvn install:install-file -Dfile=x:downloadjamonjamonapi_2.7jamon-2.7.jar -DgroupId=com.jamonapi -DartifactId=jamon -Dversion=2.7 -Dpackaging=jar -DgeneratePom=true

Add this dependency to pom file


Add this to .java file where you want to measure the performance

import com.jamonapi.Monitor;
import com.jamonapi.MonitorFactory;

In method begenning add

Monitor mon = MonitorFactory.start("XYZ:Method Name");

In method ending add


Identify place to get all above times and print them at the end of program
Print in .html file to see nice report.

String fileData = MonitorFactory.getReport();
Log.info("Performance Report==>"+fileData);



2 thoughts on “JAMON API Setup – Notes

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.