Jenkins-out of memory
![Image](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7dlajQwqmHs9RcpQifD1cWtw1Dj0hg5JL_4p1B7c9lwHCUozeZfIAUg7cCJ-6VA01jp0hcJRiQTPUyMchJfZ3t8L01x-mGNlosv1KRYutGK9-GkGb3vkDkxOPwpXHZuOprxbYPgnJ-jo/s1600/19f0e43419cf53ce0eebca8b05da9b88-794073.png)
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