Jenkins-out of memory

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

Popular posts from this blog

Stopping TypeScript Compile to accelerate debugging

VS2017 Unable to copy file roslyn