The JVM and Docker, a good idea?
Cloud, Containers & Infrastructure
|
Room 2
|
Friday at 13:20 - 14:10 |
Containers are the latest hype. It goes without saying that Docker for the development environment is a good thing but what about running our production Java applications inside a container?
One of the well known benefits of containers is that they provide a self-contained way to package and ship applications. However, it is already common practice to build fat executable jars that require only a JRE so what advantages would containers actually offer a pure Java shop? At Sky our motivation is efficient utilisation of hardware. We used to run single purpose VMs, which makes sense for production but for our countless test environments it is prohibitively expensive. Even IaaS is still too slow to provision new environments and bootstrap new applications. This talk will be focusing on the downsides and lessons learned from running JVMs inside containers.
We will cover the following topics:
- The benefits, downsides and complexities of running a Java application inside a container.
- Tuning memory limits taking into account Heap, Native memory, Metaspace, Stacks to avoid being OOM killed
- Tracking native memory with jcmd
- Operating system tools that are/are not container aware
|
Christopher Batey
|
Christopher (@chbatey) is a freelance software engineer. He is currently working as a Principal Software Engineer at Sky on a large project that is making use of non-blocking tools and frameworks within containers to vastly reduce the number of servers required to service millions of users. Likes: Scala, Java, the JVM, Akka, distributed databases, XP, TDD, Pairing. Hates: Untested software, code ownership. You can checkout his blog at: http://christopher-batey.blogspot.co.uk/.
|