詹金斯(Jenkins)保存一些工作后变得非常慢 [英] Jenkins gets very slow after saving some Jobs

查看:89
本文介绍了詹金斯(Jenkins)保存一些工作后变得非常慢的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道与此主题相关的几个问题.但是,就我所搜寻的fas而言,我没有找到具有相同主题的主题/问题.

i know there are several issues with a topic close to this one. But as fas as I searched i did not found a thread/question with the same topic.

这是这种情况: 在我们的Jenkins服务器上,我们进行了很多构建工作(也许有几百个).其中一些在从站上运行,一些在主站上运行.现在,我被要求更改其中一些设置(比如说50),因此具有基于项目的安全性,我不得不更改它们在其上运行的从属服务器.在他们跑到奴隶之前,他们已经是另一种了.

So here is the situation: On our Jenkins Server we a many build jobs (maybe a few hundred). Some of them running on Slaves, some on the master. Now i was asked to change settings of some of them (lets say 50), so the have project based security and I had to change the slave server they are running on. Before they ran already on a Slave, but a different one.

问题: 一开始一切都很好.我快速更改了几个作业的设置,然后开始更改下一个作业的设置.但是一段时间后,配置设置开始加载的速度越来越慢.首先是几秒钟(10个工作之后),然后是几秒钟(20个工作之后),然后是一分钟(30个工作之后),现在是几分钟(40个工作之后).我用新的水龙头打开每个设置页面,并在完成配置后关闭该标签.

The Problem: In the beginning everything went fine. I changed the settings ob several jobs quick and startet to change the settings of the next job. But after some time the configuration settings began to load slower and slower. First it were a few secounds(after 10 Job), then a few more secounds (after 20 jobs), then like one minute (after 30 jobs) and now several minutes (after 40 jobs). I open every settings page in a new tap and close the tab once I finished my configurations.

我的问题: Jenkins为什么需要这么长时间才能打开配置页面?特别是因为一开始几乎没有加载时间,现在我换了几份工作后,我不得不等待几分钟.可能是什么原因?

My Question: Why does it take Jenkins so long to open up the configuration page? Especially because in the beginning there was nearly no loading tim and now after I changed a few jobs i have to wait minutes for it. What could be the reason?

推荐答案

您需要在第一步中了解此新从站的配置, 问题可能是基于内存的,因此在主实例上检查内存使用情况并检查Java进程,是否可以使用strace -p <PID>完成,具体取决于您的环境. 在大多数情况下,由于内存使用情况,实例速度可能会变慢.

You need to see in the first step what is configuration of this new slave, Issue can be memory based, so on master instance check the memory usage and check the java process, can be done with strace -p <PID> depends on your environment. Instance can be slower due to memmory usage which is in the most cases.

这篇关于詹金斯(Jenkins)保存一些工作后变得非常慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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