5 Replies Latest reply on Jan 23, 2014 11:10 AM by Radim Hanus

    Monitor the EJB with jboss-cli or web-console

    erasmo2 marciano2 Master

      HI

      How I can monitor EJB   anbean instance pools with web-console or jboss-cli?

      I'd like know EJB which have been taken from the pool and those which have been released.

        • 1. Re: Monitor the EJB with jboss-cli or web-console
          Radim Hanus Expert

          using jboss-cli you may monitor basic pool setting:

           

          [standalone@localhost:9999 /] /deployment=xxx.ear/subdeployment=xxx.jar/subsystem=ejb3/stateless-session-bean=MyBean:read-resource(recursive=true,include-runtime=true)

          {

              "outcome" => "success",

              "result" => {

                  "component-class-name" => "MyBean",

                  "declared-roles" => [],

                  "pool-available-count" => 328,

                  "pool-create-count" => 2,

                  "pool-current-size" => 2,

                  "pool-max-size" => 100,

                  "pool-remove-count" => 0,

                  "run-as-role" => undefined,

                  "security-domain" => undefined,

                  "timers" => []

              }

          }

          1 of 1 people found this helpful
          • 2. Re: Monitor the EJB with jboss-cli or web-console
            erasmo2 marciano2 Master

            thank you for reply

            I'd like know this value:

             

            How many slsb-strict are in state current or in use?

             

             

                        "slsb-strict-max-pool" => {

                            "max-pool-size" => 100,

                            "name" => "slsb-strict-max-pool",

                            "timeout" => 5L,

                            "timeout-unit" => "MINUTES"

                        }

                    },

             

             

            below are my scenary :

             

             

            :read-resource(recursive=true,include-runtime=true)

            {

                "outcome" => "success",

                "result" => {

                    "default-clustered-sfsb-cache" => "clustered",

                    "default-entity-bean-instance-pool" => undefined,

                    "default-entity-bean-optimistic-locking" => undefined,

                    "default-mdb-instance-pool" => "mdb-strict-max-pool",

                    "default-resource-adapter-name" => "hornetq-ra",

                    "default-sfsb-cache" => "simple",

                    "default-singleton-bean-access-timeout" => 5000L,

                    "default-slsb-instance-pool" => "slsb-strict-max-pool",

                    "default-stateful-bean-access-timeout" => 5000L,

                    "in-vm-remote-interface-invocation-pass-by-value" => "true",

                    "cache" => {

                        "clustered" => {

                            "aliases" => ["StatefulTreeCache"],

                            "name" => "clustered",

                            "passivation-store" => "infinispan"

                        },

                        "passivating" => {

                            "aliases" => ["SimpleStatefulCache"],

                            "name" => "passivating",

                            "passivation-store" => "file"

                        },

                        "simple" => {

                            "aliases" => ["NoPassivationCache"],

                            "name" => "simple",

                            "passivation-store" => undefined

                        }

                    },

                    "cluster-passivation-store" => {"infinispan" => {

                        "bean-cache" => undefined,

                        "cache-container" => "ejb",

                        "client-mappings-cache" => "remote-connector-client-mappings",

                        "idle-timeout" => 300L,

                        "idle-timeout-unit" => "SECONDS",

                        "max-size" => 10000,

                        "name" => "infinispan",

                        "passivate-events-on-replicate" => true

                    }},

                    "file-passivation-store" => {"file" => {

                        "groups-path" => "ejb3/groups",

                        "idle-timeout" => 300L,

                        "idle-timeout-unit" => "SECONDS",

                        "max-size" => 10000,

                        "name" => "file",

                        "relative-to" => "jboss.server.data.dir",

                        "sessions-path" => "ejb3/sessions",

                        "subdirectory-count" => 100

                    }},

                    "service" => {

                        "async" => {"thread-pool-name" => "default"},

                        "iiop" => {

                            "enable-by-default" => "false",

                            "use-qualified-name" => "false"

                        },

                        "remote" => {

                            "connector-ref" => "remoting-connector",

                            "thread-pool-name" => "default"

                        },

                        "timer-service" => {

                            "path" => "timer-service-data",

                            "relative-to" => "jboss.server.data.dir",

                            "thread-pool-name" => "default"

                        }

                    },

                    "strict-max-bean-instance-pool" => {

                        "mdb-strict-max-pool" => {

                            "max-pool-size" => 20,

                            "name" => "mdb-strict-max-pool",

                            "timeout" => 5L,

                            "timeout-unit" => "MINUTES"

                        },

                        "slsb-strict-max-pool" => {

                            "max-pool-size" => 100,

                            "name" => "slsb-strict-max-pool",

                            "timeout" => 5L,

                            "timeout-unit" => "MINUTES"

                        }

                    },

                    "thread-pool" => {"default" => {

                        "keepalive-time" => {

                            "time" => 100L,

                            "unit" => "MILLISECONDS"

                        },

                        "max-threads" => 10,

                        "name" => "default",

                        "thread-factory" => undefined

                    }}

                }

            }

             

            Can I help me?

            • 3. Re: Monitor the EJB with jboss-cli or web-console
              Radim Hanus Expert

              AFAIK you may get ejb pool details in scope of a concrete bean only

              I guess there is no way to obtain given ejb pool runtime values maybe some profiler can do

              • 4. Re: Monitor the EJB with jboss-cli or web-console
                Ramesh Chokkapu Newbie

                Hi..

                 

                We are not not getting EJB Pool Statistics.

                The failed message coming like below..

                 

                [standalone@localhost:9999 /] /deployment=XXX.ear/subdeployment=yyy.jar/subsystem=ejb3/stateless-session-bean=ZZZBean:read-resource(include-runtime=true)

                {

                    "outcome" => "failed",

                    "rolled-back" => true

                }

                 

                Please answer my question.

                 

                Thank u in advance...

                 

                -----------------

                 

                I have checked again..

                 

                But i am not getting...

                 

                Please consider problem.

                • 5. Re: Monitor the EJB with jboss-cli or web-console
                  Radim Hanus Expert

                  it should work so doublecheck your deployment/subdeployment/bean names