更改Jenkins服务器的线程数 [英] Change number of threads for Jenkins server

查看:1087
本文介绍了更改Jenkins服务器的线程数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的vserver上安装了Jenkins。当我看看htop Jenkins运行与30线程,每个被允许分配247MB内存和高达1181MB的虚拟内存。

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.

因为我只有一个小vserver我试图改变线程数。但我找不到任何配置文件。

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

我通过 aptitude install jenkins安装jenkins,在htop我可以看到Jenkins正在运行: / usr / bin / java -jar /usr/share/jenkins/jenkins.war

Tomcat未安装以及jetty isn

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

有关线程数的信息保存在哪里?或者如何减少Jenkins的线程数?

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

推荐答案

http://winstone.sourceforge.net/#commandLine 是官方的命令行参考 - 但正如我在注释中提到的 - handlerCountMax (或 - handlerCountStartup ,对于这件事)似乎并不适用于我。自己尝试(以下是如何在独立模式下运行Jenkins )。

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.

但请注意,如果你打算继续认真使用Jenkins,你应该计划更多资源,而不是更少:作为你的工作增长,所以资源利用率。

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.

这篇关于更改Jenkins服务器的线程数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆