This is a guest post by Sam Van Oort,
Software Engineer at CloudBees and contributor to
the Jenkins project.
Today I’m going to show you best practices to write scalable and robust Jenkins Pipelines. This is drawn from a
combination of work with the internals of Pipeline and observations with large-scale users.
Pipeline code works beautifully for its intended role of automating
build/test/deploy/administer tasks. As it is pressed into...
This is a
post by Sam Van Oort, Software Engineer at
CloudBees and contributor to the Jenkins project.
Today I’m going to show you how easy it is to tune Jenkins Java settings to
make your masters more responsive and stable, especially with large heap sizes.
The Magic Settings:
Basics: -server -XX:+AlwaysPreTouch
GC Logging: -Xloggc:$JENKINS_HOME/gc-%t.log -XX:NumberOfGCLogFiles=5 -XX:+UseGCLogFileRotation -XX:GCLogFileSize=20m -XX:+PrintGC -XX:+PrintGCDateStamps -XX:+PrintGCDetails -XX:+PrintHeapAtGC -XX:+PrintGCCause -XX:+PrintTenuringDistribution -XX:+PrintReferenceGC -XX:+PrintAdaptiveSizePolicy
G1 GC settings: -XX:+UseG1GC -XX:+ExplicitGCInvokesConcurrent -XX:+ParallelRefProcEnabled...
Come join the first Jenkins User Conference in China!
Jenkins and DevOps: Ansible, Pipeline, Groovy, Config-as-Code, war stories...
We will talk about managing Jenkins with Chef,
Jenkins Security best practices, and Jenkins task queue internals and performance tweeks.