Jenkins 内存占用

查看内存占用

在这里插入图片描述

# ps aux | grep 9090
root      130854  0.0  0.0   8900   708 pts/1    S+   16:23   0:00 grep --color=auto 9090
root     4010748  0.2 30.7 5826500 2502884 ?     Ssl  Oct13   8:55 /usr/bin/java -Djava.awt.headless=true -jar /usr/share/java/jenkins.war --webroot=/var/cache/jenkins/war --httpPort=9090

限制内存

vim /etc/default/jenkins
JENKINS_ARGS="-Xmx2g --webroot=/var/cache/$NAME/war --httpPort=$HTTP_PORT"
systemctl daemon-reload
systemctl status jenkins.service
systemctl restart jenkins.service

参考

  1. Jenkins占用内存较大解决办法

你可能感兴趣的:(Jenkins,jenkins,运维,内存占用限制)