Profiling documentforaltrec

19
YourKit Java Profiler @ Altrec - RaviKiran

Transcript of Profiling documentforaltrec

Page 1: Profiling documentforaltrec

YourKit Java Profiler @ Altrec

- RaviKiran

Page 2: Profiling documentforaltrec

Profiling“In software engineering, performance

testing is in general testing performed to determine how a system performs in terms of responsiveness and stability under a particular workload. It can also serve to investigate , measure, validate or verify other quality attributes of the system, such as scalability, reliability and resource usage.”

Performance testing(Profiling)  is/will be done by “Your Kit Java profiler” and Load test will be done by “Jmeter” .

@Altrec

Page 3: Profiling documentforaltrec

AgendaIntroduction. Java profiler functionalities.

a) CPUb) Threadsc) Memoryd) Garbage collectione) Exceptionf) Deadlocks

Integration with eclipse.

Page 4: Profiling documentforaltrec

IntroductionYour Kit java profiler has developed a revolutionary

approach to profiling applications at both development and production stages, bringing unparalleled benefits to professional Java developers on all platforms, including Windows, Linux, Mac OS X, Solaris, FreeBSD, HP-UX.

Page 5: Profiling documentforaltrec

performance and scalability problems at the early stages of development, thus ensuring product quality from the very beginning. The ability to profile Java applications not only during testing but even in production results in substantial increases in the final product quality and the level of customer support.

Providing good Quality, Productivity, Time savings.

Page 6: Profiling documentforaltrec

RequirementsDownload Yourkit java profiler

http://www.yourkit.com/download/index.jspProfiler Version 9.0.9Both Client & Agent version’s should be

same.

Page 7: Profiling documentforaltrec

Starting Environment in Profiling mode• First the environment(altrecdev or altrecqa)

should be restarted with profiling enabled(startup_with_yjp.sh)

Note: After completion of profiling restart server in normal mode.

Page 8: Profiling documentforaltrec

In order to connect click on “Connect to remote application” and enter the environment name as shown in the below snapshot.

Page 9: Profiling documentforaltrec

1. Capture performance snapshot.2. CPU profiling 3. Clear CPU profiling4. Enable stack telemetry5. Capture memory snapshot6. Start Object allocation record7. Advance Object Generation number8. Automatically capture snapshot on event9. Force garbage collection10.Start monitor profiling11. clear monitor data12.Enable Exception telemetry ..etc

Page 10: Profiling documentforaltrec

1. Click on “CPU profiling ” to start profiling in Yourkit profiler.

2. Open “www.altrecqa.com” in web browser .

3. Stop the “CPU profiling ” and click on “Capture performance snapshot ”

4. The CPU profiler shows the flow hierarchy, time taken by each method to execute, Sql statements /procedures,Jsp/Servlets and JNDI (jar files )used to load home page.

Profiling the AltrecQa home page

Page 11: Profiling documentforaltrec

CPU Profiling

Shows a top-down call tree for selected thread ("by thread") .

Page 12: Profiling documentforaltrec

Threads Profiling

The profiled application, use the "Threads“ to track the live threads

Page 13: Profiling documentforaltrec

Memory profiling

Memory state of this profiled application, It contains information about all loaded classes, about all existing objects, and about references between objects.

Page 14: Profiling documentforaltrec

GC Profiling

The objects it collects are those that are not accessible by references from GC roots.

Page 15: Profiling documentforaltrec

Exception Profiling

"Exceptions profiling" shows exceptions which were thrown in the profiled application

Page 16: Profiling documentforaltrec

Deadlock Profiling

Java-level deadlock happens in the profiled application, it will be automatically detected.

If the deadlock is found, a notification will be shown. Find the deadlock detail in the "Deadlocks" tab.

Page 17: Profiling documentforaltrec

1 2

3

Installing plug-in steps

Page 18: Profiling documentforaltrec

4 5

6

7

Page 19: Profiling documentforaltrec