jenkins - 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)
...
解决方案
推荐阅读
- python - 如何从列表中停止 EC2 实例
- mysql - mysql 使用 CONCAT 从另一个表更新表列
- javascript - .innerHTML 编辑 HTML 但不显示
- java - Hashmap 仅返回所有 WebElement 中的一个值
- java - 无法使用 gradle 生成 Spring Boot 配置元数据
- java - 从外部数据源(例如从套接字读取的数据)修改 Java JTable AbstractTableModel
- google-bigquery - 试用用户:BigQuery Reservation 在 GCP 上的所有区域都有 0 个空位可供我使用。如何购买插槽?
- javascript - 如何合并重复数组?
- javascript - Vue/Electron/Webpack 在改变图像路径后找不到图像模块
- r - 任何使用 superlu 的 R 包都可以安装在 Windows 中