5 Replies Latest reply on Sep 26, 2011 3:04 PM by Jason Porter

    Best practises for minimizing memory footprint

    Stijn Cremers Novice

      I'm building an application using JSF/richfaces with ejb/cdi/seam and jpa/hibernate. I want to publish this application to openshift.


      But..openshift has a memory limit of 300MB with only 50MB of PermGen space.
      When i upload my application to openshift and click a few time, I get an outOfMemoryException due to PermGen space. When i run the application locally on jboss 7. I see that the PermGen Space is around 80MB.


      What are the best practises to reduce/minimize the memory footprint?


      Thanks!