File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Performance and the fly likes Performance Anaylsis Tool Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Performance
Bookmark "Performance Anaylsis Tool" Watch "Performance Anaylsis Tool" New topic

Performance Anaylsis Tool

Saurabh Agrawal
Ranch Hand

Joined: Oct 07, 2003
Posts: 244
Hi all,
In my project there are few performance bottle necks due to crappy code written by some ex-developers.

So I am hereby looking forward for some performance analysis tool which can integrated with eclipse and is available free as well.

Majorly i want to know follow things:
1) Which part of taking more time to execute ?
2) If possible some suggestive measures to work on the same.
3) Performance statitcs for each executable line of code or method in time taken ,etc.

Any help in this regard would be appreciated.I had a look at JProfiler but its not free.

Please let me know if someone has used it.

Success is not doing extraordinary things but doing ordinary things extraordinarily well.
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13037
JAMon is popular for this sort of thing. It is free and well supported.
Ilja Preuss

Joined: Jul 11, 2001
Posts: 14112

The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Saurabh Agrawal
Ranch Hand

Joined: Oct 07, 2003
Posts: 244
Originally posted by Ilja Preuss:

Hey Ilja,
I have downloaded and installed TPTP in my eclipse.But i dont find much of help from it.

I cant see the profiling running.I get the profiling option but it says :

"IWAT0284E The agent controller is not available on localhost" .

Do i need to install the agent controller seperately or what ? I simply installed TPTP in my eclipse.

If you have any idea of how i can make this work, it would be of great help.

steve souza
Ranch Hand

Joined: Jun 26, 2002
Posts: 862
Here is a link to many java performance tuning resources including tools. It is a bit overwhelming as there are so many choices.

Are you tuning a web app? If so, I suggest you use the jamon servlet filter. You can look at statistics of your app without chaning any application code, and installing and viewing these stats only takes about 5 minutes. (Note: In fullness of disclosure I wrote JAMon).

Here are some directions on how to get the filter installed: - a fast, free open source performance tuning api.
JavaRanch Performance FAQ
Akshay Kiran
Ranch Hand

Joined: Aug 18, 2005
Posts: 220
look out for the intel VTune, I just had a workshop on this by the intel people, and it sure is a greeaaat tool, you dont need to integrate it with your IDE, it just works with your java code, shows you which portions of your code takes how much time, gives you the statistics using sampling methods, generates call-graphs, and allows you to dive right into the code with a single click and offers heaps of ways to resolve the problem., the thing is ofcourse, its a 30 day trial.
If its for ur business, your company could consider buying it, it is an amazing tool.
but hey, it works only on intel architectures.
have fun!
here's the link

"It's not enough that we do our best; sometimes we have to do<br />what's required."<br /> <br />-- Sir Winston Churchill
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
We're working with Wily Introscope. It's very big $ and monitors more general health than code coverage and individual method bottlenecks so it may not be what you need. For example I'm watching real time right now: invocation count, concurrent calls and response time for servlets, JSPs, EJBs, SQL calls, plus memory, cpu and stalled methods for a cluster of six servers. Any kind of problem, say a runaway query that is table scanning millions of rows, shows up pretty quickly.

A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Ilja Preuss

Joined: Jul 11, 2001
Posts: 14112
Originally posted by Saurabh Agrawal:
Do i need to install the agent controller seperately or what ?

In it sounds like that's how it works, yes.
I agree. Here's the link:
subject: Performance Anaylsis Tool
It's not a secret anymore!