Adam Bien's Weblog

Memory Footprint Of Java EE Servers On Docker -- And What Is The Difference To "Hello World"?

What is the memory (RAM) consumption of Java EE application servers: WebLogic, WildFly, WebSphere Liberty Profile, TomEE and Payara Server comparing it to a "Hello World" Java SE application running in a Docker container?

In this screencast I started the application servers and measured the RAM consumption of the entire docker image, the OS, JVM and application server included. The application servers were used with various JVM heap settings, so the results are not directly comparable, but are good enough for an estimation.

See docklands for the docker images used in the workshop. Each application server was started with deployed ping app and nano -- the Java 8 / Nashorn HTTP Server was used as "Hello World" reference.

See you at Java EE Workshops at Munich Airport, Terminal 2 and particularly at Java EE 7 Microservices.


NEW workshop: HTML 5 and JavaScript Essentials, Three days in April 2017: from Java EE 7 Architectures over Microservices to Performance, Troubleshooting and Monitoring
On demand workshops: Java EE 7: Bootstrap, Effective, Testing and Microservices available for streaming.

Newsletter: airhacks.news

A book about rethinking Java EE Patterns

Comments:

Really nice comparison. I think video about optimization would be great also:)

Best regards
TJ

Posted by TJ on April 05, 2016 at 11:13 AM CEST #

Adam, what are the benefits of using Swarm (or any embedded container) on Docker ? I don't see any advantage of running a fat jar instead setting a proper Wildfly for example.
Also, are SDKs reasonable on microservices for internal rest requests ? (coupling, maintenance etc). Thanks a lot and keep the good work !

Posted by Josh on April 08, 2016 at 08:23 PM CEST #

Did you use full Liberty server or web profile?

Posted by Paul on June 22, 2016 at 02:33 PM CEST #

Post a Comment:
  • HTML Syntax: NOT allowed
realworldpatterns.com
Online Workshops
...the last 150 posts
...the last 10 comments
License