Enable triggering of downstream projectsjava
Build whenever a SNAPSHOT dependency is builtweb
vi /etc/profile
export JENKINS_HOME=/jk 單獨掛載一塊磁盤出來
[root@localhost bin]# cat setenv.sh
export CATALINA_OPTS="$CATALINA_OPTS -Xms4096m"
export CATALINA_OPTS="$CATALINA_OPTS -Xmx4096m"
export CATALINA_OPTS="$CATALINA_OPTS -XX:MaxPermSize=512m"
[root@localhost bin]# pwd
/usr/local/jenkins-tomcat/bin
cat startup.sh
#!/bin/sh
source /etc/profiletomcat
內存10G
[root@localhost bin]# sysctl -p
vm.swappiness = 0app
或者
[root@localhost jenkins]# ps -ef|grep java
root 1526 1 0 02:17 ? 00:04:20 /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=20less