3 Replies Latest reply on Jun 26, 2003 2:38 PM by mlhuehue

    JBoss Memory Allocation

    sergiong

      I am setting in my JAVA_OPTS -Xms512M -Xmx1024M but it does not seem that JBoss allocates the minimum 512M that I am setting. Is there a work around this?

      Thanks,

      Sergio

        • 1. Re: JBoss Memory Allocation
          jonlee

          JBoss has no involvement with these settings. They are directives to the JVM on the setting of the JVM heap size limits. Most, if not all JVMs, do not automatically block-off this memory from the OS as this selfish strategy may be detrimental to operation, particularly in a shared environment. However, it does signal to the OS that it may need that much contiguous memory as a minimum. This reduces the churn, the need to incrementally add blocks as memory consumption grows and so on.

          However, all this is for use by the OS and the JVM. I'm sure that someone more qualified can give a better explanation of OS memory management.

          • 2. Re: JBoss Memory Allocation
            sergiong

            I understand, basically my question raised up, because I have the webMethods integration server running on another server and when I add those parameters for the jvm, it does allocate the memory as soon as the process starts.

            But based on those settings for the JVM, if my JBoss app server needs to use more memory, it will be allocated until I have defined the maximum?

            Thanks!

            • 3. Re: JBoss Memory Allocation
              mlhuehue

              If JBoss is in need of memory, like any Java app, it will allocated memory up to the defined maximum, yes. This is completely a JVM and not a JBoss issue, check your favorite JVM's documentation for more information

              Regards,
              Marco