Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I am assuming that the 680768 kB of memory that you are reporting is from an OS tool like ps or task manager. The total amount of memory used by the JVM is not causing the temporary freezing of the app. The likely cause of the pause is that the JVM Garbage collector is running a full GC which will suspend all threads in the JVM which the full GC is running (unless you have a concurrent gc configured).</p> <p>You should run the JVM running the playframework with -verbosegc -XX:+PrintGCDetails to see what the GC is doing.</p> <p>Your question "Does the Play Framework need that much memory" can not be answered because the amount of memory used will depend on what your application is doing on a pre request basis. Also the JVM will let the heap run down and then do a GC cycle to clean up the Heap. A well behaved JVM app should show a saw tooth pattern on the GC graph. </p> <p>I don't know which JVM you are using if you are using the hotspot VM read the JVM tunning guide. <a href="http://www.oracle.com/technetwork/java/javase/gc-tuning-6-140523.html">http://www.oracle.com/technetwork/java/javase/gc-tuning-6-140523.html</a> You generally need to understand the following GC concepts before reading the JVM tuning guide for the guide to make sense.</p> <ul> <li>Mark and Sweep Garbage Collection</li> <li>Mark, Sweep and Compact Garbage Collection</li> <li>Copy collector</li> <li>Generational Garbage Collection </li> <li>Parallel Garbage Collection</li> <li>Concurrent Garbage Collection</li> </ul> <p><a href="http://rads.stackoverflow.com/amzn/click/1420082795">http://www.amazon.com/Garbage-Collection-Handbook-Management-Algorithms/dp/1420082795/</a> is probably a good book on this subject</p> <p>A couple of free tools that ship with the hotspot JVM that you can use include jconsole, and jvisualvm. jvisualvm has a nice plugin called VisualGC which is great at learning how the hotspot vm manages memory.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload