Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-4908

The write-attribute operation does not work on a hosts JVM resource

XMLWordPrintable

      Under a hosts server config, /host=master/server-config=server-one/, there is a jvm resource. On this resource the write-attribute operation does not work expected.

      [domain@embedded /] /host=master/server-config=server-one/jvm=default:add
      {
          "outcome" => "success",
          "result" => undefined,
          "server-groups" => undefined
      }
      
      [domain@embedded /] /host=master/server-config=server-one/jvm=default:write-attribute(name=jvm-options["-Xlog:gc*:file=${jboss.domain.servers.dir}/server-two/log/gc.log"])
      {
          "outcome" => "success",
          "result" => undefined,
          "server-groups" => undefined
      }
      
      [domain@embedded /] /host=master/server-config=server-one/jvm=default:read-resource
      {
          "outcome" => "success",
          "result" => {
              "agent-lib" => undefined,
              "agent-path" => undefined,
              "debug-enabled" => undefined,
              "debug-options" => undefined,
              "env-classpath-ignored" => undefined,
              "environment-variables" => undefined,
              "heap-size" => undefined,
              "java-agent" => undefined,
              "java-home" => undefined,
              "jvm-options" => undefined,
              "launch-command" => undefined,
              "max-heap-size" => undefined,
              "max-permgen-size" => undefined,
              "permgen-size" => undefined,
              "stack-size" => undefined,
              "type" => undefined
          }
      }
      

      As you can see from the above command does not update the jvm-options. However if you use the add-jvm-option operation that does work. It seems the write-attribute operation should also work.

              bstansbe@redhat.com Brian Stansberry
              jperkins-rhn James Perkins
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: