title: Jenkins build throwing an out of memory error
body: <p>We have Jenkins running on an ec2 instance. When doing a build, we see the following error:</p>
  
  <pre><code>17:29:39.149 [INFO] [org.gradle.api.Project] OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00000007ac000000, 234881024, 0) failed; error='Cannot allocate memory' (errno=12)
  17:29:39.150 [INFO] [org.gradle.api.Project] #
  
  17:29:39.150 [INFO] [org.gradle.api.Project] # There is insufficient memory for the Java Runtime Environment to continue.
  
  17:29:39.150 [INFO] [org.gradle.api.Project] # Native memory allocation (malloc) failed to allocate 234881024 bytes for committing reserved memory.
  </code></pre>
  
  <p>I researched on this topic and tried various settings such as increasing the heap memory, ram and PermGenSize. Here is my current memory setting on Jenkins: </p>
  
  <pre><code>-Xms256m -Xmx2048m -XX:MaxPermSize=512m
  </code></pre>
  
  <p>Are there any other things that I'm missing that's causing an OOM? </p>