title: PermGen space error - Glassfish Server
body: <p>I am running java web application using Hibernate and glassfish Server. I am getting </p>
  
  <p><code>java.lang.OutOfMemoryError: PermGen space</code> exception when after I deploying it several times.</p>
  
  <p>I tried <code>-XX:MaxPermSize=128M</code> in my Environment variables, but it doesn't work.</p>