Profiling documentforaltrec

Post on 21-Jun-2015

55 views 0 download

Tags:

transcript

YourKit Java Profiler @ Altrec

- RaviKiran

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

AgendaIntroduction. Java profiler functionalities.

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

Integration with eclipse.

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.

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.

RequirementsDownload Yourkit java profiler

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

same.

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.

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

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

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

CPU Profiling

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

Threads Profiling

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

Memory profiling

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

GC Profiling

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

Exception Profiling

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

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.

1 2

3

Installing plug-in steps

4 5

6

7