Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-4447

Operations add-jvm-option and remove-jvm-option don't work in a reasonable way

    XMLWordPrintable

Details

    Description

      The following operation (cli/dmr) can be executed many times.

      :add-jvm-option(jvm-option=-Xdebug)
      

      The result will be:

      [domain@localhost:10099 jvm=default] :read-resource
      {
          "outcome" => "success",
          "result" => {
              "agent-lib" => undefined,
              "agent-path" => undefined,
              "env-classpath-ignored" => undefined,
              "environment-variables" => undefined,
              "heap-size" => "384m",
              "java-agent" => undefined,
              "java-home" => "C:/eplatform/java/jdk1.6.0",
              "jvm-options" => [
                  "-Xdebug",
                  "-Xdebug",
                  "-Xdebug",
                  "-Xdebug",
                  "-Xdebug"
              ],
              "max-heap-size" => "512m",
              "max-permgen-size" => "128m",
              "permgen-size" => "64m",
              "stack-size" => "512k",
              "type" => undefined
          }
      }
      

      The same string (jvm-option) can be added several times, this should not be possible.

      When removing a jvm-option, all jvm-options are removed:

      :remove-jvm-option(jvm-option=foo)
      

      results in:

      [domain@localhost:10099 jvm=default] :remove-jvm-option(jvm-option=foo)
      {
          "outcome" => "success",
          "result" => undefined,
          "server-groups" => undefined
      }
      [domain@localhost:10099 jvm=default] :read-resource
      {
          "outcome" => "success",
          "result" => {
              "agent-lib" => undefined,
              "agent-path" => undefined,
              "env-classpath-ignored" => undefined,
              "environment-variables" => undefined,
              "heap-size" => "384m",
              "java-agent" => undefined,
              "java-home" => "C:/eplatform/java/jdk1.6.0",
              "jvm-options" => [],
              "max-heap-size" => "512m",
              "max-permgen-size" => "128m",
              "permgen-size" => "64m",
              "stack-size" => "512k",
              "type" => undefined
          }
      }
      

      ...

      Attachments

        Activity

          People

            kkhan1@redhat.com Kabir Khan
            michael.voegele@cloudops Michael Voegele (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: