aspose file tools
The moose likes Performance and the fly likes Is it possible to measure the performance or Profile an application without using an IDE Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Performance
Reply Bookmark "Is it possible to measure the performance or Profile an application without using an IDE" Watch "Is it possible to measure the performance or Profile an application without using an IDE" New topic
Author

Is it possible to measure the performance or Profile an application without using an IDE

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2229

Hi ,

Our application is an .ear application . We are not using any IDE for development .just using EditPlus and we are using Weblogic11g as our server .

I have seen a lot of tools for profiling while googling but they work only in combination of an IDE only .

So please let me know is there anyway or tool so that i can measure the performance of my application as there is no IDE.

Thanks in advance , waiting for your suggestions.




Save India From Corruption - Anna Hazare.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 11691
Open source JAmon is a good place to start.

This site reviews a bunch of profilers

Also you can embed simple timing data collection based on the standard Java library method - System.currentTimeMillis().

Bill


Java Resources at www.wbrogden.com
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 4489

You could also try adding the -Xprof JVM option to the command line. The output takes a little bit of effort to get used to, but it can be handy in some cases.


JBoss In Action
steve souza
Ranch Hand

Joined: Jun 26, 2002
Posts: 845
jamon let's you monitor servlets/jsp's, sql, and ejb's without chaning your code.


http://www.jamonapi.com/ - a fast, free open source performance tuning api.
JavaRanch Performance FAQ
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2229

Thank you very much .

Atlast i found out that only Jamon is the only solution for me now .

But i am thinking about its learning curve again i need t learn its API for profiling.
steve souza
Ranch Hand

Joined: Jun 26, 2002
Posts: 845
There isn't much of an api. You can monitor jdbc, ejb's and servlets via configuration of standard files. Post any questions you have on the jamon forum and I will answer them.

Simply install the jamon jar at the server level of jboss. Install the jamon war (so you can view statistics).

Here are steps how you can get jamon working. I would pick one of them so you can get the hang of what the tool can do...

* jdbc - http://jamonapi.sourceforge.net/#WhatsNew22
* servlet filter or server valve - http://jamonapi.sourceforge.net/http_monitoring.html
* ejb's - http://jamonapi.sourceforge.net/#ejbmonitoring
* interface monitoring - http://jamonapi.sourceforge.net/#monitoringinterfaces
* log4j - http://jamonapi.sourceforge.net/log4j_jamonappender.html

If you choose to monitor your code directly too you could use AOP so you don't have to change code, or you can use the following coding style. The downside of the following approach is that you would have to change your code.



The "yourLabel" monitor will now be viewable in the "jamon.war" file.

This message was edited 1 time. Last update was at by steve souza

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2229

Thank you steve very much for your time .Certainly need your help on this .

I will allocate all my sunday to Jamon API , and work on that.
 
 
subject: Is it possible to measure the performance or Profile an application without using an IDE
 
MyEclipse, The Clear Choice