Answers: <p>In general, you can go with the assumptions that running something inside docker does not add a significant amount of resource consumption, neither CPU nor RAM, compared to starting the same process directly.</p>
  
  <p>Also, it is usually good to optimize only if necessary. </p>
  
  <p>So pick the Jenkins configuration that seems cleanest/nicest/most elegant to you. If you run into trouble, <em>then</em> look for a solution. As you are running everything on a single physical machine, thinking too much about performance is a moot point anyways, it's not like the solution will scale in any direction, anyways. But getting to know Jenkins, and finding good configuration solutions which you may be able to apply in a "real" environment later is certainly possible in this way.</p>
  
Answers: CC BY-SA 3.0
Answers: 2018-04-18T18:35:45.180Z
Answers: 2018-04-18T18:35:45.180Z
Answers: AnoE
Body: <p>I have a Jenkins Master running in Windows as Local system. I have Jenkins slaves running as Docker containers in a VM in the same Machine.</p>
  
  <p>Everything is working OK, I just want to know are there any gains in memory consumption or ressources if I'm going to run parallel jobs in the master and slaves or should I just use parallel steps using pipeline in Master?</p>
  
Comments: CC BY-SA 3.0
Comments: 2018-04-18T11:29:17.937Z
Comments: I cannot comprehend the entire situation from this alone, but at a glance if you're running all from the same machine, it comes down to the same thing .. The only real way to find out is to test it.
Comments: storm
Comments: CC BY-SA 4.0
Comments: 2018-07-02T01:47:01.640Z
Comments: Upvoting because some stackoverflow peeps need to CHILL THE HELL OUT with the down voting. This is fine,  for chrisakes. Our rep is bad enough already without being jerks.
Comments: Iain Duncan
Tags: <docker><jenkins>
Title: Running Docker images as Jenkins slave
UserDisplayName: Amal Rahal
ThreadText: # Running Docker images as Jenkins slave
  
  (Asked by: username_0 on 2018-04-18)
  
  I have a Jenkins Master running in Windows as Local system. I have Jenkins slaves running as Docker containers in a VM in the same Machine.
  
  Everything is working OK, I just want to know are there any gains in memory consumption or ressources if I'm going to run parallel jobs in the master and slaves or should I just use parallel steps using pipeline in Master?
  
  **Tags:** docker, jenkins
  
  > **Comments:**
  > **username_1**: I cannot comprehend the entire situation from this alone, but at a glance if you're running all from the same machine, it comes down to the same thing .. The only real way to find out is to test it.  
  > **username_2**: Upvoting because some stackoverflow peeps need to CHILL THE HELL OUT with the down voting. This is fine,  for chrisakes. Our rep is bad enough already without being jerks.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_3 on 2018-04-18. Score: 1
  
  In general, you can go with the assumptions that running something inside docker does not add a significant amount of resource consumption, neither CPU nor RAM, compared to starting the same process directly.
  
  Also, it is usually good to optimize only if necessary.
  
  So pick the Jenkins configuration that seems cleanest/nicest/most elegant to you. If you run into trouble, *then* look for a solution. As you are running everything on a single physical machine, thinking too much about performance is a moot point anyways, it's not like the solution will scale in any direction, anyways. But getting to know Jenkins, and finding good configuration solutions which you may be able to apply in a "real" environment later is certainly possible in this way.
  
  
  ---
  
  