Answers: <blockquote>
  <p>the benefit of a container starting up fast but they don't talk about heavyweight applications.</p>
  </blockquote>
  <p>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.</p>
  <p>Running an app in a container does not do your app startup faster.</p>
  <blockquote>
  <p>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?</p>
  </blockquote>
  <p>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.</p>
  
Answers: CC BY-SA 4.0
Answers: 2021-02-26T21:10:03.373Z
Answers: 2021-02-26T21:10:03.373Z
Answers: Jonas
Body: <p>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.</p>
  <p>I am considering moving from VMs to containers.</p>
  <p>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.</p>
  <p>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?</p>
  
Tags: <docker><containers><virtualization>
Title: Does RAM Come Into The Container vs VM Decision?
UserDisplayName: opticyclic
ThreadText: # Does RAM Come Into The Container vs VM Decision?
  
  (Asked by: username_0 on 2021-02-26)
  
  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?
  
  **Tags:** docker, containers, virtualization
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2021-02-26. Score: 1
  
  > 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.
  
  
  ---
  
  