首页 > 解决方案 > Jenkins 催生了很多守护进程和服务器崩溃

问题描述

我最近在 Azure 上的廉价 VM 上安装了 Jenkins。规格非常低,因为我使用此服务器来测试设置:1vCPU 和 1GB RAM。通常同时只有 1 个构建,最大。3,在非常罕见的情况下。

在 Jenkins 的构建过程中,我的服务器经常会完全崩溃并保持 +- 10 - 15 分钟,直到能够再次使用。

我检查了服务器上的进程,结果如下: 运行进程

整行是这样的:

/etc/alternatives/java -Dcom.sun.akuma.Daemon=daemonized -Djava.awt.headless=true -DJENKINS_HOME=/var/lib/jenkins -jar /usr/lib/jenkins/jenkins.war --logfile=/var/log/jenkins/jenkins.log --webroot=/var/cache/jenkins/war --daemon --httpPort=8080 --debug=5 --handlerCountMax=100 --handlerCountMaxIdle=20

这些守护进程中的每一个都是相同的,没有一个参数是不同的。

这是正常行为吗,这是我的服务器崩溃的原因吗?还是我的规格太低,詹金斯无法继续使用?

提前致谢!

编辑:我的 jenkins.log 文件看起来很正常,除了一个 NullPointerException 不断出现:

    2020-01-08 12:43:17.702+0000 [id=148]   WARNING h.ExpressionFactory2$JexlExpression#evaluate: Caught exception evaluating: h.filterDescriptors(it,attrs.descriptors) in /configure. Reason: java.lang.NullPointerException: Descriptor list is null for context 'class hudson.model.Hudson' in thread 'Handling GET /configure from 85.154.65.124 : qtp2085857771-148 Jenkins/configure.jelly GlobalLibraries/config.jelly LibraryConfiguration/config.jelly SCMRetriever/DescriptorImpl/config.jelly MultiSCM/DescriptorImpl/config.jelly'
    java.lang.NullPointerException: Descriptor list is null for context 'class hudson.model.Hudson' in thread 'Handling GET /configure from 85.154.65.124 : qtp2085857771-148 Jenkins/configure.jelly GlobalLibraries/config.jelly LibraryConfiguration/config.jelly SCMRetriever/DescriptorImpl/config.jelly MultiSCM/DescriptorImpl/config.jelly'
            at hudson.model.DescriptorVisibilityFilter.apply(DescriptorVisibilityFilter.java:73)
            ...

标签: jenkinscentoscentos7

解决方案


推荐阅读