简体   繁体   English

Jenkins 服务器在构建 maven 项目时崩溃

[英]Jenkins server crashes while building maven project

After the clean install package Maven build is triggered it takes no more than 15-20 seconds for the job to freeze. clean install package Maven 构建被触发后,作业冻结不会超过 15-20 秒。 If I refresh the page it shows "This site can't be reached".如果我刷新页面,它会显示“无法访问此站点”。 In order to make it work again I have to manually restart it from the Ubuntu Server.为了让它再次工作,我必须从 Ubuntu 服务器手动重启它。 The logs don't show any building exceptions that would shutdown Jenkins. I also increased the heap size of Jenkins to 512M within etc/default/jenkins .日志没有显示任何会关闭 Jenkins 的构建异常。我还在etc/default/jenkins Jenkins 的堆大小增加到 512M。

Configuration:配置:

  • Spring Boot project hosted on GitLab Spring 启动项目托管于 GitLab
  • GitLab is integrated with Jenkins CI (it works fine and starts build on a new push on master) GitLab 与 Jenkins CI 集成(它工作正常并开始构建新的主推送)
  • Jenkins is hosted on a Digital Ocean droplet running on Ubuntu OS with 1GB RAM Jenkins 托管在运行 Ubuntu OS 的 Digital Ocean droplet 上,内存为 1GB

I also faced the same issue, my project crashed after我也遇到了同样的问题,我的项目在之后崩溃了

clean install package

but increasing the ram from 1GB to 4GB solved my issue但是将内存从1GB增加到4GB解决了我的问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM