5 Replies Latest reply on Mar 18, 2014 6:04 AM by Emanuel Muckenhuber

    jvm memory parameters overwritting in domain mode in eap6.2

    Ja kub Novice

      shouldn't jvm settings in host-master.xml and host-slave.xml be overwritting jvm settings from domain.xml ?

       

      all nodes have memory from domain - 1303m, not from host-master.xml and host-slave.xml -64m-

      pgrep -fl shows: -XX:PermSize=256m -XX:MaxPermSize=256m -Xms1303m -Xmx1303m -server

       

      I supposed, that with below configuration there should be -Xms64m,

      is it en eap6.2 bug, or I am mistaken ?

       

      in domain.xml there is:

       

      <server-groups>
          <server-group name="main-server-group" profile="full">
              <jvm name="default">
                  <heap size="1303m" max-size="1303m"/>
                  <permgen max-size="256m"/>
              </jvm>
              <socket-binding-group ref="full-sockets"/>
          </server-group>
          <server-group name="other-server-group" profile="full-ha">
              <jvm name="default">
                  <heap size="1303m" max-size="1303m"/>
                  <permgen max-size="256m"/>
              </jvm>
              <socket-binding-group ref="full-ha-sockets"/>
          </server-group>
      </server-groups>

       

      both in host-master.xml and in host-slave.xml in default configuration there is

      <jvms>
             <jvm name="default">
              <heap size="64m" max-size="256m"/>
              <permgen size="256m" max-size="256m"/>
                <jvm-options>
                    <option value="-server"/>
                </jvm-options>
           </jvm>
          </jvms>

       

       

      Thx.

        • 1. Re: jvm memory parameters overwritting in domain mode in eap6.2
          Wolf-Dieter Fink Master

          Are you sure you use the correct host.xml?

           

          Overwrite follows (host)jvms; (domain)server-group; (host)server if you use the same jvm-name

          1 of 1 people found this helpful
          • 2. Re: jvm memory parameters overwritting in domain mode in eap6.2
            Ja kub Novice

            Wolf-Dieter Fink, thx for responose,

             

            In fresh just downloaded eap6.2, unpacked on two hosts, I hanged only auth for slave.

            master is started with

            ./domain.sh -Djboss.bind.address.management=0.0.0.0 -Djboss.bind.address=0.0.0.0

            slave is started with

            ./domain.sh -b=0.0.0.0 -Djboss.bind.address.management=0.0.0.0 --host-config=host-slave.xml --master-address=10.0.0.53


            are this commands ok ?


            on master pgrep -fl java :

            ubuntu@master:~$ pgrep -fl java

            1339 java -D[Process Controller] -server -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Dorg.jboss.boot.log.file=/opt/jboss/domain/log/process-controller.log -Dlogging.configuration=file:/opt/jboss/domain/configuration/logging.properties -jar /opt/jboss/jboss-modules.jar -mp /opt/jboss/modules org.jboss.as.process-controller -jboss-home /opt/jboss -jvm java -mp /opt/jboss/modules -- -Dorg.jboss.boot.log.file=/opt/jboss/domain/log/host-controller.log -Dlogging.configuration=file:/opt/jboss/domain/configuration/logging.properties -server -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -- -default-jvm java -Djboss.bind.address.management=0.0.0.0 -Djboss.bind.address=0.0.0.0

            1353 java -D[Host Controller] -Dorg.jboss.boot.log.file=/opt/jboss/domain/log/host-controller.log -Dlogging.configuration=file:/opt/jboss/domain/configuration/logging.properties -server -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -jar /opt/jboss/jboss-modules.jar -mp /opt/jboss/modules -jaxpmodule javax.xml.jaxp-provider org.jboss.as.host-controller -mp /opt/jboss/modules --pc-address 127.0.0.1 --pc-port 48496 -default-jvm java -Djboss.bind.address.management=0.0.0.0 -Djboss.bind.address=0.0.0.0 -Djboss.home.dir=/opt/jboss

            1412 /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java -D[Server:server-three] -XX:PermSize=256m -XX:MaxPermSize=256m -Xms1303m -Xmx1303m -server -D[Host Controller]=true -Djboss.bind.address=0.0.0.0 -Djboss.bind.address.management=0.0.0.0 -Djava.awt.headless=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djboss.home.dir=/opt/jboss -Djava.net.preferIPv4Stack=true -Djboss.server.log.dir=/opt/jboss/domain/servers/server-three/log -Djboss.server.temp.dir=/opt/jboss/domain/servers/server-three/tmp -Djboss.server.data.dir=/opt/jboss/domain/servers/server-three/data -Dlogging.configuration=file:/opt/jboss/domain/servers/server-three/data/logging.properties -jar /opt/jboss/jboss-modules.jar -mp /opt/jboss/modules -jaxpmodule javax.xml.jaxp-provider org.jboss.as.server

            1446 /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java -D[Server:server-four] -XX:PermSize=256m -XX:MaxPermSize=256m -Xms1303m -Xmx1303m -server -D[Host Controller]=true -Djboss.bind.address=0.0.0.0 -Djboss.bind.address.management=0.0.0.0 -Djava.awt.headless=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djboss.home.dir=/opt/jboss -Djava.net.preferIPv4Stack=true -Djboss.server.log.dir=/opt/jboss/domain/servers/server-four/log -Djboss.server.temp.dir=/opt/jboss/domain/servers/server-four/tmp -Djboss.server.data.dir=/opt/jboss/domain/servers/server-four/data -Dlogging.configuration=file:/opt/jboss/domain/servers/server-four/data/logging.properties -jar /opt/jboss/jboss-modules.jar -mp /opt/jboss/modules -jaxpmodule javax.xml.jaxp-provider org.jboss.as.server

             

            on slave pgrep -fl java:

            Wolf-Dieter Fink, thx for responose,

             

            In fresh just downloaded eap6.2, unpacked on two hosts, I hanged only auth for slave.

            master is started with

            ./domain.sh -Djboss.bind.address.management=0.0.0.0 -Djboss.bind.address=0.0.0.0

            slave is started with

            ./domain.sh -b=0.0.0.0 -Djboss.bind.address.management=0.0.0.0 --host-config=host-slave.xml --master-address=10.0.0.53


            are this commands ok ?


            on master pgrep -fl java :

            ubuntu@master:~$ pgrep -fl java

            1339 java -D[Process Controller] -server -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Dorg.jboss.boot.log.file=/opt/jboss/domain/log/process-controller.log -Dlogging.configuration=file:/opt/jboss/domain/configuration/logging.properties -jar /opt/jboss/jboss-modules.jar -mp /opt/jboss/modules org.jboss.as.process-controller -jboss-home /opt/jboss -jvm java -mp /opt/jboss/modules -- -Dorg.jboss.boot.log.file=/opt/jboss/domain/log/host-controller.log -Dlogging.configuration=file:/opt/jboss/domain/configuration/logging.properties -server -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -- -default-jvm java -Djboss.bind.address.management=0.0.0.0 -Djboss.bind.address=0.0.0.0

            1353 java -D[Host Controller] -Dorg.jboss.boot.log.file=/opt/jboss/domain/log/host-controller.log -Dlogging.configuration=file:/opt/jboss/domain/configuration/logging.properties -server -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -jar /opt/jboss/jboss-modules.jar -mp /opt/jboss/modules -jaxpmodule javax.xml.jaxp-provider org.jboss.as.host-controller -mp /opt/jboss/modules --pc-address 127.0.0.1 --pc-port 48496 -default-jvm java -Djboss.bind.address.management=0.0.0.0 -Djboss.bind.address=0.0.0.0 -Djboss.home.dir=/opt/jboss

            1412 /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java -D[Server:server-three] -XX:PermSize=256m -XX:MaxPermSize=256m -Xms1303m -Xmx1303m -server -D[Host Controller]=true -Djboss.bind.address=0.0.0.0 -Djboss.bind.address.management=0.0.0.0 -Djava.awt.headless=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djboss.home.dir=/opt/jboss -Djava.net.preferIPv4Stack=true -Djboss.server.log.dir=/opt/jboss/domain/servers/server-three/log -Djboss.server.temp.dir=/opt/jboss/domain/servers/server-three/tmp -Djboss.server.data.dir=/opt/jboss/domain/servers/server-three/data -Dlogging.configuration=file:/opt/jboss/domain/servers/server-three/data/logging.properties -jar /opt/jboss/jboss-modules.jar -mp /opt/jboss/modules -jaxpmodule javax.xml.jaxp-provider org.jboss.as.server

            1446 /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java -D[Server:server-four] -XX:PermSize=256m -XX:MaxPermSize=256m -Xms1303m -Xmx1303m -server -D[Host Controller]=true -Djboss.bind.address=0.0.0.0 -Djboss.bind.address.management=0.0.0.0 -Djava.awt.headless=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djboss.home.dir=/opt/jboss -Djava.net.preferIPv4Stack=true -Djboss.server.log.dir=/opt/jboss/domain/servers/server-four/log -Djboss.server.temp.dir=/opt/jboss/domain/servers/server-four/tmp -Djboss.server.data.dir=/opt/jboss/domain/servers/server-four/data -Dlogging.configuration=file:/opt/jboss/domain/servers/server-four/data/logging.properties -jar /opt/jboss/jboss-modules.jar -mp /opt/jboss/modules -jaxpmodule javax.xml.jaxp-provider org.jboss.as.server

             

            on slave pgrep -fl java:

             

            Wolf-Dieter Fink, thx for responose,

             

            In fresh just downloaded eap6.2, unpacked on two hosts, I hanged only auth for slave.

            master is started with

            ./domain.sh -Djboss.bind.address.management=0.0.0.0 -Djboss.bind.address=0.0.0.0

            slave is started with

            ./domain.sh -b=0.0.0.0 -Djboss.bind.address.management=0.0.0.0 --host-config=host-slave.xml --master-address=10.0.0.53


            are this commands ok ?


            on master pgrep -fl java :

            ubuntu@master:~$ pgrep -fl java

            1339 java -D[Process Controller] -server -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Dorg.jboss.boot.log.file=/opt/jboss/domain/log/process-controller.log -Dlogging.configuration=file:/opt/jboss/domain/configuration/logging.properties -jar /opt/jboss/jboss-modules.jar -mp /opt/jboss/modules org.jboss.as.process-controller -jboss-home /opt/jboss -jvm java -mp /opt/jboss/modules -- -Dorg.jboss.boot.log.file=/opt/jboss/domain/log/host-controller.log -Dlogging.configuration=file:/opt/jboss/domain/configuration/logging.properties -server -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -- -default-jvm java -Djboss.bind.address.management=0.0.0.0 -Djboss.bind.address=0.0.0.0

            1353 java -D[Host Controller] -Dorg.jboss.boot.log.file=/opt/jboss/domain/log/host-controller.log -Dlogging.configuration=file:/opt/jboss/domain/configuration/logging.properties -server -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -jar /opt/jboss/jboss-modules.jar -mp /opt/jboss/modules -jaxpmodule javax.xml.jaxp-provider org.jboss.as.host-controller -mp /opt/jboss/modules --pc-address 127.0.0.1 --pc-port 48496 -default-jvm java -Djboss.bind.address.management=0.0.0.0 -Djboss.bind.address=0.0.0.0 -Djboss.home.dir=/opt/jboss

            1412 /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java -D[Server:server-three] -XX:PermSize=256m -XX:MaxPermSize=256m -Xms1303m -Xmx1303m -server -D[Host Controller]=true -Djboss.bind.address=0.0.0.0 -Djboss.bind.address.management=0.0.0.0 -Djava.awt.headless=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djboss.home.dir=/opt/jboss -Djava.net.preferIPv4Stack=true -Djboss.server.log.dir=/opt/jboss/domain/servers/server-three/log -Djboss.server.temp.dir=/opt/jboss/domain/servers/server-three/tmp -Djboss.server.data.dir=/opt/jboss/domain/servers/server-three/data -Dlogging.configuration=file:/opt/jboss/domain/servers/server-three/data/logging.properties -jar /opt/jboss/jboss-modules.jar -mp /opt/jboss/modules -jaxpmodule javax.xml.jaxp-provider org.jboss.as.server

            1446 /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java -D[Server:server-four] -XX:PermSize=256m -XX:MaxPermSize=256m -Xms1303m -Xmx1303m -server -D[Host Controller]=true -Djboss.bind.address=0.0.0.0 -Djboss.bind.address.management=0.0.0.0 -Djava.awt.headless=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djboss.home.dir=/opt/jboss -Djava.net.preferIPv4Stack=true -Djboss.server.log.dir=/opt/jboss/domain/servers/server-four/log -Djboss.server.temp.dir=/opt/jboss/domain/servers/server-four/tmp -Djboss.server.data.dir=/opt/jboss/domain/servers/server-four/data -Dlogging.configuration=file:/opt/jboss/domain/servers/server-four/data/logging.properties -jar /opt/jboss/jboss-modules.jar -mp /opt/jboss/modules -jaxpmodule javax.xml.jaxp-provider org.jboss.as.server

             

            on slave pgrep -fl java:

             

            ubuntu@slave:~$ pgrep -fl java
            1258 java -D[Process Controller] -server -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Dorg.jboss.boot.log.file=/opt/jboss/domain/log/process-controller.log -Dlogging.configuration=file:/opt/jboss/domain/configuration/logging.properties -jar /opt/jboss/jboss-modules.jar -mp /opt/jboss/modules org.jboss.as.process-controller -jboss-home /opt/jboss -jvm java -mp /opt/jboss/modules -- -Dorg.jboss.boot.log.file=/opt/jboss/domain/log/host-controller.log -Dlogging.configuration=file:/opt/jboss/domain/configuration/logging.properties -server -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -- -default-jvm java -b=0.0.0.0 -Djboss.bind.address.management=0.0.0.0 --host-config=host-slave.xml --master-address=10.0.0.53
            1272 java -D[Host Controller] -Dorg.jboss.boot.log.file=/opt/jboss/domain/log/host-controller.log -Dlogging.configuration=file:/opt/jboss/domain/configuration/logging.properties -server -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -jar /opt/jboss/jboss-modules.jar -mp /opt/jboss/modules -jaxpmodule javax.xml.jaxp-provider org.jboss.as.host-controller -mp /opt/jboss/modules --pc-address 127.0.0.1 --pc-port 59931 -default-jvm java -b=0.0.0.0 -Djboss.bind.address.management=0.0.0.0 --host-config=host-slave.xml --master-address=10.0.0.53 -Djboss.home.dir=/opt/jboss
            1305 /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java -D[Server:server-three] -XX:PermSize=256m -XX:MaxPermSize=256m -Xms1303m -Xmx1303m -server -D[Host Controller]=true -Djboss.bind.address=0.0.0.0 -Djboss.bind.address.management=0.0.0.0 -Djboss.domain.master.address=10.0.0.53 -Djava.awt.headless=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djboss.home.dir=/opt/jboss -Djava.net.preferIPv4Stack=true -Djboss.server.log.dir=/opt/jboss/domain/servers/server-three/log -Djboss.server.temp.dir=/opt/jboss/domain/servers/server-three/tmp -Djboss.server.data.dir=/opt/jboss/domain/servers/server-three/data -Dlogging.configuration=file:/opt/jboss/domain/servers/server-three/data/logging.properties -jar /opt/jboss/jboss-modules.jar -mp /opt/jboss/modules -jaxpmodule javax.xml.jaxp-provider org.jboss.as.server
            1335 /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java -D[Server:server-four] -XX:PermSize=256m -XX:MaxPermSize=256m -Xms1303m -Xmx1303m -server -D[Host Controller]=true -Djboss.bind.address=0.0.0.0 -Djboss.bind.address.management=0.0.0.0 -Djboss.domain.master.address=10.0.0.53 -Djava.awt.headless=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djboss.home.dir=/opt/jboss -Djava.net.preferIPv4Stack=true -Djboss.server.log.dir=/opt/jboss/domain/servers/server-four/log -Djboss.server.temp.dir=/opt/jboss/domain/servers/server-four/tmp -Djboss.server.data.dir=/opt/jboss/domain/servers/server-four/data -Dlogging.configuration=file:/opt/jboss/domain/servers/server-four/data/logging.properties -jar /opt/jboss/jboss-modules.jar -mp /opt/jboss/modules -jaxpmodule javax.xml.jaxp-provider org.jboss.as.server

             

            jvm memory settings are default eap6.2, I haven't changed them.

            Any idea ?

            • 3. Re: jvm memory parameters overwritting in domain mode in eap6.2
              Wolf-Dieter Fink Master

              In that case the server-group jvm setting take effect as it will overwrite the host-slave.xml setting for the "jvms/jvm default " setting.

               

              Start commands looks good to me

              1 of 1 people found this helpful
              • 4. Re: jvm memory parameters overwritting in domain mode in eap6.2
                Ja kub Novice

                But why server-group jvm setting overwrite the host-master.xml and host-slave.xml setting ?

                 

                How should I start domain and slave, to host-master.xml and host-slave.xml jvm settings overwrite domain.xml jvm settings ?

                 

                what is the reason for declaring

                <jvms>
                       <jvm name="default">
                        <heap size="64m" max-size="256m"/>....

                 

                in host-master.xml and in host-slave.xml, if their nodes use jvm setting from domain.xml ?

                who uses this jvm parameters defined in host-master.xml and in host-slave.xml ?

                 

                JVM settings - JBoss AS 7.2 - Project Documentation Editor

                • 5. Re: jvm memory parameters overwritting in domain mode in eap6.2
                  Emanuel Muckenhuber Master

                  The JVM models of host, server-group and server are combined (in that order). So if the <heap /> element is not present on the <server-group /> level the values from the host.xml are used.