Wednesday, August 22, 2007

Removal performances’ problems

1 Detect problems

You have to analyze complaints customer and you have to try to reproduce problem. At first you have to take more information from admin this site. Because they could have monitor checklist, it can help you.

2 Found reasons

Then you have to detect bottleneck place for that you may use next tools:

  • thread_monitor.jsp (measure)
  • yourkit (measure)
  • benchmark (measure)
  • jmeter or wget

Note: You’ve never forgotten about logs

Suppose you detected what site rendered slow.

You have to do CPU snapshot. Snapshot allow to you detected reason. When you’ll analyze the CPU snapshot you have to devote one's attention to slow method. Yourkit allow do it, use it capability allow to do easy. I recommend you use “Method list” for analyze CPU statistics. You have to devote one’s attention to total time invoke method. Yourkit allowed you review “who invoke it“(Method back trace) and “what it invoke” (Method merged callees).

Also you can use thread monitor.

Jmeter allow you put datum about throughput.

Suppose your site have memory leak.

You have to do memory snapshot. When you’ll analyze the memory snapshot you have to devote one's attention to objects have more size. At first you have to calculate retained size objects, which help to detect large object. You have to devote one’s attention to session’ object and object answer for cache, because it is often reason’s problem.

3 Removal reasons

You have to act according to character problem.:)

Wednesday, August 15, 2007

Double load tags on JSP

Q. My tags invoked two time.

S. The problem happened because I had like tag <img src="" alt="test" />