In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains the "Jenkins temporary space shortage how to do", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in-depth, together to study and learn "Jenkins temporary space shortage how to do" it!
Environment:
Jenkins version of jenkins-2.89.4
The master and slave of Jenkins are all on the same host.
Os version of redhat7.2
Install jenkins using yum
Found that installed on 7.2, the remaining temporary space is very small, check through the login host
The remaining temporary space is taken from the temporary file system / tmp directory. The swap space is swap space.
The remaining temporary space is small, causing the node to fail to start. The default minimum available for Jenkins is 1G, which fails to start less than 1G.
It can be solved through configuration and space restrictions.
The above-mentioned treatment methods deal with the symptoms, but not the capital. It will affect the efficiency of using jenkins.
You can assign larger disks to the tmp directory when you size the file system at the beginning of the machine installation.
Or create a soft link to the tmp directory. But all of these methods involve rebooting the computer.
Reassign the temporary space directory for jenkins by modifying the configuration file and parameters.
Jenkins-mater profile
/ etc/sysconfig/jenkinsJENKINS_HOME= "/ data/opssino/jenkins" JENKINS_JAVA_OPTIONS= "- Djava.awt.headless=true-Djava.io.tmpdir=/var/tmp"
After the modification is completed, restart jenkins and the configuration of the primary node is complete.
Jenkins-slave does not have a configuration file
Log in to the Jenkins web end node configuration interface
Add JVM options as shown below
Note: verify tmp directory permissions.
Thank you for your reading, the above is the content of "Jenkins temporary space shortage", after the study of this article, I believe you have a deeper understanding of the problem of Jenkins temporary space shortage, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.