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

JVM resource description doesn't match operation return value

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • 7.1.0.CR1
    • None
    • Domain Management
    • None

      Reading a JVM resource description returns this:

      [domain@localhost:9999 /] /server-group=main-server-group/jvm=default:read-resource
      {
          "outcome" => "success",
          "result" => {
              "type" => undefined,
              "agent-lib" => undefined,
              "agent-path" => undefined,
              "env-classpath-ignored" => undefined,
              "environment-variables" => undefined,
              "heap-size" => "64m",
              "max-heap-size" => "512m",
              "java-agent" => undefined,
              "java-home" => undefined,
              "jvm-options" => undefined,
              "permgen-size" => undefined,
              "max-permgen-size" => undefined,
              "stack-size" => undefined
          },
          "compensating-operation" => undefined
      }
      

      However the resource description looks different.
      It describes certain elements as children,
      some of the are missing at all ('max-heap-size"')

      [domain@localhost:9999 /] /server-group=main-server-group/jvm=default:read-resource-description
      {
          "outcome" => "success",
          "result" => {
              "type" => OBJECT,
              "description" => "The JVM configuration for managed processes / servers.",
              "attributes" => {
                  "agent-lib" => {
                      "type" => STRING,
                      "description" => "The JVM agent lib.",
                      "access-type" => "read-write",
                      "storage" => "configuration"
                  },
                  "agent-path" => {
                      "type" => STRING,
                      "description" => "The JVM agent path.",
                      "access-type" => "read-write",
                      "storage" => "configuration"
                  },
                  "env-classpath-ignored" => {
                      "type" => BOOLEAN,
                      "description" => "Ignore the environment classpath.",
                      "access-type" => "read-write",
                      "storage" => "configuration"
                  },
                  "environment-variables" => {
                      "type" => LIST,
                      "value-type" => UNDEFINED,
                      "description" => "The JVM environment variables.",
                      "access-type" => "read-write",
                      "storage" => "configuration"
                  },
                  "java-agent" => {
                      "type" => STRING,
                      "description" => "The java agent.",
                      "access-type" => "read-write",
                      "storage" => "configuration"
                  },
                  "java-home" => {
                      "type" => STRING,
                      "description" => "The java home",
                      "access-type" => "read-write",
                      "storage" => "configuration"
                  },
                  "jvm-options" => {
                      "type" => LIST,
                      "value-type" => STRING,
                      "description" => "The JVM options.",
                      "access-type" => "read-only",
                      "storage" => "configuration"
                  },
                  "stack-size" => {
                      "type" => STRING,
                      "description" => "The JVM stack size settings.",
                      "access-type" => "read-write",
                      "storage" => "configuration"
                  },
                  "type" => {
                      "type" => STRING,
                      "description" => "The JVM type can be either SUN or IBM",
                      "access-type" => "read-only",
                      "storage" => "configuration"
                  }
              },
              "children" => {
                  "heap-size" => {
                      "type" => OBJECT,
                      "description" => "The Heap size settings allocated by the JVM.",
                      "attributes" => {
                          "size" => STRING,
                          "max-size" => STRING
                      }
                  },
                  "permgen-size" => {
                      "type" => OBJECT,
                      "description" => "The JVM PermGen settings.",
                      "attributes" => {
                          "size" => STRING,
                          "max-size" => STRING
                      }
                  }
              }
          },
          "compensating-operation" => undefined
      }
      
      

              Unassigned Unassigned
              rhn-support-hbraun Heiko Braun
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: