title: How to configure off-heap memory?
body: <p>My Ehcache(2.10.4) has been utilising heap memory a lot by default, what is the procedure to configure off-heap memory on the same?</p>
  
  <p>EHCache Config of the same:</p>
  
  <pre><code>&lt;defaultCache
      maxElementsInMemory="8000"
      maxElementsOnDisk="10000"
      eternal="false"
      timeToIdleSeconds="3600"
      timeToLiveSeconds="3600"
      overflowToDisk="true"
      diskPersistent="false"
      diskExpiryThreadIntervalSeconds="120"
      memoryStoreEvictionPolicy="LRU"
  /&gt;
  </code></pre>
  
  <p>Is there something that needs to be done for configuring off-heap memory.</p>