Uploaded image for project: 'HAL'
  1. HAL
  2. HAL-642

Console does not allow adding existing jvm name to the server in domain mode.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.6.10
    • 2.6.10
    • None
    • None
    • Hide

      1. Take fresh WildFly 9 instance.

      2. Start the default domain mode using the "./domain.sh" script

      3. Login to console and then access the http://localhost:9990/console/App.html#host-jvms page to create a new JVM setting inside the Domain--> JVM COnfigurations --> "Host JVM Configurations", See the "Add_Host_Jvm_Configuration.png" as mentioned in the attached screenshot.

      4. Now navigate to the http://localhost:9990/console/App.html#server-config URL to assign the above created Host JVM Configuration to the "server-one"
      Domain (Tab) --> Server Configurations --> server-one --> JVM Configuration --> edit the JVM name to "Test" and press "Save"

      It shows message that "Enter valid heap size value in mb" and "Enter valid heap size value in mb" . See attached screenshot "JVM_Name_Adding_to_Individual_Server.png"

      • However if we add it manually by editing the "host.xml" file or using CLI then it gets added successfully:
        Example:
           /host=master/server-config=server-one/jvm=Test/:add()
        

      The generated configuration now has the JVM name is Test.

          <servers>
              <server name="server-one" group="main-server-group">
                  <jvm name="Test"/>
              </server>
              .
              .
          <servers>
      
      Show
      1. Take fresh WildFly 9 instance. 2. Start the default domain mode using the "./domain.sh" script 3. Login to console and then access the http://localhost:9990/console/App.html#host-jvms page to create a new JVM setting inside the Domain--> JVM COnfigurations --> "Host JVM Configurations", See the "Add_Host_Jvm_Configuration.png" as mentioned in the attached screenshot. 4. Now navigate to the http://localhost:9990/console/App.html#server-config URL to assign the above created Host JVM Configuration to the "server-one" Domain (Tab) --> Server Configurations --> server-one --> JVM Configuration --> edit the JVM name to "Test" and press "Save" It shows message that "Enter valid heap size value in mb" and "Enter valid heap size value in mb" . See attached screenshot "JVM_Name_Adding_to_Individual_Server.png" However if we add it manually by editing the "host.xml" file or using CLI then it gets added successfully: Example: /host=master/server-config=server-one/jvm=Test/:add() The generated configuration now has the JVM name is Test. <servers> <server name= "server-one" group= "main-server-group" > <jvm name= "Test" /> </server> . . <servers>

      • Even if a JVM setting (like "Test") is created inside the "host.xml" as following the HAL console does not allow this JVM settings to be assigned to a server from console without altering the Heap settings.
          <jvms>
              <jvm name="default">
                  <heap size="64m" max-size="256m"/>
                  <permgen size="256m" max-size="256m"/>
                  <jvm-options>
                      <option value="-server"/>
                  </jvm-options>
              </jvm>
              <jvm name="Test">
                  <heap size="164m" max-size="1256m"/>
                  <permgen size="128m" max-size="128m"/>
              </jvm>
          </jvms>
      

              rhn-support-hbraun Heiko Braun
              jaysensharma Jay SenSharma (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: