- 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
Agenda
Introduction.
 Java profiler functionalities.
a) CPU
b) Threads
c) Memory
d) Garbage collection
e) Exception
f) Deadlocks
 Integration with eclipse.
Introduction
 Your 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.
Requirements
 Download Yourkit java profiler
http://www.yourkit.com/download/index.jsp
 Profiler Version 9.0.9
 Both 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 profiling
4. Enable stack telemetry
5. Capture memory snapshot
6. Start Object allocation record
7. Advance Object Generation number
8. Automatically capture snapshot on event
9. Force garbage collection
10. Start monitor profiling
11. clear monitor data
12. 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
Profiling documentforaltrec

More Related Content

DOCX
How to use_cucumber_rest-assured_api_framework
PPTX
Springboot2 postgresql-jpa-hibernate-crud-example with test
PDF
Step by Step Guide for building a simple Struts Application
PDF
Introduction to Spring Boot
PDF
Arquillian in a nutshell
PDF
Install spark on_windows10
How to use_cucumber_rest-assured_api_framework
Springboot2 postgresql-jpa-hibernate-crud-example with test
Step by Step Guide for building a simple Struts Application
Introduction to Spring Boot
Arquillian in a nutshell
Install spark on_windows10

What's hot (6)

PDF
JEE Programming - 08 Enterprise Application Deployment
PDF
Glassfish JEE Server Administration - JEE Introduction
PPTX
Spring boot Introduction
PDF
Struts Basics
PPTX
PDF
MarsJUG - Une nouvelle vision des tests avec Arquillian
JEE Programming - 08 Enterprise Application Deployment
Glassfish JEE Server Administration - JEE Introduction
Spring boot Introduction
Struts Basics
MarsJUG - Une nouvelle vision des tests avec Arquillian
Ad

Viewers also liked (7)

KEY
Profiling blueprints
PPS
Donde Dios Me Quiera
PDF
2011 famoosr
PPS
Unminuto
PPS
Tequila Y Sal
PDF
Roassal presentation
PDF
JProfiler / an introduction
Profiling blueprints
Donde Dios Me Quiera
2011 famoosr
Unminuto
Tequila Y Sal
Roassal presentation
JProfiler / an introduction
Ad

Similar to Profiling documentforaltrec (20)

ODP
Java code coverage with JCov. Implementation details and use cases.
PPTX
jDriver Presentation
PPTX
The_Little_Jenkinsfile_That_Could
PPT
Jdk Tools For Performance Diagnostics
PDF
Gallio Crafting A Toolchain
PPTX
Session 41 - Struts 2 Introduction
PPTX
JavaPerformanceChapter_5
PPTX
Hadoop cluster performance profiler
ODP
eXo Platform SEA - Play Framework Introduction
PDF
Oracle Soa Suite 11g Performance Tuning Cookbook Osama Oransa
PPTX
Jakarta EE Test Strategies (2022)
PDF
Java Performance & Profiling
PDF
Java Performance and Using Java Flight Recorder
PPSX
Struts 2 - Introduction
PDF
Enhancing Website and Application Testing with Java Scrapers.pdf
PDF
Level Up Your Integration Testing With Testcontainers
PDF
ASML_FlightRecorderMeetsJava.pdf
PPTX
Improving cold start with Distroless techniques
PDF
Devoxx UK 2013 Test-Driven Development with JavaEE 7, Arquillian and Embedded...
PDF
Troubleshooting Tools In JDK
Java code coverage with JCov. Implementation details and use cases.
jDriver Presentation
The_Little_Jenkinsfile_That_Could
Jdk Tools For Performance Diagnostics
Gallio Crafting A Toolchain
Session 41 - Struts 2 Introduction
JavaPerformanceChapter_5
Hadoop cluster performance profiler
eXo Platform SEA - Play Framework Introduction
Oracle Soa Suite 11g Performance Tuning Cookbook Osama Oransa
Jakarta EE Test Strategies (2022)
Java Performance & Profiling
Java Performance and Using Java Flight Recorder
Struts 2 - Introduction
Enhancing Website and Application Testing with Java Scrapers.pdf
Level Up Your Integration Testing With Testcontainers
ASML_FlightRecorderMeetsJava.pdf
Improving cold start with Distroless techniques
Devoxx UK 2013 Test-Driven Development with JavaEE 7, Arquillian and Embedded...
Troubleshooting Tools In JDK

Profiling documentforaltrec

  • 2. 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
  • 3. Agenda Introduction.  Java profiler functionalities. a) CPU b) Threads c) Memory d) Garbage collection e) Exception f) Deadlocks  Integration with eclipse.
  • 4. Introduction  Your 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.
  • 5.  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.
  • 6. Requirements  Download Yourkit java profiler http://www.yourkit.com/download/index.jsp  Profiler Version 9.0.9  Both Client & Agent version’s should be same.
  • 7. 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.
  • 8.  In order to connect click on “Connect to remote application” and enter the environment name as shown in the below snapshot.
  • 9. 1. Capture performance snapshot. 2. CPU profiling 3. Clear CPU profiling 4. Enable stack telemetry 5. Capture memory snapshot 6. Start Object allocation record 7. Advance Object Generation number 8. Automatically capture snapshot on event 9. Force garbage collection 10. Start monitor profiling 11. clear monitor data 12. Enable Exception telemetry ..etc
  • 10. 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
  • 11. CPU Profiling Shows a top-down call tree for selected thread ("by thread") .
  • 12. Threads Profiling The profiled application, use the "Threads“ to track the live threads
  • 13. Memory profiling Memory state of this profiled application, It contains information about all loaded classes, about all existing objects, and about references between objects.
  • 14. GC Profiling The objects it collects are those that are not accessible by references from GC roots.
  • 15. Exception Profiling "Exceptions profiling" shows exceptions which were thrown in the profiled application
  • 16. 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.

Editor's Notes

  • #7: Client version:-On which the your kit profiler is running like “raviasvm”.Agent version :-on which profiler is started i.e. altrecqa/altrecdev.
  • #9: Open yourkit java profiler.Click “connect to remote application “ link and add hostname:port number like “altrecqa.com” (or) “altrecqa.com:10001”.Click connect button.
  • #10: Above icons functionality from left to right
  • #11: Above icons functionality from left to right
  • #18: Adding Your