JVM config

-Xms512m -Xmx1024m -XX:PermSize=64MB -XX:MaxPermSize=512M

-Xms512m: JVM heap initial size
-Xmx1024m: JVM heap max size

----java.lang.OutOfMemory

Perm: Permanate generation
-XX:PermSize: JVM perm initial size
-XX:MaxPermSize=512ML JVM perm max size

----java.lang.OutOfMemoryError: PermGen space