SlideShare ist ein Scribd-Unternehmen logo
1 von 27
Downloaden Sie, um offline zu lesen
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

Weitere ähnliche Inhalte

Mehr von 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
 

Mehr von 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
 

Kürzlich hochgeladen

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Kürzlich hochgeladen (20)

Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
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
 
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
 
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...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
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
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
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
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 

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