Posts

Showing posts from April, 2018

Jenkins-out of memory

Image
Sometime, It will occur error while CI do a build job.As the following message. jenkins java.lang.OutOfMemoryError: Java heap space Before, when it occurred.I always thought that was the Java environment problem.Therefore my workaround is restart service. Honestly, I am not understanding Jenkins enough, a little bit lazy myself and so not seriously to find the answer. Workaround The default RAM setting is 256MB which can be found in the setup directory "jenkins.xml".As below image, I modify the value to 1024MB. Reference https://stackoverflow.com/questions/5936519/how-to-give-jenkins-more-heap-space-when-it%C2%B4s-started-as-a-service-under-windows