SlideShare une entreprise Scribd logo
1  sur  8
Télécharger pour lire hors ligne
You got an OutofMemoryException,
            now what?
           Andres Olarte
           Nick Rodriguez




4/16/10
Iden%fying	
  the	
  problem	
  

     Memory	
  related	
  problems	
  
     Performance	
  issues	
  
     Stability	
  issues	
  
     Frontend	
  vs.	
  backend	
  issues	
  
     Tools	
  to	
  examine	
  the	
  system	
  
              JMX	
  
              Logs	
  


4/16/10
Crea%ng	
  a	
  baseline	
  

     Simula%ng	
  traffic	
  
              Using	
  access	
  logs	
  as	
  test	
  base	
  
     Examining	
  the	
  memory	
  usage	
  
     Crea%ng	
  reproducible	
  tests	
  
              Tools	
  for	
  the	
  job	
  
              Comparing	
  results	
  




4/16/10
Understanding	
  the	
  System	
  

     Java	
  memory	
  management	
  
              Garbage	
  collec%on	
  
     Memory	
  u%liza%on	
  in	
  dotCMS	
  
     Database	
  usage	
  in	
  dotCMS	
  
     Common	
  boKlenecks	
  




4/16/10
Memory	
  issues	
  

     JVM	
  memory	
  configura%on	
  
     Cache	
  configura%on	
  
              Regions	
  and	
  their	
  sizes	
  
              Time	
  to	
  live	
  
     Per	
  request	
  memory	
  usage	
  
     Per	
  session	
  memory	
  usage	
  



4/16/10
Performance	
  issues	
  

     Per	
  page	
  performance	
  
     System-­‐wide	
  performance	
  
              Garbage	
  collec%on	
  
              hKp	
  vs	
  hKps	
  
     Resource	
  u%liza%on	
  
              Database	
  connec%ons	
  
              Client	
  connec%ons	
  



4/16/10
Best	
  prac%ces	
  

     Assign	
  as	
  much	
  memory	
  as	
  possible	
  
     Use	
  as	
  liKle	
  memory	
  as	
  possible	
  
     Limit	
  the	
  amount	
  of	
  data	
  used	
  per	
  page	
  
     If	
  benchmarking,	
  change	
  one	
  variable	
  at	
  a	
  
      %me	
  	
  




4/16/10
Thank you!!




4/16/10

Contenu connexe

En vedette

Super widget
Super widgetSuper widget
Super widgetdotCMS
 
dotCMS Roadmap 2010
dotCMS Roadmap 2010dotCMS Roadmap 2010
dotCMS Roadmap 2010dotCMS
 
The Making of a Rockin' Web Team
The Making of a Rockin' Web TeamThe Making of a Rockin' Web Team
The Making of a Rockin' Web TeamdotCMS
 
SEO and search plugins
SEO and search pluginsSEO and search plugins
SEO and search pluginsdotCMS
 
Velocity tips and tricks
Velocity tips and tricksVelocity tips and tricks
Velocity tips and tricksdotCMS
 
Justifying IT Spending
Justifying IT SpendingJustifying IT Spending
Justifying IT SpendingdotCMS
 

En vedette (7)

Super widget
Super widgetSuper widget
Super widget
 
dotCMS Roadmap 2010
dotCMS Roadmap 2010dotCMS Roadmap 2010
dotCMS Roadmap 2010
 
SEO
SEO SEO
SEO
 
The Making of a Rockin' Web Team
The Making of a Rockin' Web TeamThe Making of a Rockin' Web Team
The Making of a Rockin' Web Team
 
SEO and search plugins
SEO and search pluginsSEO and search plugins
SEO and search plugins
 
Velocity tips and tricks
Velocity tips and tricksVelocity tips and tricks
Velocity tips and tricks
 
Justifying IT Spending
Justifying IT SpendingJustifying IT Spending
Justifying IT Spending
 

Similaire à Out ofmemory

Cache Performance Evaluation under Multi-parameters Using SMPCache simulator
Cache Performance Evaluation under Multi-parameters Using SMPCache simulatorCache Performance Evaluation under Multi-parameters Using SMPCache simulator
Cache Performance Evaluation under Multi-parameters Using SMPCache simulatorالمهندسة عائشة بني صخر
 
InterConPHP 2014 - Scaling PHP
InterConPHP 2014 - Scaling PHPInterConPHP 2014 - Scaling PHP
InterConPHP 2014 - Scaling PHPLucas Arruda
 
Comparison of Amoeba, Mach & Chorus: DOS
Comparison of Amoeba, Mach & Chorus: DOSComparison of Amoeba, Mach & Chorus: DOS
Comparison of Amoeba, Mach & Chorus: DOSEr. Shiva K. Shrestha
 
Scalable Apache for Beginners
Scalable Apache for BeginnersScalable Apache for Beginners
Scalable Apache for Beginnerswebhostingguy
 
Understanding operating systems 5th ed ch03
Understanding operating systems 5th ed ch03Understanding operating systems 5th ed ch03
Understanding operating systems 5th ed ch03BarrBoy
 
VMWare Performance Tuning by Virtera (Jan 2009)
VMWare Performance Tuning by  Virtera (Jan 2009)VMWare Performance Tuning by  Virtera (Jan 2009)
VMWare Performance Tuning by Virtera (Jan 2009)vmug
 
Computer Architecture: A quantitative approach - Cap4 - Section 2
Computer Architecture: A quantitative approach - Cap4 - Section 2Computer Architecture: A quantitative approach - Cap4 - Section 2
Computer Architecture: A quantitative approach - Cap4 - Section 2Marcelo Arbore
 
Top 10 Scalability Mistakes
Top 10 Scalability MistakesTop 10 Scalability Mistakes
Top 10 Scalability MistakesJohn Coggeshall
 
Architecture of web servers
Architecture of web serversArchitecture of web servers
Architecture of web serversNicolas Vanhoren
 
MongoDB and server performance
MongoDB and server performanceMongoDB and server performance
MongoDB and server performanceAlon Horev
 
2014 valat-phd-defense-slides
2014 valat-phd-defense-slides2014 valat-phd-defense-slides
2014 valat-phd-defense-slidesSébastien Valat
 
1 Module - Operating Systems Configuration and Use by Mark John Lado
1 Module - Operating Systems Configuration and Use by Mark John Lado1 Module - Operating Systems Configuration and Use by Mark John Lado
1 Module - Operating Systems Configuration and Use by Mark John LadoMark John Lado, MIT
 
Mca ii os u-4 memory management
Mca  ii  os u-4 memory managementMca  ii  os u-4 memory management
Mca ii os u-4 memory managementRai University
 
scale_perf_best_practices
scale_perf_best_practicesscale_perf_best_practices
scale_perf_best_practiceswebuploader
 
Summary of Simultaneous Multithreading: Maximizing On-Chip Parallelism
Summary of Simultaneous Multithreading: Maximizing On-Chip ParallelismSummary of Simultaneous Multithreading: Maximizing On-Chip Parallelism
Summary of Simultaneous Multithreading: Maximizing On-Chip ParallelismFarwa Ansari
 
Virtual Memory in Operating System
Virtual Memory in Operating SystemVirtual Memory in Operating System
Virtual Memory in Operating SystemMeghaj Mallick
 
Windows memory management
Windows memory managementWindows memory management
Windows memory managementTech_MX
 

Similaire à Out ofmemory (20)

Cache Performance Evaluation under Multi-parameters Using SMPCache simulator
Cache Performance Evaluation under Multi-parameters Using SMPCache simulatorCache Performance Evaluation under Multi-parameters Using SMPCache simulator
Cache Performance Evaluation under Multi-parameters Using SMPCache simulator
 
InterConPHP 2014 - Scaling PHP
InterConPHP 2014 - Scaling PHPInterConPHP 2014 - Scaling PHP
InterConPHP 2014 - Scaling PHP
 
Comparison of Amoeba, Mach & Chorus: DOS
Comparison of Amoeba, Mach & Chorus: DOSComparison of Amoeba, Mach & Chorus: DOS
Comparison of Amoeba, Mach & Chorus: DOS
 
Scalable Apache for Beginners
Scalable Apache for BeginnersScalable Apache for Beginners
Scalable Apache for Beginners
 
Understanding operating systems 5th ed ch03
Understanding operating systems 5th ed ch03Understanding operating systems 5th ed ch03
Understanding operating systems 5th ed ch03
 
VMWare Performance Tuning by Virtera (Jan 2009)
VMWare Performance Tuning by  Virtera (Jan 2009)VMWare Performance Tuning by  Virtera (Jan 2009)
VMWare Performance Tuning by Virtera (Jan 2009)
 
Computer Architecture: A quantitative approach - Cap4 - Section 2
Computer Architecture: A quantitative approach - Cap4 - Section 2Computer Architecture: A quantitative approach - Cap4 - Section 2
Computer Architecture: A quantitative approach - Cap4 - Section 2
 
Top 10 Scalability Mistakes
Top 10 Scalability MistakesTop 10 Scalability Mistakes
Top 10 Scalability Mistakes
 
Architecture of web servers
Architecture of web serversArchitecture of web servers
Architecture of web servers
 
MongoDB and server performance
MongoDB and server performanceMongoDB and server performance
MongoDB and server performance
 
2014 valat-phd-defense-slides
2014 valat-phd-defense-slides2014 valat-phd-defense-slides
2014 valat-phd-defense-slides
 
1 Module - Operating Systems Configuration and Use by Mark John Lado
1 Module - Operating Systems Configuration and Use by Mark John Lado1 Module - Operating Systems Configuration and Use by Mark John Lado
1 Module - Operating Systems Configuration and Use by Mark John Lado
 
ppt
pptppt
ppt
 
CH09.pdf
CH09.pdfCH09.pdf
CH09.pdf
 
Mca ii os u-4 memory management
Mca  ii  os u-4 memory managementMca  ii  os u-4 memory management
Mca ii os u-4 memory management
 
scale_perf_best_practices
scale_perf_best_practicesscale_perf_best_practices
scale_perf_best_practices
 
Summary of Simultaneous Multithreading: Maximizing On-Chip Parallelism
Summary of Simultaneous Multithreading: Maximizing On-Chip ParallelismSummary of Simultaneous Multithreading: Maximizing On-Chip Parallelism
Summary of Simultaneous Multithreading: Maximizing On-Chip Parallelism
 
Virtual Memory in Operating System
Virtual Memory in Operating SystemVirtual Memory in Operating System
Virtual Memory in Operating System
 
Gfs
GfsGfs
Gfs
 
Windows memory management
Windows memory managementWindows memory management
Windows memory management
 

Out ofmemory

  • 1. You got an OutofMemoryException, now what? Andres Olarte Nick Rodriguez 4/16/10
  • 2. Iden%fying  the  problem     Memory  related  problems     Performance  issues     Stability  issues     Frontend  vs.  backend  issues     Tools  to  examine  the  system     JMX     Logs   4/16/10
  • 3. Crea%ng  a  baseline     Simula%ng  traffic     Using  access  logs  as  test  base     Examining  the  memory  usage     Crea%ng  reproducible  tests     Tools  for  the  job     Comparing  results   4/16/10
  • 4. Understanding  the  System     Java  memory  management     Garbage  collec%on     Memory  u%liza%on  in  dotCMS     Database  usage  in  dotCMS     Common  boKlenecks   4/16/10
  • 5. Memory  issues     JVM  memory  configura%on     Cache  configura%on     Regions  and  their  sizes     Time  to  live     Per  request  memory  usage     Per  session  memory  usage   4/16/10
  • 6. Performance  issues     Per  page  performance     System-­‐wide  performance     Garbage  collec%on     hKp  vs  hKps     Resource  u%liza%on     Database  connec%ons     Client  connec%ons   4/16/10
  • 7. Best  prac%ces     Assign  as  much  memory  as  possible     Use  as  liKle  memory  as  possible     Limit  the  amount  of  data  used  per  page     If  benchmarking,  change  one  variable  at  a   %me     4/16/10