SlideShare a Scribd company logo
JavaMelody to measure Grails app
performance
Greach ‘18
Miguel Ángel García Gómez
A B O U T @ M I G U E L A N G E L G G 8 2
✴ Software Engineer
✴ Senior Dev at Salenda
✴ Groovy & Grails dev
and more…
@MiguelAngelGG82
T O O L S
✴ Many tools to measure performance
✴ JavaMelody
✴ App dynamics (appdynamics.com)
✴ New relic (newrelic.com)
✴ Dynatrace (dynatrace.com)
@alberto_deavila
@albertoBaron1
A G E N D A
✴Installation and running
✴What can be measured
✴Statistics
✴Secure
✴Conclusions
✴Q&A
@MiguelAngelGG82
A G E N D A
✴Installation and running
✴What can be measured
✴Statistics
✴Secure
✴Conclusions
✴Q&A
@MiguelAngelGG82
INSTALLATION AND RUNNING
@MiguelAngelGG82
INSTALLATION AND RUNNING
@MiguelAngelGG82
A G E N D A
✴Installation and running
✴What can be measured
✴Statistics
✴Secure
✴Conclusions
✴Q&A
@MiguelAngelGG82
WHAT CAN BE MEASURED
@MiguelAngelGG82
✴ If you want to measure…
✴Memory used
✴Number of connected users
✴Number of current HTTP requests
✴Number of current SQL requests
✴… and so on
A G E N D A
✴Installation and running
✴What can be measured
✴Statistics
✴Secure
✴Conclusions
✴Q&A
@MiguelAngelGG82
STATISTICS (I/V)
@MiguelAngelGG82
STATISTICS (II/V)
@MiguelAngelGG82
STATISTICS (III/V)
@MiguelAngelGG82
STATISTICS (IV/V)
@MiguelAngelGG82
dataSource:
[…]
driverClassName: net.bull.javamelody.JdbcDriver
[…]
environments:
development:
dataSource:
dbCreate: create-drop
url: jdbc:mysql://localhost:3306/test?driver=com.mysql.jdbc.Driver
✴SQL Statistics
STATISTICS (V/V)
@MiguelAngelGG82
A G E N D A
✴Installation and running
✴What can be measured
✴Statistics
✴Secure
✴Conclusions
✴Q&A
@MiguelAngelGG82
SECURE
@MiguelAngelGG82
✴Basic security
✴Spring security
javamelody:
authorized-users: user1:pwd1, user2:pwd2
grails.plugin.springsecurity.controllerAnnotations.staticRules = [
[…],
[pattern: '/monitoring', access: ['ROLE_ADMIN']]
]
A G E N D A
✴Installation and running
✴What can be measured
✴Statistics
✴Secure
✴Conclusions
✴Q&A
@MiguelAngelGG82
CONCLUSIONS
@MiguelAngelGG82
✴Open Source and free
✴Lightweight and low overhead
✴Make decisions when trends are bad, before
problems become too serious
✴Is it old-fashioned?
@MiguelAngelGG82
✴"If you can not measure it, you can not improve
it.” - Lord Kelvin
Questions
https://bitbucket.org/miguelangel_garcia/grails-java-melody-example
Thank you!
@MiguelAngelGG82

More Related Content

Similar to Greach 18: JavaMelody to measure Grails app performance

Testing Grails 3, the goob (unit), the bad (integration) and the ugly (functi...
Testing Grails 3, the goob (unit), the bad (integration) and the ugly (functi...Testing Grails 3, the goob (unit), the bad (integration) and the ugly (functi...
Testing Grails 3, the goob (unit), the bad (integration) and the ugly (functi...
Alberto De Ávila Hernández
 
Business Agility in practice with Integral Objectives
Business Agility in practice with Integral Objectives Business Agility in practice with Integral Objectives
Business Agility in practice with Integral Objectives
Angel Diaz-Maroto
 
Stop Testing (Only) The Functionality of Your Mobile Apps!
Stop Testing (Only) The Functionality of Your Mobile Apps!Stop Testing (Only) The Functionality of Your Mobile Apps!
Stop Testing (Only) The Functionality of Your Mobile Apps!
Applitools
 
Grails Goto Plugins
Grails Goto PluginsGrails Goto Plugins
Grails Goto Pluginsericsword
 
Intro to google analytics
Intro to google analyticsIntro to google analytics
Intro to google analyticsVivastream
 
How Many Wheels You Have to Reinvent
How Many Wheels You Have to ReinventHow Many Wheels You Have to Reinvent
How Many Wheels You Have to Reinvent
Matt Harasymczuk
 
SQL Developer installation-guide
SQL Developer installation-guideSQL Developer installation-guide
SQL Developer installation-guideAngel G Diaz
 
A Detailed Guide on New Google Global Site Tag.pdf
A Detailed Guide on New Google Global Site Tag.pdfA Detailed Guide on New Google Global Site Tag.pdf
A Detailed Guide on New Google Global Site Tag.pdf
ecommerce Trends
 
Mastering Analytics and Integrations - Brightedge Share 2016 Speaking Engagement
Mastering Analytics and Integrations - Brightedge Share 2016 Speaking EngagementMastering Analytics and Integrations - Brightedge Share 2016 Speaking Engagement
Mastering Analytics and Integrations - Brightedge Share 2016 Speaking Engagement
Freddie Blicher
 
Getty/IO - Business Presentation 2017
Getty/IO - Business Presentation 2017Getty/IO - Business Presentation 2017
Getty/IO - Business Presentation 2017
Diogenes Buarque Ianakiara
 
Web challenge cmm
Web challenge cmmWeb challenge cmm
Web challenge cmmHerman Lee
 
Learn Software Testing for ISTQB Foundation Exam
Learn Software Testing for ISTQB Foundation ExamLearn Software Testing for ISTQB Foundation Exam
Learn Software Testing for ISTQB Foundation Exam
Yogindernath Gupta
 
The GeorgiaGov Platform Roadmap: Where We've Been, Where We Are, Where We're ...
The GeorgiaGov Platform Roadmap: Where We've Been, Where We Are, Where We're ...The GeorgiaGov Platform Roadmap: Where We've Been, Where We Are, Where We're ...
The GeorgiaGov Platform Roadmap: Where We've Been, Where We Are, Where We're ...
Kendra Skeene
 
Cultural learnings of testing for make benefit glorious nation of startup
Cultural learnings of testing for make benefit glorious nation of startupCultural learnings of testing for make benefit glorious nation of startup
Cultural learnings of testing for make benefit glorious nation of startup
Gil Tayar
 
Greach 19 - Micronaut Performance
Greach 19 - Micronaut PerformanceGreach 19 - Micronaut Performance
Greach 19 - Micronaut Performance
Miguel Ángel García Gómez
 
Publish Android Application on Google Play Store
Publish Android Application on Google Play Store Publish Android Application on Google Play Store
Publish Android Application on Google Play Store
Sandip Kalola
 
Becoming Data Driven
Becoming Data DrivenBecoming Data Driven
Becoming Data Driven
Timo Josten
 
Digital Analytics Summit 2022
Digital Analytics Summit 2022Digital Analytics Summit 2022
Digital Analytics Summit 2022
Martijn Scheijbeler
 
QUES#19 Automation and Quality 2022.pdf
QUES#19 Automation and Quality 2022.pdfQUES#19 Automation and Quality 2022.pdf
QUES#19 Automation and Quality 2022.pdf
sonalsingh547884
 
Eating Our Own Dog Food
Eating Our Own Dog FoodEating Our Own Dog Food
Eating Our Own Dog Food
The Transformation Society
 

Similar to Greach 18: JavaMelody to measure Grails app performance (20)

Testing Grails 3, the goob (unit), the bad (integration) and the ugly (functi...
Testing Grails 3, the goob (unit), the bad (integration) and the ugly (functi...Testing Grails 3, the goob (unit), the bad (integration) and the ugly (functi...
Testing Grails 3, the goob (unit), the bad (integration) and the ugly (functi...
 
Business Agility in practice with Integral Objectives
Business Agility in practice with Integral Objectives Business Agility in practice with Integral Objectives
Business Agility in practice with Integral Objectives
 
Stop Testing (Only) The Functionality of Your Mobile Apps!
Stop Testing (Only) The Functionality of Your Mobile Apps!Stop Testing (Only) The Functionality of Your Mobile Apps!
Stop Testing (Only) The Functionality of Your Mobile Apps!
 
Grails Goto Plugins
Grails Goto PluginsGrails Goto Plugins
Grails Goto Plugins
 
Intro to google analytics
Intro to google analyticsIntro to google analytics
Intro to google analytics
 
How Many Wheels You Have to Reinvent
How Many Wheels You Have to ReinventHow Many Wheels You Have to Reinvent
How Many Wheels You Have to Reinvent
 
SQL Developer installation-guide
SQL Developer installation-guideSQL Developer installation-guide
SQL Developer installation-guide
 
A Detailed Guide on New Google Global Site Tag.pdf
A Detailed Guide on New Google Global Site Tag.pdfA Detailed Guide on New Google Global Site Tag.pdf
A Detailed Guide on New Google Global Site Tag.pdf
 
Mastering Analytics and Integrations - Brightedge Share 2016 Speaking Engagement
Mastering Analytics and Integrations - Brightedge Share 2016 Speaking EngagementMastering Analytics and Integrations - Brightedge Share 2016 Speaking Engagement
Mastering Analytics and Integrations - Brightedge Share 2016 Speaking Engagement
 
Getty/IO - Business Presentation 2017
Getty/IO - Business Presentation 2017Getty/IO - Business Presentation 2017
Getty/IO - Business Presentation 2017
 
Web challenge cmm
Web challenge cmmWeb challenge cmm
Web challenge cmm
 
Learn Software Testing for ISTQB Foundation Exam
Learn Software Testing for ISTQB Foundation ExamLearn Software Testing for ISTQB Foundation Exam
Learn Software Testing for ISTQB Foundation Exam
 
The GeorgiaGov Platform Roadmap: Where We've Been, Where We Are, Where We're ...
The GeorgiaGov Platform Roadmap: Where We've Been, Where We Are, Where We're ...The GeorgiaGov Platform Roadmap: Where We've Been, Where We Are, Where We're ...
The GeorgiaGov Platform Roadmap: Where We've Been, Where We Are, Where We're ...
 
Cultural learnings of testing for make benefit glorious nation of startup
Cultural learnings of testing for make benefit glorious nation of startupCultural learnings of testing for make benefit glorious nation of startup
Cultural learnings of testing for make benefit glorious nation of startup
 
Greach 19 - Micronaut Performance
Greach 19 - Micronaut PerformanceGreach 19 - Micronaut Performance
Greach 19 - Micronaut Performance
 
Publish Android Application on Google Play Store
Publish Android Application on Google Play Store Publish Android Application on Google Play Store
Publish Android Application on Google Play Store
 
Becoming Data Driven
Becoming Data DrivenBecoming Data Driven
Becoming Data Driven
 
Digital Analytics Summit 2022
Digital Analytics Summit 2022Digital Analytics Summit 2022
Digital Analytics Summit 2022
 
QUES#19 Automation and Quality 2022.pdf
QUES#19 Automation and Quality 2022.pdfQUES#19 Automation and Quality 2022.pdf
QUES#19 Automation and Quality 2022.pdf
 
Eating Our Own Dog Food
Eating Our Own Dog FoodEating Our Own Dog Food
Eating Our Own Dog Food
 

Recently uploaded

Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024
Globus
 
De mooiste recreatieve routes ontdekken met RouteYou en FME
De mooiste recreatieve routes ontdekken met RouteYou en FMEDe mooiste recreatieve routes ontdekken met RouteYou en FME
De mooiste recreatieve routes ontdekken met RouteYou en FME
Jelle | Nordend
 
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data AnalysisProviding Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Globus
 
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdfDominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
AMB-Review
 
top nidhi software solution freedownload
top nidhi software solution freedownloadtop nidhi software solution freedownload
top nidhi software solution freedownload
vrstrong314
 
Enhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdfEnhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdf
Globus
 
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Shahin Sheidaei
 
Cyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdfCyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdf
Cyanic lab
 
Advanced Flow Concepts Every Developer Should Know
Advanced Flow Concepts Every Developer Should KnowAdvanced Flow Concepts Every Developer Should Know
Advanced Flow Concepts Every Developer Should Know
Peter Caitens
 
Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...
Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...
Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...
Hivelance Technology
 
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Globus
 
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2
 
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns
 
How to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good PracticesHow to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good Practices
Globus
 
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Globus
 
Visitor Management System in India- Vizman.app
Visitor Management System in India- Vizman.appVisitor Management System in India- Vizman.app
Visitor Management System in India- Vizman.app
NaapbooksPrivateLimi
 
How Recreation Management Software Can Streamline Your Operations.pptx
How Recreation Management Software Can Streamline Your Operations.pptxHow Recreation Management Software Can Streamline Your Operations.pptx
How Recreation Management Software Can Streamline Your Operations.pptx
wottaspaceseo
 
Understanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSageUnderstanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSage
Globus
 
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.ILBeyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Natan Silnitsky
 
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
informapgpstrackings
 

Recently uploaded (20)

Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024
 
De mooiste recreatieve routes ontdekken met RouteYou en FME
De mooiste recreatieve routes ontdekken met RouteYou en FMEDe mooiste recreatieve routes ontdekken met RouteYou en FME
De mooiste recreatieve routes ontdekken met RouteYou en FME
 
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data AnalysisProviding Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
 
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdfDominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
 
top nidhi software solution freedownload
top nidhi software solution freedownloadtop nidhi software solution freedownload
top nidhi software solution freedownload
 
Enhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdfEnhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdf
 
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
 
Cyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdfCyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdf
 
Advanced Flow Concepts Every Developer Should Know
Advanced Flow Concepts Every Developer Should KnowAdvanced Flow Concepts Every Developer Should Know
Advanced Flow Concepts Every Developer Should Know
 
Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...
Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...
Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...
 
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
 
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
 
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
 
How to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good PracticesHow to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good Practices
 
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
 
Visitor Management System in India- Vizman.app
Visitor Management System in India- Vizman.appVisitor Management System in India- Vizman.app
Visitor Management System in India- Vizman.app
 
How Recreation Management Software Can Streamline Your Operations.pptx
How Recreation Management Software Can Streamline Your Operations.pptxHow Recreation Management Software Can Streamline Your Operations.pptx
How Recreation Management Software Can Streamline Your Operations.pptx
 
Understanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSageUnderstanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSage
 
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.ILBeyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
 
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
 

Greach 18: JavaMelody to measure Grails app performance

Editor's Notes

  1. Hello everyone! Welcome to this talk about JavaMelody!
  2. My name is Miguel Ángel García, I’m software engineer and I work in Salenda
  3. In the page of monitoring, the summary shows evolution charts for several values of measures. These measures are taken at a time T, for example every minute. Each chart follows the evolution of a value of measure on the period short or large chosen with the links above the summary:  the day,  the week,  the month,  the year or  a custom period. Charts are persisted: a restart of the application server has no influence on them except of a hole in the measures.
  4. The java memory used, between 0 and the maximum memory specified in the server configuration. The number of HTTP sessions (or number of connected users). The number of active threads (or number of current HTTP requests). The number of active JDBC connections (or number of current SQL requests). More such as: * If Tomcat or JBoss, the number of active threads in all the server. * The CPU percentage of the garbage collector for the JVM. * The number of threads for the JVM * The number of loaded classes for the JVM
  5. A request appears in the statistics when it is finished Percentage of cumulative time (mean time * nb of hits) compared to other requests Hits: number of executions Mean time in milliseconds Maximum time in milliseconds Standard deviation between execution times: if it is high, the execution times are varied, and if it is low the execution times are closed to one another Percentage of cumulative CPU time (mean CPU time * nb of hits) Mean CPU time in milliseconds Percentage of system errors Mean size in kilo-bytes of the response stream
  6. Exceptions thrown by the application via a servlet and by an HTTP error code By clicking on the name of an error, it is possible to see its java stack-trace when it is a java exception. These statistics of errors allow to improve the reliability of the application based on its real usage in production.
  7. The statistics of system error logs show the 'warning' and 'error' logs written by the application