3 Replies Latest reply on Feb 14, 2010 10:16 AM by Damian Harvey

    Memory Consumption Very high

    Ross Nicholson Apprentice

      Hi, I was wondering what is the best way to reduce memory consumption using Seam.


      In our application it appears that pretty much all of the memory is allocated to the Session and the majority of that to HashSet (70%), which leads me to think that the majority of our memory issues are to do with EntityManager. All of our entity mangers use conversation scope.


      With only 10 users on the system we bounce between 60% and 90% percent of available heap where the total heap size is 16GB. I don't think I've ever had an app that's been able to use this much memory!


      Now we do use quite a lot of entities actively (read/write) on a single page but even by my most exaggerated calculations I can't imagine it's more that 100MB a user (and that's a stretch).


      It would be great to hear of some views regarding best practices for memory usage especially in relation to hibernate (which appears to be where a lot of memory usage resides).


      Cheers,


      R.