title: Cannot get Mule 3.4.0 to utilize more than 4GB of memory
body: <p>I'm currently working on a project which requires a large amount of memory, and I cannot get Mule 3.4.0 to utilize over 4gb of RAM (running on RHEL 6.2).  I am using the Java HotSpot 64-bit server JVM 1.7.0_45-b18 and the community version of Mule.</p>
  
  <p>I have been editing the wrapper.conf file and I have tried numerous settings to no avail.</p>
  
  <p>I see there is a bug listed in the Mule JIRA: <a href="https://www.mulesoft.org/jira/browse/MULE-7018" rel="nofollow">https://www.mulesoft.org/jira/browse/MULE-7018</a> which is closed against 3.4.0, but as incomplete.  </p>
  
  <p>My latest attempts have been to explicitly to try and force it to take up 8gb of heap space right away, the following being the latest attempt:</p>
  
  <pre><code># Initial Java Heap Size (in MB)
  wrapper.java.initmemory=8192
  
  # Maximum Java Heap Size (in MB)
  wrapper.java.maxmemory=8192
  </code></pre>
  
  <p>I have tried setting the <code>initmemory</code> and <code>maxmemory</code> paremeters to zero, in accordance with this old post about the wrapper: <a href="http://java-service-wrapper.996253.n3.nabble.com/4096MB-heap-limit-td1483.html" rel="nofollow">http://java-service-wrapper.996253.n3.nabble.com/4096MB-heap-limit-td1483.html</a> - However, this causes mule to not start properly.</p>
  
  <p>I have also explicitly tried to pass additional JVM parameters through the wrapper:</p>
  
  <pre><code>wrapper.java.additional.6=-Xmx8192
  wrapper.java.additional.7=-Xms8192
  </code></pre>
  
  <p>When doing this, I can see both memory settings being sent to the JVM (i.e. <code>-Xmx8192 -Xms8192</code> first on the process line followed by <code>-Xms4096m -Xmx4096m</code>).  However, my top command yields no more than 4.2gb of resident memory being taken by the JVM process.  I realize that the top RES column is not a 100% definitive way to determine JVM memory usage, but I am under the impression that if I'm trying to allocate 8gb out of the box, it should definitely exceed 4gb.  The machine has 60gb physical memory.</p>
  
  <p>Has anyone discovered a way to get more than 4GB of heap space for Mule 3.4.0?</p>