title: Memory usage of the Playframework
body: <p>Just a quick question on the memory usage of the play framework.
  I have a production instance, which appears to use 680768 kB of memory. Most of it is located in the swap. </p>
  
  <p>The (virtual) server has about 750 MB, but also runs the MySQL server and 12 Apache virtual servers. Sometimes becomes temporary unrespondent (or very slow) for short periods. 
  I guess it is because of the swapping (it is not the CPU). </p>
  
  <p>Does the framework need that much memory? 
  I could limit the memory usage with a JVM parameter <code>-Xmx256m</code> or so, but what value to put in, and what is the reason it uses so much memory?</p>
  
  <p>This is the usage by Play! before and after start:</p>
  
  <blockquote>
    <p>Java: ~~~~~ Version: 1.6.0_26 Home:
    /usr/lib/jvm/java-6-sun-1.6.0.26/jre 
    Max memory: 194641920 Free
    memory: 11813896 
    Total memory: 30588928 
    Available processors: 2</p>
    
    <p>After restart: Java: ~~~~~ Version: 1.6.0_26 Home:
    /usr/lib/jvm/java-6-sun-1.6.0.26/jre 
    Max memory: 194641920 Free
    memory: 9893688 
    Total memory: 21946368 
    Available processors: 2</p>
  </blockquote>