jQuery in Action, 3rd edition
The moose likes Performance and the fly likes Speed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Performance
Bookmark "Speed" Watch "Speed" New topic


Isaac Ferguson
Ranch Hand

Joined: Jun 22, 2012
Posts: 752

I have a website which as a whole works well , but when I press a specific button it takes 12 sec

What way could I discover what is happening?

harshvardhan ojha
Ranch Hand

Joined: Jul 26, 2007
Posts: 157

you need to do root cause analysis, usually i follow these steps

1. use some browser tools like firebug and yslow to make sure that there is no network latency in sending this request to my server.
2. take server's heap snapshot and if required heap and thread dump to know overheads.
3. at last you need to improve your logging level to understand which layer of application took how much time(aop).
4. make sure data needed by application is available, if not like coming from SOA or DB, quantify the delay.

also observe application behavior in different env or different servers.

hope this was useful.
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13037
There are plenty of measurement tools such as JAMON - open source and free.

Deepak Bala

Joined: Feb 24, 2006
Posts: 6662

Identify where the delay happens.

1. Use the page speed plugin to identify delays in HTTP calls and the number of calls made.
2. Use a JVM profiler to identify delays caused by application code.
3. Analyze metrics from your persistence layer (say a database) to quantify IO delays.

SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
I agree. Here's the link: http://aspose.com/file-tools
subject: Speed
It's not a secret anymore!