Customizing jvm memory

At times, you may find that your server is being taxed too much by your builds.  Sometimes these can result in JVM crashes.  These can be particularly difficult to troubleshoot since it could also be issues with your build.

However here are a few general suggestions to try:

  • Use the env variable to see if we can increase it further

           An example for gradle would be GRADLE_OPTS=-Xmx512m

           An example for maven would be MAVEN_OPTS=-Xmx512m

  • Try setting JVM in some of the options to see if it somehow is overwriting our build specific (gradle, maven, etc) options.
Here is a useful information on jenkins memory link, though it doesnt tell us a whole lot for why our memorys not being picked up https://wiki.jenkins-ci.org/display/JENKINS/Builds+failing+with+OutOfMemoryErrors .
 
A last course of action is to request we increase your servers memory.
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk