際際滷

際際滷Share a Scribd company logo
JMeter 
Per il performance test
Cos竪 JMeter 
 E un tool open source ideato per eseguire test funzionali di 
carico e per misurare le performance. 
 Nato per il test di applicazioni web, JMeter permette di 
testare tramite numerosi protocolli ed interrogando diverse 
tipologie di server, quali: 
 HTTP, HTTPS 
 SOAP 
 Database (OJDBC) 
 FTP 
 JMS 
 LDAP 
 TCP
Cos竪 JMeter 
 E un progetto apache completamente scritto in Java. 
http://jmeter.apache.org 
 E altamente estensibile: 
http://jmeter-plugins.org
Performance Test 
 Il Performance Test determina quanto velocemente 
risponda un sistema sottoposto ad un determinato 
carico attraverso la validazione di indicatori chiave 
quali: 
 Response time 
 Throughput 
 Latency 
 Numero massimo di utenti concorrenti 
 Utilizzo delle risorse
Performance Test 
 Valida la risposta, la velocit, la stabilit di un 
sistema. 
 Determina i limiti di carico del sistema sotto 
test. 
 Supporto al tuning ed all ottimizzazione del 
sistema.
Tipologie di Test di Performance 
 Load Test 
Vengono misurati i tempi di risposta il throughput e 
l utilizzo di risorse per identificare i limiti del 
sistema con uso normale e di picco. 
 Stress Test 
Viene verificato il comportamento del sistema oltre 
il normale carico di picco. 
 Endurance Test 
Viene verificato il comportamento del sistema con un 
uso sostenuto per per periodi di tempo significativi
Jmeter: Prerequisiti ed avvio 
 Ultima versione di Java installata 
 Download di JMeter 
http://jmeter.apache.org/download_jmeter.cgi 
 Avvio da .bat, .sh in [path di installazione]/bin/
JMeter: Elementi di Base 
 Test Plan: racchiude tutti gli elementi del test 
 Thread Group: gruppi di utenti 
 Sampler: generatore di request 
 Listener: monitoraggio e report dei risultati 
 Assertions: validazione delle risposte 
 Pre processors: operazioni sui dati delle request 
 Post Processors: operazioni sulle response 
 Timer: temporizzano le request 
 Logic Controller: operatori logici
Test Plan
Creazione di un test plan minimale 
 Aggiunta di un Thread Group 
 Aggiunta di un Sampler 
 Aggiunta di Listener
Thread Groups
Thread Groups
Samplers
Samplers
Timers
Timers
Pre Processors
Pre Processors
Post Processors
Listeners
Listeners
Listeners
Logic Controllers
Recording
HTTP
OJDBC
OJDBC
JMX
JMX
PerfMon Agent
Hits Per Second
Response Times Distribution
Throughput vs Threads

More Related Content

Viewers also liked (6)

EIP with Apache Camel
EIP with Apache CamelEIP with Apache Camel
EIP with Apache Camel
Andrea Torino Rodriguez
Server Day 2009: Spring dm Server by Alef Arendsen
Server Day 2009: Spring dm Server by Alef ArendsenServer Day 2009: Spring dm Server by Alef Arendsen
Server Day 2009: Spring dm Server by Alef Arendsen
JUG Genova
C# Chat for Windows: Network infrastructure + file sharing + clipboard sharin...
C# Chat for Windows: Network infrastructure + file sharing + clipboard sharin...C# Chat for Windows: Network infrastructure + file sharing + clipboard sharin...
C# Chat for Windows: Network infrastructure + file sharing + clipboard sharin...
Francesco Corazza
LINQ, Entities Framework & ORMs
LINQ, Entities Framework & ORMsLINQ, Entities Framework & ORMs
LINQ, Entities Framework & ORMs
JUG Genova
Introduction to C#
Introduction to C#Introduction to C#
Introduction to C#
Guido Magrin
Java 8
Java 8Java 8
Java 8
alessiostalla
Server Day 2009: Spring dm Server by Alef Arendsen
Server Day 2009: Spring dm Server by Alef ArendsenServer Day 2009: Spring dm Server by Alef Arendsen
Server Day 2009: Spring dm Server by Alef Arendsen
JUG Genova
C# Chat for Windows: Network infrastructure + file sharing + clipboard sharin...
C# Chat for Windows: Network infrastructure + file sharing + clipboard sharin...C# Chat for Windows: Network infrastructure + file sharing + clipboard sharin...
C# Chat for Windows: Network infrastructure + file sharing + clipboard sharin...
Francesco Corazza
LINQ, Entities Framework & ORMs
LINQ, Entities Framework & ORMsLINQ, Entities Framework & ORMs
LINQ, Entities Framework & ORMs
JUG Genova
Introduction to C#
Introduction to C#Introduction to C#
Introduction to C#
Guido Magrin

Similar to JMeter (20)

Jvm performance Tuning
Jvm performance TuningJvm performance Tuning
Jvm performance Tuning
Marco Sabatini
Profilazione utente in ambienti virtualizzati
Profilazione utente in ambienti virtualizzatiProfilazione utente in ambienti virtualizzati
Profilazione utente in ambienti virtualizzati
Pietro Corona
Android Test Driven Development
Android Test Driven DevelopmentAndroid Test Driven Development
Android Test Driven Development
sazilla
Linux Day 2018 Roma - Web Application Penetration Test (WAPT) con Linux
Linux Day 2018 Roma - Web Application Penetration Test (WAPT) con LinuxLinux Day 2018 Roma - Web Application Penetration Test (WAPT) con Linux
Linux Day 2018 Roma - Web Application Penetration Test (WAPT) con Linux
Simone Onofri
Marco Zani: Come dimensionare Magento per raggiungere i Key Performance Indic...
Marco Zani: Come dimensionare Magento per raggiungere i Key Performance Indic...Marco Zani: Come dimensionare Magento per raggiungere i Key Performance Indic...
Marco Zani: Come dimensionare Magento per raggiungere i Key Performance Indic...
Meet Magento Italy
70-485: ADVANCED OF DEVELOPING WINDOWS STORE APPS USING C#
70-485: ADVANCED OF DEVELOPING WINDOWS STORE APPS USING C#70-485: ADVANCED OF DEVELOPING WINDOWS STORE APPS USING C#
70-485: ADVANCED OF DEVELOPING WINDOWS STORE APPS USING C#
DotNetCampus
Un'infrastruttura di test per un sistema PACS
Un'infrastruttura di test per un sistema PACSUn'infrastruttura di test per un sistema PACS
Un'infrastruttura di test per un sistema PACS
Giacomo Petronio
SQL Server Workload Profiling
SQL Server Workload ProfilingSQL Server Workload Profiling
SQL Server Workload Profiling
Gianluca Hotz
A performance tuning methodology
A performance tuning methodologyA performance tuning methodology
A performance tuning methodology
Gianluca Sartori
Qualit del Software
Qualit del SoftwareQualit del Software
Qualit del Software
Yeser Rema
Beyond the Cache sfruttare appieno le potenzialita dei Service Worker (Eduar...
Beyond the Cache sfruttare appieno le potenzialita dei Service Worker (Eduar...Beyond the Cache sfruttare appieno le potenzialita dei Service Worker (Eduar...
Beyond the Cache sfruttare appieno le potenzialita dei Service Worker (Eduar...
EduardCapanu
Google AppEngine
Google AppEngineGoogle AppEngine
Google AppEngine
Alessio Dimauro
Java Unit Testing - In container and database testing
Java Unit Testing - In container and database testingJava Unit Testing - In container and database testing
Java Unit Testing - In container and database testing
fgianneschi
MDT autosave presentazione italiano
MDT autosave presentazione italianoMDT autosave presentazione italiano
MDT autosave presentazione italiano
Enzo M. Tieghi
Il testing con zend framework
Il testing con zend frameworkIl testing con zend framework
Il testing con zend framework
Zend by Rogue Wave Software
Installing Apache tomcat with Netbeans
Installing Apache tomcat with NetbeansInstalling Apache tomcat with Netbeans
Installing Apache tomcat with Netbeans
Davide Nardone
Selenium e testing web - di Alessio Benedetti
Selenium e testing web - di Alessio BenedettiSelenium e testing web - di Alessio Benedetti
Selenium e testing web - di Alessio Benedetti
Giuneco S.r.l
Tom EE appunti devoxx2012
Tom EE   appunti devoxx2012 Tom EE   appunti devoxx2012
Tom EE appunti devoxx2012
Nicola Pedot
SELinux - overview
SELinux - overviewSELinux - overview
SELinux - overview
Ce.Se.N.A. Security
Jvm performance Tuning
Jvm performance TuningJvm performance Tuning
Jvm performance Tuning
Marco Sabatini
Profilazione utente in ambienti virtualizzati
Profilazione utente in ambienti virtualizzatiProfilazione utente in ambienti virtualizzati
Profilazione utente in ambienti virtualizzati
Pietro Corona
Android Test Driven Development
Android Test Driven DevelopmentAndroid Test Driven Development
Android Test Driven Development
sazilla
Linux Day 2018 Roma - Web Application Penetration Test (WAPT) con Linux
Linux Day 2018 Roma - Web Application Penetration Test (WAPT) con LinuxLinux Day 2018 Roma - Web Application Penetration Test (WAPT) con Linux
Linux Day 2018 Roma - Web Application Penetration Test (WAPT) con Linux
Simone Onofri
Marco Zani: Come dimensionare Magento per raggiungere i Key Performance Indic...
Marco Zani: Come dimensionare Magento per raggiungere i Key Performance Indic...Marco Zani: Come dimensionare Magento per raggiungere i Key Performance Indic...
Marco Zani: Come dimensionare Magento per raggiungere i Key Performance Indic...
Meet Magento Italy
70-485: ADVANCED OF DEVELOPING WINDOWS STORE APPS USING C#
70-485: ADVANCED OF DEVELOPING WINDOWS STORE APPS USING C#70-485: ADVANCED OF DEVELOPING WINDOWS STORE APPS USING C#
70-485: ADVANCED OF DEVELOPING WINDOWS STORE APPS USING C#
DotNetCampus
Un'infrastruttura di test per un sistema PACS
Un'infrastruttura di test per un sistema PACSUn'infrastruttura di test per un sistema PACS
Un'infrastruttura di test per un sistema PACS
Giacomo Petronio
SQL Server Workload Profiling
SQL Server Workload ProfilingSQL Server Workload Profiling
SQL Server Workload Profiling
Gianluca Hotz
A performance tuning methodology
A performance tuning methodologyA performance tuning methodology
A performance tuning methodology
Gianluca Sartori
Qualit del Software
Qualit del SoftwareQualit del Software
Qualit del Software
Yeser Rema
Beyond the Cache sfruttare appieno le potenzialita dei Service Worker (Eduar...
Beyond the Cache sfruttare appieno le potenzialita dei Service Worker (Eduar...Beyond the Cache sfruttare appieno le potenzialita dei Service Worker (Eduar...
Beyond the Cache sfruttare appieno le potenzialita dei Service Worker (Eduar...
EduardCapanu
Java Unit Testing - In container and database testing
Java Unit Testing - In container and database testingJava Unit Testing - In container and database testing
Java Unit Testing - In container and database testing
fgianneschi
MDT autosave presentazione italiano
MDT autosave presentazione italianoMDT autosave presentazione italiano
MDT autosave presentazione italiano
Enzo M. Tieghi
Installing Apache tomcat with Netbeans
Installing Apache tomcat with NetbeansInstalling Apache tomcat with Netbeans
Installing Apache tomcat with Netbeans
Davide Nardone
Selenium e testing web - di Alessio Benedetti
Selenium e testing web - di Alessio BenedettiSelenium e testing web - di Alessio Benedetti
Selenium e testing web - di Alessio Benedetti
Giuneco S.r.l
Tom EE appunti devoxx2012
Tom EE   appunti devoxx2012 Tom EE   appunti devoxx2012
Tom EE appunti devoxx2012
Nicola Pedot

More from JUG Genova (8)

Lcds & Blaze Ds by Corneliu Creanga
Lcds & Blaze Ds by Corneliu CreangaLcds & Blaze Ds by Corneliu Creanga
Lcds & Blaze Ds by Corneliu Creanga
JUG Genova
Flex Air Intro
Flex Air IntroFlex Air Intro
Flex Air Intro
JUG Genova
Server Day 2009: Oracle/Bea Fusion Middleware by Paolo Ramasso
Server Day 2009: Oracle/Bea Fusion Middleware by Paolo RamassoServer Day 2009: Oracle/Bea Fusion Middleware by Paolo Ramasso
Server Day 2009: Oracle/Bea Fusion Middleware by Paolo Ramasso
JUG Genova
Server Day 2009: GlassFish 3 by Alexis Moussine-Pouchkine
Server Day 2009: GlassFish 3 by Alexis Moussine-PouchkineServer Day 2009: GlassFish 3 by Alexis Moussine-Pouchkine
Server Day 2009: GlassFish 3 by Alexis Moussine-Pouchkine
JUG Genova
Server Day 2009: JBoss 5.0 by Alessio Soldano
Server Day 2009: JBoss 5.0 by Alessio SoldanoServer Day 2009: JBoss 5.0 by Alessio Soldano
Server Day 2009: JBoss 5.0 by Alessio Soldano
JUG Genova
Java IDE Day 2008 - Introduction by JUG Genova
Java IDE Day 2008 - Introduction by JUG GenovaJava IDE Day 2008 - Introduction by JUG Genova
Java IDE Day 2008 - Introduction by JUG Genova
JUG Genova
Java Ide Day 2008 - Presentation on JDeveloper by Paolo Ramasso
Java Ide Day 2008 - Presentation on JDeveloper by Paolo RamassoJava Ide Day 2008 - Presentation on JDeveloper by Paolo Ramasso
Java Ide Day 2008 - Presentation on JDeveloper by Paolo Ramasso
JUG Genova
Java Ide Day 2008 - Presentation on Intelli J Idea by Vaclav Pech
Java Ide Day 2008 - Presentation on Intelli J Idea by Vaclav PechJava Ide Day 2008 - Presentation on Intelli J Idea by Vaclav Pech
Java Ide Day 2008 - Presentation on Intelli J Idea by Vaclav Pech
JUG Genova
Lcds & Blaze Ds by Corneliu Creanga
Lcds & Blaze Ds by Corneliu CreangaLcds & Blaze Ds by Corneliu Creanga
Lcds & Blaze Ds by Corneliu Creanga
JUG Genova
Flex Air Intro
Flex Air IntroFlex Air Intro
Flex Air Intro
JUG Genova
Server Day 2009: Oracle/Bea Fusion Middleware by Paolo Ramasso
Server Day 2009: Oracle/Bea Fusion Middleware by Paolo RamassoServer Day 2009: Oracle/Bea Fusion Middleware by Paolo Ramasso
Server Day 2009: Oracle/Bea Fusion Middleware by Paolo Ramasso
JUG Genova
Server Day 2009: GlassFish 3 by Alexis Moussine-Pouchkine
Server Day 2009: GlassFish 3 by Alexis Moussine-PouchkineServer Day 2009: GlassFish 3 by Alexis Moussine-Pouchkine
Server Day 2009: GlassFish 3 by Alexis Moussine-Pouchkine
JUG Genova
Server Day 2009: JBoss 5.0 by Alessio Soldano
Server Day 2009: JBoss 5.0 by Alessio SoldanoServer Day 2009: JBoss 5.0 by Alessio Soldano
Server Day 2009: JBoss 5.0 by Alessio Soldano
JUG Genova
Java IDE Day 2008 - Introduction by JUG Genova
Java IDE Day 2008 - Introduction by JUG GenovaJava IDE Day 2008 - Introduction by JUG Genova
Java IDE Day 2008 - Introduction by JUG Genova
JUG Genova
Java Ide Day 2008 - Presentation on JDeveloper by Paolo Ramasso
Java Ide Day 2008 - Presentation on JDeveloper by Paolo RamassoJava Ide Day 2008 - Presentation on JDeveloper by Paolo Ramasso
Java Ide Day 2008 - Presentation on JDeveloper by Paolo Ramasso
JUG Genova
Java Ide Day 2008 - Presentation on Intelli J Idea by Vaclav Pech
Java Ide Day 2008 - Presentation on Intelli J Idea by Vaclav PechJava Ide Day 2008 - Presentation on Intelli J Idea by Vaclav Pech
Java Ide Day 2008 - Presentation on Intelli J Idea by Vaclav Pech
JUG Genova

JMeter

  • 1. JMeter Per il performance test
  • 2. Cos竪 JMeter E un tool open source ideato per eseguire test funzionali di carico e per misurare le performance. Nato per il test di applicazioni web, JMeter permette di testare tramite numerosi protocolli ed interrogando diverse tipologie di server, quali: HTTP, HTTPS SOAP Database (OJDBC) FTP JMS LDAP TCP
  • 3. Cos竪 JMeter E un progetto apache completamente scritto in Java. http://jmeter.apache.org E altamente estensibile: http://jmeter-plugins.org
  • 4. Performance Test Il Performance Test determina quanto velocemente risponda un sistema sottoposto ad un determinato carico attraverso la validazione di indicatori chiave quali: Response time Throughput Latency Numero massimo di utenti concorrenti Utilizzo delle risorse
  • 5. Performance Test Valida la risposta, la velocit, la stabilit di un sistema. Determina i limiti di carico del sistema sotto test. Supporto al tuning ed all ottimizzazione del sistema.
  • 6. Tipologie di Test di Performance Load Test Vengono misurati i tempi di risposta il throughput e l utilizzo di risorse per identificare i limiti del sistema con uso normale e di picco. Stress Test Viene verificato il comportamento del sistema oltre il normale carico di picco. Endurance Test Viene verificato il comportamento del sistema con un uso sostenuto per per periodi di tempo significativi
  • 7. Jmeter: Prerequisiti ed avvio Ultima versione di Java installata Download di JMeter http://jmeter.apache.org/download_jmeter.cgi Avvio da .bat, .sh in [path di installazione]/bin/
  • 8. JMeter: Elementi di Base Test Plan: racchiude tutti gli elementi del test Thread Group: gruppi di utenti Sampler: generatore di request Listener: monitoraggio e report dei risultati Assertions: validazione delle risposte Pre processors: operazioni sui dati delle request Post Processors: operazioni sulle response Timer: temporizzano le request Logic Controller: operatori logici
  • 10. Creazione di un test plan minimale Aggiunta di un Thread Group Aggiunta di un Sampler Aggiunta di Listener
  • 25. HTTP
  • 26. OJDBC
  • 27. OJDBC
  • 28. JMX
  • 29. JMX