Re:Running Java in a Container
by nerdwaller on Wednesday March 21, 2018 @08:49AM
(#16637543)
I wrote up my experience[0] on containerizing JVM based applications a bit ago using the cloud foundry java buildpack’s memory calculator. Fortunately the JVM now has a way to respect cgroup memory[1] making it a bit simpler.
[0]: https://medium.com/@matt_rasband/dockerizing-a-spring-boot-a... [1]: https://twitter.com/codepitbull/status/934384652806221825?s=...
Re:Running Java in a Container
by jacques_chester on Wednesday March 21, 2018 @07:04AM
(#16636983)
In particular, the Java buildpack uses a component developed entirely to calculate JVM settings.
I am not sure what the plans are for Java 9 and 10 yet. Ben Hale works on JBP pretty much fulltime and the Spring team tend to experiment pretty early on JDKs. So I can't see it falling far behind.
[0] https://github.com/cloudfoundry/java-buildpack-memory-calcul...
That's why I feel platforms like Cloud Foundry are a much better fit for teams that don't have tons of container experience but want to get the benefits of a containerized runtime. The CF java buildpack[1] for example automatically handles OOM and heap settings calculation while building your application container.
disclaimer: co-founder at meshcloud, we offer a public cloud service for Cloud Foundry and K8s hosted in german datacenters.