SlideShare una empresa de Scribd logo
1 de 27
Descargar para leer sin conexión
Flexible Magnolia Hosting
       in the Cloud

     Mathias Seiler
About us


        ☁    VMware vCloud™ Powered Service Provider
        ☁    Hosting hundreds of Magnolia CMS instances
        ☁    (Hosting Magnolia’s server infrastructure too)



www.mirocloud.com
Cloud starts today. With us.
http://www.mirocloud.com/
A few words on Java

        ☁    Fast and scalable
        ☁    Stable
        ☁    But ... Eats memory for breakfast




www.mirocloud.com
A few words on Java

        ☁    Start with 256M RAM at least (!)
        ☁    For STK: 512M or more
        ☁    (btw: not taking Derby into account)




www.mirocloud.com
How to scale?

        ☁    Throw hardware at the problem?
        ☁    Try to optimize memory allocations?
        ☁    Magic?




www.mirocloud.com
Do something crazy!

www.mirocloud.com
But before that ...
About Memory


        ☁    How is JVM memory “seen”
             by the OS (kernel) ?




www.mirocloud.com
About Memory
        ☁    Like a big chunk of memory assigned to a
             process.
        ☁    Kernel won’t manage it (except if swapping!)
        ☁    No visibility
        ☁    Extremely painful if it’s virtual memory
             (on a hypervisor, set full reservations)


www.mirocloud.com
Quick poll

        ☁    Who’s using VMware (vSphere) ?
        ☁    Hyper-V ?
        ☁    Xen ?
        ☁    KVM?
        ☁    Any other virtualization technology?



www.mirocloud.com
EM4J

        ☁    Part of VMware vFabric
        ☁    Elastic Memory for Java
        ☁    Java Heap Memory Pooling




www.mirocloud.com
Pooling memory?
                    Memory Pool




www.mirocloud.com
How does it work?


        ☁    Ballooning
        ☁    Coordination with the Hypervisor




www.mirocloud.com
How does it work?
                     OS




                    Balloon




www.mirocloud.com
How does it work?
                     OS
                     JVM



                    Balloon




www.mirocloud.com
How does it work?
                     OS
                     JVM


                    Balloon




www.mirocloud.com
How does it work?

        ☁    Balance memory between VMs and hosts*

             (*taking VMware’s Distributed Resource
             Scheduler into account)




www.mirocloud.com
How does it work?
                    OS      OS        OS
                    JVM    JVM       JVM


                Balloon
                                    Balloon
                          Balloon




www.mirocloud.com
How does it work?
                    Magnolia ...
                    Balloon.jar
                    vFabric tc
                        OS
                       ESXi




www.mirocloud.com
Why?

        ☁    Less memory = less cost/power/licenses ...
        ☁    (but the most interesting ...)
        ☁    It’s elastic!




www.mirocloud.com
What does this mean?

        ☁    You can run applications ...
        ☁    ... more dynamically
        ☁    ... with less or no OOM events at all
        ☁    ... without over-allocating memory




www.mirocloud.com
What does this mean?

        ☁    In fact:
        ☁    We even allocate more memory
             than before!
        ☁    Because that allocation is
             the maximum memory the JVM
             is going to consume.



www.mirocloud.com
Numbers

        ☁    You can save up to 40% of system memory
             (at least that’s what we measured)
        ☁    Even if you allocate
             more than you did before




www.mirocloud.com
“Elastic”

        ☁    real dynamic workload distribution
             (“cloud”)
        ☁    traffic / workload “spikes” flattened out
        ☁    easy configuration




www.mirocloud.com
Interesting notes

        ☁    It’s adaptive by design
        ☁    = very little performance impact
        ☁    more “busy” JVMs get more
             memory over time




www.mirocloud.com
Questions?




www.mirocloud.com

Más contenido relacionado

Más de bkraft

Single sourcing desktop and mobile websites
Single sourcing desktop and mobile websitesSingle sourcing desktop and mobile websites
Single sourcing desktop and mobile websites
bkraft
 
Solr and Image Module Extensions of Magnolia
Solr and Image Module Extensions of MagnoliaSolr and Image Module Extensions of Magnolia
Solr and Image Module Extensions of Magnolia
bkraft
 
End to end content managed online mobile banking
End to end content managed online mobile bankingEnd to end content managed online mobile banking
End to end content managed online mobile banking
bkraft
 
Yet Another E-Commerce Integration: Magnolia Loves Hybris
Yet Another E-Commerce Integration: Magnolia Loves Hybris Yet Another E-Commerce Integration: Magnolia Loves Hybris
Yet Another E-Commerce Integration: Magnolia Loves Hybris
bkraft
 
Magnolia 5 Magnolia Conference 2012 Keynote
Magnolia 5 Magnolia Conference 2012 KeynoteMagnolia 5 Magnolia Conference 2012 Keynote
Magnolia 5 Magnolia Conference 2012 Keynote
bkraft
 
Disruptive innovation workshop
Disruptive innovation workshopDisruptive innovation workshop
Disruptive innovation workshop
bkraft
 

Más de bkraft (20)

High performance and scalability
High performance and scalability High performance and scalability
High performance and scalability
 
Multilingual websites, microsites and landing pages
Multilingual websites, microsites and landing pagesMultilingual websites, microsites and landing pages
Multilingual websites, microsites and landing pages
 
Blossom on the web
Blossom on the webBlossom on the web
Blossom on the web
 
Single sourcing desktop and mobile websites
Single sourcing desktop and mobile websitesSingle sourcing desktop and mobile websites
Single sourcing desktop and mobile websites
 
Work life balance
Work life balanceWork life balance
Work life balance
 
Magnolia and PHPCR
Magnolia and PHPCRMagnolia and PHPCR
Magnolia and PHPCR
 
Solr and Image Module Extensions of Magnolia
Solr and Image Module Extensions of MagnoliaSolr and Image Module Extensions of Magnolia
Solr and Image Module Extensions of Magnolia
 
End to end content managed online mobile banking
End to end content managed online mobile bankingEnd to end content managed online mobile banking
End to end content managed online mobile banking
 
MBC Group - Magnolia in the Media
MBC Group - Magnolia in the MediaMBC Group - Magnolia in the Media
MBC Group - Magnolia in the Media
 
Yet Another E-Commerce Integration: Magnolia Loves Hybris
Yet Another E-Commerce Integration: Magnolia Loves Hybris Yet Another E-Commerce Integration: Magnolia Loves Hybris
Yet Another E-Commerce Integration: Magnolia Loves Hybris
 
Bridging the Gap: Magnolia Modules and Spring Configured Software
Bridging the Gap: Magnolia Modules and Spring Configured SoftwareBridging the Gap: Magnolia Modules and Spring Configured Software
Bridging the Gap: Magnolia Modules and Spring Configured Software
 
User Management and SSO for Austrian Government
User Management and SSO for Austrian GovernmentUser Management and SSO for Austrian Government
User Management and SSO for Austrian Government
 
Enterprise Extensions to Magnolia's Imaging
Enterprise Extensions to Magnolia's ImagingEnterprise Extensions to Magnolia's Imaging
Enterprise Extensions to Magnolia's Imaging
 
How the STK, CSS & HTML and Rapid Prototyping Accelerate the Design Process
How the STK, CSS & HTML and Rapid Prototyping Accelerate the Design ProcessHow the STK, CSS & HTML and Rapid Prototyping Accelerate the Design Process
How the STK, CSS & HTML and Rapid Prototyping Accelerate the Design Process
 
How AngryNerds Convinced Atlassian to Use Magnolia
How AngryNerds Convinced Atlassian to Use MagnoliaHow AngryNerds Convinced Atlassian to Use Magnolia
How AngryNerds Convinced Atlassian to Use Magnolia
 
Magnolia 5 Magnolia Conference 2012 Keynote
Magnolia 5 Magnolia Conference 2012 KeynoteMagnolia 5 Magnolia Conference 2012 Keynote
Magnolia 5 Magnolia Conference 2012 Keynote
 
Webinar 4.5-features-partners
Webinar 4.5-features-partnersWebinar 4.5-features-partners
Webinar 4.5-features-partners
 
Core capabilities of wcm - magnolia
Core capabilities of wcm -  magnoliaCore capabilities of wcm -  magnolia
Core capabilities of wcm - magnolia
 
Disruptive innovation workshop
Disruptive innovation workshopDisruptive innovation workshop
Disruptive innovation workshop
 
Supercharge Magnolia CMS with Semantic Technology by salsaDev
Supercharge Magnolia CMS with Semantic Technology by salsaDevSupercharge Magnolia CMS with Semantic Technology by salsaDev
Supercharge Magnolia CMS with Semantic Technology by salsaDev
 

Último

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Último (20)

Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdf
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 

Flexible Magnolia Hosting in the Cloud

  • 1. Flexible Magnolia Hosting in the Cloud Mathias Seiler
  • 2. About us ☁ VMware vCloud™ Powered Service Provider ☁ Hosting hundreds of Magnolia CMS instances ☁ (Hosting Magnolia’s server infrastructure too) www.mirocloud.com
  • 3. Cloud starts today. With us. http://www.mirocloud.com/
  • 4. A few words on Java ☁ Fast and scalable ☁ Stable ☁ But ... Eats memory for breakfast www.mirocloud.com
  • 5. A few words on Java ☁ Start with 256M RAM at least (!) ☁ For STK: 512M or more ☁ (btw: not taking Derby into account) www.mirocloud.com
  • 6. How to scale? ☁ Throw hardware at the problem? ☁ Try to optimize memory allocations? ☁ Magic? www.mirocloud.com
  • 9. About Memory ☁ How is JVM memory “seen” by the OS (kernel) ? www.mirocloud.com
  • 10. About Memory ☁ Like a big chunk of memory assigned to a process. ☁ Kernel won’t manage it (except if swapping!) ☁ No visibility ☁ Extremely painful if it’s virtual memory (on a hypervisor, set full reservations) www.mirocloud.com
  • 11. Quick poll ☁ Who’s using VMware (vSphere) ? ☁ Hyper-V ? ☁ Xen ? ☁ KVM? ☁ Any other virtualization technology? www.mirocloud.com
  • 12. EM4J ☁ Part of VMware vFabric ☁ Elastic Memory for Java ☁ Java Heap Memory Pooling www.mirocloud.com
  • 13. Pooling memory? Memory Pool www.mirocloud.com
  • 14. How does it work? ☁ Ballooning ☁ Coordination with the Hypervisor www.mirocloud.com
  • 15. How does it work? OS Balloon www.mirocloud.com
  • 16. How does it work? OS JVM Balloon www.mirocloud.com
  • 17. How does it work? OS JVM Balloon www.mirocloud.com
  • 18. How does it work? ☁ Balance memory between VMs and hosts* (*taking VMware’s Distributed Resource Scheduler into account) www.mirocloud.com
  • 19. How does it work? OS OS OS JVM JVM JVM Balloon Balloon Balloon www.mirocloud.com
  • 20. How does it work? Magnolia ... Balloon.jar vFabric tc OS ESXi www.mirocloud.com
  • 21. Why? ☁ Less memory = less cost/power/licenses ... ☁ (but the most interesting ...) ☁ It’s elastic! www.mirocloud.com
  • 22. What does this mean? ☁ You can run applications ... ☁ ... more dynamically ☁ ... with less or no OOM events at all ☁ ... without over-allocating memory www.mirocloud.com
  • 23. What does this mean? ☁ In fact: ☁ We even allocate more memory than before! ☁ Because that allocation is the maximum memory the JVM is going to consume. www.mirocloud.com
  • 24. Numbers ☁ You can save up to 40% of system memory (at least that’s what we measured) ☁ Even if you allocate more than you did before www.mirocloud.com
  • 25. “Elastic” ☁ real dynamic workload distribution (“cloud”) ☁ traffic / workload “spikes” flattened out ☁ easy configuration www.mirocloud.com
  • 26. Interesting notes ☁ It’s adaptive by design ☁ = very little performance impact ☁ more “busy” JVMs get more memory over time www.mirocloud.com