title: Jenkins is failing to start a 32-bit JVM for a job
body: <p>I'm running Jenkins 1.557. I have a job that I need to be built with a 32-bit version of JDK 1.6_u45. I have that version properly configured in my job's JDK setting. However, when I attempt to run the job, I get the following error.</p>
  
  <pre><code>Error occurred during initialization of VM
  Could not reserve enough space for object heap
  Could not create the Java virtual machine.
  </code></pre>
  
  <p>If I switch the job's JDK setting to a 64-bit version, the JVM is able to be created and it runs as normal. The server has 8GB of RAM available, and I've even attempted to pass in a string parameters of JAVA_OPTS=-Xms512m -Xmx1024m &amp; ANT_OPTS=-Xms512m -Xmx1024m to the build, but to no avail. </p>
  
  <p>Please note this is <em>not</em> a duplicate of <a href="https://stackoverflow.com/questions/4401396/could-not-reserve-enough-space-for-object-heap">Could not reserve enough space for object heap</a>. If I attempt to build the project at a regular command line (Windows environment variable JAVA_HOME pointing to the same 32-bit JDK installation as the Jenkins attempt), the project builds. This is seemingly a Jenkins specific issue.</p>
  
  <p>My guess is somewhere in Jenkins (or in some hidden Jenkins config file) the JVM heap size is being set too large for the 32-bit JVM, but I can't seem to pinpoint where that is being set. I've checked the jenkins.xml in JENKINS_HOME but the heap size is not being set in the arguments tag. </p>