2 Replies Latest reply on Feb 6, 2013 4:53 AM by wdfink

    Claculate JVM heap size for jboss-as-7.1.0.CR1b

    soumyadas1206

      How to calculate the JVM heap size required for a web application running on jboss-as-7.1.0.CR1b?

       

      Thanks & regards,

      Soumya Das

        • 1. Re: Claculate JVM heap size for jboss-as-7.1.0.CR1b
          nickarls

          Impossible to say, "all you can get" is usually close.

          You would have to monitor the application with jconsole or something while it's on heavy load, forcing garbage collection and seeing how much memory is actually being used.

          • 2. Re: Claculate JVM heap size for jboss-as-7.1.0.CR1b
            wdfink

            That depends on the Java version and the GC strategy you use, and extremly to the application requirement!

             

            If you have applications with short transactions and small memory footprint a small amount of memory will be better as the GC can act faster and does not have long 'stop the world' pauses, in that case I would prefere a 32Bit JVM b/c it can ge faster.

            With bigger memory consumption I would use a 64bit JVM.

             

            You have to monitor the behaviour.

            One thing is very important, Objects that are not used for longer should be died before a GC happen to be not copied to often and never moved to the old generation of Heap.