News for hackers. Stuff that matters.
Re:Running Java in a Container by olavgg on Wednesday March 21, 2018 @11:21AM (#16638786)
Honestly I don't feel there is any need to run Java in containers. The war/jar file is its own container with its own dependencies. The JVM still makes the same syscalls as it would inside a Docker/Kubernetes container.

In fact I would rather look at serverless architecture before considering docker/Kubernetes.

Re:Running Java in a Container by cp9 on Wednesday March 21, 2018 @12:46PM (#16639881)
when you run a polyglot stack with java/python/go/node on top of a cluster of machines, you will love to have them containerized and uniform. It makes scripting and CI so much easier.

or, when you have a legacy app that relies on java 6, but you want everything else to run on java 8, the ability to drop everything into a container with its runtime is a life saver.

source: I'm the devops person that's responsible for making this work

Re:Running Java in a Container by olavgg on Wednesday March 21, 2018 @01:14PM (#16640223)
We already run a polyglot stack at our company, and we use Docker(nvidia-docker) for our Python environment. With Java there is no need, and it is a lot less work updating and upgrading the JVM and our Java applications. I would use Docker for Java 6 though.
Re:Running Java in a Container by joerg84 on Wednesday March 21, 2018 @08:33PM (#16644145)
cgroup limits can still be beneficial, consider for example contraining the (by default unlimited) metaspace.