Scenario / Questions
I’m running Jenkins CI on an Ubuntu EC2 micro instance (it’s the only thing running).
Every so often, OOM killer strikes, which is a real pain (I’ve already configured jenkins memory usage to a bare minimum).
Can I use supervisor (or similar?) to spin up jenkins again?
If so, what would the supervisor
run script look like?
Find below all possible solutions or suggestions for the above questions..
The following will restart the service if it ends abruptly AND force an allocation of 512M of RAM for the java VM. Adjust accordingly to maybe .5 or .75 of your RAM. You need some idle RAM to cache all the workspaces.
[program:jenkins] command = /usr/bin/java -Xms512m -Xmx512m -Xmsn512m -server -Djava.net.preferIPv4Stack=true -jar /usr/share/jenkins/jenkins.war --webroot=/var/cache/jenkins/war --httpPort=8080 --ajp13Port=-1 stdout_logfile = syslog redirect_stderr = true user = jenkins
Kubernetes Free Online Tutorial, Kubernetes Beginner Tutorial
DevOps Free Online Tutorial, DevOps Beginner Tutorial
Ansible Free Online Tutorial, Ansible Beginner Tutorial
Docker Free Online Tutorial, Docker Beginner Tutorial
Openstack Free Online Tutorial, Openstack Beginner Tutorial
Disclaimer: This has been sourced from a third party syndicated feed through internet. We are not responsibility or liability for its dependability, trustworthiness, reliability and data of the text. We reserves the sole right to alter, delete or remove (without notice) the content in its absolute discretion for any reason whatsoever.