Jenkins CI server – Out of Memory – Solution


Jenkis, the famous CI (Continuous Server) throws out the following error recently and occasionally.

FATAL: Java heap space
java.lang.OutOfMemoryError: Java heap space

The solution is to edit the jenkins.xml (in the Jenkins installation folder) and replace:

-Xrs -Xmx512m -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -jar "%BASE%\jenkins.war" --httpPort=8080

with

-Xrs -Xmx1024m -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -jar "%BASE%\jenkins.war" --httpPort=8080

Then, the Jenkins should be restarted safely, or you can do it by restarting the service (not recommended).

restart-jenkins Jenkins CI server - Out of Memory - Solution CI server java

restart-jenkins

–EOF (The Ultimate Computing & Technology Blog) —

GD Star Rating
loading...
168 words
Last Post: 32-bit Visual Studio and Delphi 2007/XE8 Eat Memory (any 64-bit IDE)?
Next Post: File Cannot Be Deleted - File in Use

The Permanent URL is: Jenkins CI server – Out of Memory – Solution

Leave a Reply