1 Reply Latest reply on Jan 28, 2013 7:15 AM by Stan Silvert

    Is it possible to read a child attribute via CLI ?

    mark boletti Newbie

      Dear JBoss users,

      I'm writing a small script which gets some KPI from the application server. I'd need to pickup some memory usage info which is contained in the heap-memory-usage attribute of the platform-mbean.

       

      [standalone@localhost:9999 /] /core-service=platform-mbean/type=memory:read-resource(include-runtime=true)

      {

          "outcome" => "success",

          "result" => {

              "heap-memory-usage" => {

                  "init" => 67108864L,

                  "used" => 22823600L,

                  "committed" => 65208320L,

                  "max" => 518979584L

              },

              "non-heap-memory-usage" => {

                  "init" => 35815424L,

                  "used" => 42499472L,

                  "committed" => 52985856L,

                  "max" => 325058560L

              },

              "object-pending-finalization-count" => 0,

              "verbose" => false

          }

      }

      How can I read a child attribute such as the "used" or "max", which are child of heap-memory-usage ?

      Thanks

      Max