Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How Much Ram For a Jenkins Master Instance?

I want to set up a Jenkins Master that will let slaves do all the the builds.

  • The master is just a traffic cop, getting SVN hook triggers and kicking off slave builds.
  • There will be about 10 Java Maven build jobs in this setup.
  • I wish to run the Jenkins master on a hosted server that has limited resources (RAM).
  • I will run the slaves on some nicely loaded machines on my own network.

So my question is how little RAM could I get away with allocating to the Master Jenkins instance? 256M? 384M? 512M? Other?

I cannot seem to find this specific info in the Jenkins docs.

like image 629
William Parkinson Avatar asked Feb 05 '14 21:02

William Parkinson


People also ask

What is the memory requirement to run Jenkins master server?

Minimum hardware requirements: 256 MB of RAM. 1 GB of drive space (although 10 GB is a recommended minimum if running Jenkins as a Docker container)

How reduce Jenkins memory usage?

One is to make sure you're rotating your build history or discarding your old builds. That helps reduce Jenkins' memory footprint, which improves performance. We recommend keeping 30 to 60 days of build history, but you should configure this on a per-job basis.

What is Jenkins master?

Jenkins Master. The Jenkins master is in charge of scheduling the jobs, assigning slaves, and sending builds to slaves to execute the jobs. It'll also keep track of the slave state (offline or online) and retrieve the build result responses from slaves and display them on the console output.


1 Answers

A coworker asked me the same question and my first answer was that 1-2 GB should be enough. Later I discovered this entry from the Jenkins documentation:

Have a beefy machine for Jenkins master & do not run slaves on the master machine. Every slave has certain memory allocated in the master JVM, so the bigger the RAM for the master, the better it is. We typically hear customers allocate 16G or so.

Source: https://docs.cloudbees.com/docs/cloudbees-core/latest/traditional-install-guide/system-requirements

like image 198
Sascha Vetter Avatar answered Oct 07 '22 23:10

Sascha Vetter