Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Greach 18: JavaMelody to measure Grails app performance

201 views

Published on

A very quick introduction to JavaMelody and how to use it in a Grails app.

Published in: Software
  • Be the first to comment

Greach 18: JavaMelody to measure Grails app performance

  1. 1. JavaMelody to measure Grails app performance Greach ‘18 Miguel Ángel García Gómez
  2. 2. 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
  3. 3. 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
  4. 4. A G E N D A ✴Installation and running ✴What can be measured ✴Statistics ✴Secure ✴Conclusions ✴Q&A @MiguelAngelGG82
  5. 5. A G E N D A ✴Installation and running ✴What can be measured ✴Statistics ✴Secure ✴Conclusions ✴Q&A @MiguelAngelGG82
  6. 6. INSTALLATION AND RUNNING @MiguelAngelGG82
  7. 7. INSTALLATION AND RUNNING @MiguelAngelGG82
  8. 8. A G E N D A ✴Installation and running ✴What can be measured ✴Statistics ✴Secure ✴Conclusions ✴Q&A @MiguelAngelGG82
  9. 9. 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
  10. 10. A G E N D A ✴Installation and running ✴What can be measured ✴Statistics ✴Secure ✴Conclusions ✴Q&A @MiguelAngelGG82
  11. 11. STATISTICS (I/V) @MiguelAngelGG82
  12. 12. STATISTICS (II/V) @MiguelAngelGG82
  13. 13. STATISTICS (III/V) @MiguelAngelGG82
  14. 14. 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
  15. 15. STATISTICS (V/V) @MiguelAngelGG82
  16. 16. A G E N D A ✴Installation and running ✴What can be measured ✴Statistics ✴Secure ✴Conclusions ✴Q&A @MiguelAngelGG82
  17. 17. SECURE @MiguelAngelGG82 ✴Basic security ✴Spring security javamelody: authorized-users: user1:pwd1, user2:pwd2 grails.plugin.springsecurity.controllerAnnotations.staticRules = [ […], [pattern: '/monitoring', access: ['ROLE_ADMIN']] ]
  18. 18. A G E N D A ✴Installation and running ✴What can be measured ✴Statistics ✴Secure ✴Conclusions ✴Q&A @MiguelAngelGG82
  19. 19. 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?
  20. 20. @MiguelAngelGG82 ✴"If you can not measure it, you can not improve it.” - Lord Kelvin
  21. 21. Questions https://bitbucket.org/miguelangel_garcia/grails-java-melody-example
  22. 22. Thank you! @MiguelAngelGG82

×