Continous monitoring con Hudson, Jmeter e iPhone


Published on

Published in: Technology
1 Like
  • Be the first to comment

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Continous monitoring con Hudson, Jmeter e iPhone

  1. 1. Continous monitoring con Hudson, Jmeter e iPhone Riccardo Solimena – Codemotion 2011 - Roma Riccardo Solimena –
  2. 2. AbstractIl monitoraggio delle applicazioni è una parte fondamentale nel rilascio di un prodotto. Spesso però arrivati a fine progetto, il budget per finanziarlo è quasi inesistente. Grazie a prodotti Open e con uninterfaccia user-friendly come Hudson e JMeter, è possibile creare degli efficienti sistemi di monitoring in brevissimo tempo. Dopo una overview su Hudson e JMeter passeremo ad una demo utilizzando lo scheduling e le integrazioni con i plugin Jmeter, Alert Email e mobile monitoring su iPhone. Riccardo Solimena –
  3. 3. AgendaChi sono?Continous Integration – DefinizioneContinous Integration – Comparazione Prodotti OpenHudsonJenkinsJMeterSoap UIPlugins HudsonDEMODomandeRiferimenti Riccardo Solimena –
  4. 4. Chi Sono? Riccardo SolimenaAgenda Senior Analyst ProgrammerChi sono? SocietàContinous Integration – DefinizioneContinous Integration – Comparazione Prodotti OpenHudsonJenkins ClientiJMeterSoap UIPlugins HudsonDEMO CertificazioniDomandeRiferimenti Riccardo Solimena –
  5. 5. Continous Integration – DefinizioneAgenda Continuous Integration is a software development practice where members of a team integrate their work frequently, usually each person integrates at least daily - leading to multiple integrations per day. Each integration is verified by an automated build (including test) to detect integration errors as quickly as possible. Many teams find that this approach leads to significantly reduced integration problems and allows a team to develop cohesive software more rapidly. (M. Fowler) Riccardo Solimena –
  6. 6. Continous Integration – Comparazione ProdottiAgenda Apache Continuum • Pro: Advanced role security • VS: Verbose configuration. Only Java. Not easy to use Cruise Control • Pro: Java and .NET Projects • VS: Very verbose. Only XML Configs (external Swing application) Hudson • Pro: Simple. UI Interface. Extensible. Java and C#. 100+ stable Plugins (also TFS and JMeter). Monitoring externally-run jobs… Light. • VS: Not old as the other two (but 3+ years and acquired and extended from Oracle group) Riccardo Solimena –
  7. 7. Oracle HudsonAgenda Cron Java SMTP shell Hudson Maven JUnit Build Em@il bat Builds SVN Ant JMeter CVS TFS HTML Twitter iPhone RRS Image Riccardo Solimena –
  8. 8. Jenkins the Hudson forkAgenda January 2010… 7.4 milions $ Oracle acquires SUN Microsystem …April 2010 James Gosling, the creator of the Java programming language, has resigned from Oracle. Gosling follows a number of other noted ex-Sun employees out the door, including CEO Jonathan Schwartz, and XML co-inventor Tim Bray. ( Riccardo Solimena –
  9. 9. Jenkins the Hudson forkAgenda Hudson CI Jenkins CI Riccardo Solimena –
  10. 10. Apache JMeterAgenda • JMeter is an Apache Jakarta project that can be used as a load testing tool for analyzing and measuring the performance of a variety of services like: • Web - HTTP, HTTPS • SOAP • Database via JDBC • LDAP • JMS (Queues) • Mail - POP3(S) and IMAP(S) (Apache Jmeter web-site) Riccardo Solimena –
  11. 11. Apache JMeterAgenda Useful for availability and response time of systems and projects. • Servers/Machines are up or down? • Web Services are working/well? • SQL time response is good? • HTML pages are reachable? • Java code is responding with good performance? Riccardo Solimena –
  12. 12. SoapUIAgenda soapUI is a free and open source cross-platform Functional Testing solution. With an easy-to- use graphical interface, and enterprise-class features, soapUI allows you to easily and rapidly create and execute automated functional, regression, compliance, and load tests. In a single test environment, soapUI provides complete test coverage and supports all the standard protocols and technologies (soapUI web-site) Riccardo Solimena –
  13. 13. Plugins HudsonAgenda Hudson can produces scheduled builds. If exists a system that aggregate JMeter results so that Hudson can be used as web monitor it would be simple to create dinamics multiplatform monitoring systems... But… it exists ☺ Its name is “Performance Reports plugin” and integrates Jmeter executions in Hudson builds Riccardo Solimena –
  14. 14. DEMOAgenda Tomcat 5.5.29 Hudson 1.391 JMeter 2.4 SoapUI 3.0.1 Hudson Plugins: Performance Report 1.3 and iPhoneView 0.2 Monitoring • Application Server • Database • WebServices Riccardo Solimena –
  15. 15. Domande? (5 minuti...) Q: What if Hudson new release is released?Agenda A: hudson folder is different from configuration and projects’ folders, so upgrade is not a problem Q: What if JMeter project changes? A: Just open the jmx file from editor or Jmeter GUI and modify then save it, Ant and Hudson will no need changes. Q: How many MB is the web application? A: just 37 MB. Hudson configuration folder with Jmeter + iPhone + SVN plugins needs just additional 31MB. Single build is 16KB and it can be simply without impact the CI server (is an atomic folder) Q: What about JVM consuming? A: Hudson permits 100% JVM tuning directly by GUI, so memory usage is user defined Riccardo Solimena –
  16. 16. Riferimenti Jenkins Ant Jmeter JMeter plugin iPhone plugin SoapUI E-M@IL WEB FREE TIME TWITTER riccardosolimen Grazie a tutti! ☺ Riccardo Solimena –