Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change number of threads for Jenkins server

I installed Jenkins on my vserver. When I had a look at htop Jenkins was running with 30 thread, each was allowed to allocate 247MB memory and up to 1181MB virtual memory.

Because I've only a small vserver I tried to change the number of threads. But I could not find any configuration file.

I installed jenkins via aptitude install jenkins and in htop I can see that Jenkins is running from: /usr/bin/java -jar /usr/share/jenkins/jenkins.war

Tomcat isn't installed as well as jetty isn't installed.

Where is the information about the number of threads saved? Or how can I reduce the number of threads for Jenkins?

like image 944
lszrh Avatar asked Feb 11 '12 23:02

lszrh


1 Answers

http://winstone.sourceforge.net/#commandLine is the official command-line reference - but as I mention in the comment --handlerCountMax (or --handlerCountStartup, for that matter) did not seem to work for me. Try it yourself (here's how to run Jenkins in stand-alone mode).

You may want to try to reduce the number of executors as well as disabling plugins you do not need and see what happens.

Please keep in mind, however, that if you plan to continue using Jenkins seriously, you should plan for more resources, not less: as the number of your jobs grows, so will the resource utilization.

like image 114
malenkiy_scot Avatar answered Oct 21 '22 23:10

malenkiy_scot