title: Setting a heap memory above 4096MB on Karaf
body: <p>I'm using a java application which requires a lot of memory, and I'd like to be able to set the maximum available memory for the JVM to a value above 4096MB, such as 8192MB.</p>
  
  <p>I tried using the following parameter: </p>
  
  <pre><code>wrapper.java.maxmemory
  </code></pre>
  
  <p>which seems to work fine under the 4096MB threshold, but not above (it is stuck at something like 3.7GB or so).</p>
  
  <p>I'm using a 64b JVM.</p>
  
  <p>Where is the piece of code that prevents me from going above 4096MB?</p>