0

I am currently running a Java trading system on a VM that needs ~32 GB RAM and runs (almost) 24/7. There are a couple of engines linked to it that require 4GB + 8BG respectively.

I am considering moving from VMs to containers.

Most of the articles I read talk about running web apps and the benefit of a container starting up fast but they don't talk about heavyweight applications.

For this question I would like to know whether the RAM requirements of the processes running within them are a consideration when comparing VMs to Containers, or is there no difference between the two?

0

the benefit of a container starting up fast but they don't talk about heavyweight applications.

yes and no. The container only contains the app and runtime (e.g. JVM), but the app and runtime starts up with the same speed as when running on a VM. But a VM usually takes longer time to create and start since you also have to boot the operating system. So it depends on how you compare.

Running an app in a container does not do your app startup faster.

For this question I would like to know whether the RAM requirements of the processes running within them are a consideration when comparing VMs to Containers, or is there no difference between the two?

The app will use the same amount of resources when run as a container as on VM. But with containers it is easier to manage multiple instances - so you could consider that - this is usually done to achieve better availability and zero downtime deployments - however your app need to be stateless if you consider scaling out to multiple instances.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.