SlideShare ist ein Scribd-Unternehmen logo
1 von 33
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

Weitere ähnliche Inhalte

Andere mochten auch

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 ArendsenJUG 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 & ORMsJUG Genova
 
Introduction to C#
Introduction to C#Introduction to C#
Introduction to C#Guido Magrin
 

Andere mochten auch (6)

EIP with Apache Camel
EIP with Apache CamelEIP with Apache Camel
EIP with Apache Camel
 
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
 
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...
 
LINQ, Entities Framework & ORMs
LINQ, Entities Framework & ORMsLINQ, Entities Framework & ORMs
LINQ, Entities Framework & ORMs
 
Introduction to C#
Introduction to C#Introduction to C#
Introduction to C#
 
Java 8
Java 8Java 8
Java 8
 

Ähnlich wie JMeter

Jvm performance Tuning
Jvm performance TuningJvm performance Tuning
Jvm performance TuningMarco Sabatini
 
Profilazione utente in ambienti virtualizzati
Profilazione utente in ambienti virtualizzatiProfilazione utente in ambienti virtualizzati
Profilazione utente in ambienti virtualizzatiPietro Corona
 
Android Test Driven Development
Android Test Driven DevelopmentAndroid Test Driven Development
Android Test Driven Developmentsazilla
 
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 LinuxSimone 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 PACSGiacomo Petronio
 
SQL Server Workload Profiling
SQL Server Workload ProfilingSQL Server Workload Profiling
SQL Server Workload ProfilingGianluca Hotz
 
A performance tuning methodology
A performance tuning methodologyA performance tuning methodology
A performance tuning methodologyGianluca Sartori
 
Qualità del Software
Qualità del SoftwareQualità del Software
Qualità del SoftwareYeser Rema
 
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 testingfgianneschi
 
MDT autosave presentazione italiano
MDT autosave presentazione italianoMDT autosave presentazione italiano
MDT autosave presentazione italianoEnzo M. Tieghi
 
Installing Apache tomcat with Netbeans
Installing Apache tomcat with NetbeansInstalling Apache tomcat with Netbeans
Installing Apache tomcat with NetbeansDavide 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 BenedettiGiuneco S.r.l
 
Tom EE appunti devoxx2012
Tom EE   appunti devoxx2012 Tom EE   appunti devoxx2012
Tom EE appunti devoxx2012 Nicola Pedot
 
Unit Test di Gabriele Seroni
Unit Test di Gabriele SeroniUnit Test di Gabriele Seroni
Unit Test di Gabriele SeroniGiuneco S.r.l
 

Ähnlich wie JMeter (20)

Jvm performance Tuning
Jvm performance TuningJvm performance Tuning
Jvm performance Tuning
 
Profilazione utente in ambienti virtualizzati
Profilazione utente in ambienti virtualizzatiProfilazione utente in ambienti virtualizzati
Profilazione utente in ambienti virtualizzati
 
Android Test Driven Development
Android Test Driven DevelopmentAndroid Test Driven Development
Android Test Driven Development
 
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
 
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...
 
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#
 
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
 
SQL Server Workload Profiling
SQL Server Workload ProfilingSQL Server Workload Profiling
SQL Server Workload Profiling
 
A performance tuning methodology
A performance tuning methodologyA performance tuning methodology
A performance tuning methodology
 
Qualità del Software
Qualità del SoftwareQualità del Software
Qualità del Software
 
Google AppEngine
Google AppEngineGoogle AppEngine
Google AppEngine
 
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
 
MDT autosave presentazione italiano
MDT autosave presentazione italianoMDT autosave presentazione italiano
MDT autosave presentazione italiano
 
Il testing con zend framework
Il testing con zend frameworkIl testing con zend framework
Il testing con zend framework
 
Il testing con zend framework
Il testing con zend frameworkIl testing con zend framework
Il testing con zend framework
 
Installing Apache tomcat with Netbeans
Installing Apache tomcat with NetbeansInstalling Apache tomcat with Netbeans
Installing Apache tomcat with Netbeans
 
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
 
Tom EE appunti devoxx2012
Tom EE   appunti devoxx2012 Tom EE   appunti devoxx2012
Tom EE appunti devoxx2012
 
SELinux - overview
SELinux - overviewSELinux - overview
SELinux - overview
 
Unit Test di Gabriele Seroni
Unit Test di Gabriele SeroniUnit Test di Gabriele Seroni
Unit Test di Gabriele Seroni
 

Mehr von JUG Genova

Lcds & Blaze Ds by Corneliu Creanga
Lcds & Blaze Ds by Corneliu CreangaLcds & Blaze Ds by Corneliu Creanga
Lcds & Blaze Ds by Corneliu CreangaJUG Genova
 
Flex Air Intro
Flex Air IntroFlex Air Intro
Flex Air IntroJUG 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 RamassoJUG 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-PouchkineJUG 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 SoldanoJUG 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 GenovaJUG 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 RamassoJUG 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 PechJUG Genova
 

Mehr von 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
 
Flex Air Intro
Flex Air IntroFlex Air Intro
Flex Air Intro
 
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
 
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
 
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
 
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
 
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
 
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
 

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