7 Replies Latest reply on Nov 17, 2011 2:48 PM by hibernal

    Setting jvm-options for domain hosts

    hibernal Newbie

      I can set heap sizes for my domain hosts in domain.xml and that works fine, but if i want to add some jvm-options my hosts wont get spawned ( it looks very much as if the xml no longer parses correctly.  Does anyone know a workaround in 7.0.2?

       

      this works:

      <server-group name="other-server-group" profile="ha">

                  <jvm name="default">

                      <heap size="64m" max-size="512m"/>

                  </jvm>

       

       

      but this will fail:

       

      <server-group name="other-server-group" profile="ha">

                  <jvm name="default">

                      <heap size="64m" max-size="512m"/>

                     <jvm-options>

                          <option value="-XX:+UnlockExperimentalVMOptions" />

                     </jvm-options>

                  </jvm>

       

      12:57:06,603 ERROR [org.jboss.as.controller] (Controller Boot Thread) Operation ("add-jvm-option") failed - address: ([

          ("server-group" => "other-server-group"),

          ("jvm" => "default")

      ]): java.lang.IllegalStateException: duplicate resource [

          ("server-group" => "other-server-group"),

          ("jvm" => "default")

      ]