środa, 17 sierpnia 2016

read jboss stats via jboss-cli

1. docker exec -it da6875e4cb32 /opt/jboss/wildfly/bin/jboss-cli.sh --connect
2. [standalone@localhost:9990 /] /core-service=platform-mbean/type=memory/:read-resource(recursive=true,proxies=true,include-runtime=true,include-defaults=true)
{
    "outcome" => "success",
    "result" => {
        "heap-memory-usage" => {
            "init" => 67108864L,
            "used" => 101469392L,
            "committed" => 221773824L,
            "max" => 477626368L
        },
        "non-heap-memory-usage" => {
            "init" => 2555904L,
            "used" => 64368248L,
            "committed" => 73400320L,
            "max" => 1593835520L
        },
        "object-name" => "java.lang:type=Memory",
        "object-pending-finalization-count" => 0,
        "verbose" => false
    }
}
3. [standalone@localhost:9990 /] /core-service=platform-mbean/type=memory-pool/name=PS_Old_Gen/:read-resource(recursive=true,proxies=true,include-runtime=true,include-defaults=true)
{
    "outcome" => "success",
    "result" => {
        "name" => "PS_Old_Gen",
        "type" => "HEAP",
        "valid" => true,
        "memory-manager-names" => ["PS_MarkSweep"],
        "usage-threshold-supported" => true,
        "collection-usage-threshold-supported" => true,
        "usage-threshold" => 0L,
        "collection-usage-threshold" => 0L,
        "usage" => {
            "init" => 45088768L,
            "used" => 39194568L,
            "committed" => 78118912L,
            "max" => 358088704L
        },
        "peak-usage" => {
            "init" => 45088768L,
            "used" => 39194568L,
            "committed" => 78118912L,
            "max" => 358088704L
        },
        "usage-threshold-exceeded" => false,
        "usage-threshold-count" => 0L,
        "collection-usage-threshold-exceeded" => false,
        "collection-usage-threshold-count" => 0L,
        "collection-usage" => {
            "init" => 45088768L,
            "used" => 39194568L,
            "committed" => 78118912L,
            "max" => 358088704L
        },
        "object-name" => "java.lang:type=MemoryPool,name=\"PS Old Gen\""
    }
}


4. [standalone@localhost:9990 /] /core-service=platform-mbean/type=memory-pool/name=PS_Eden_Space/:read-resource(recursive=true,proxies=true,include-runtime=true,include-defaults=true)
{
    "outcome" => "success",
    "result" => {
        "name" => "PS_Eden_Space",
        "type" => "HEAP",
        "valid" => true,
        "memory-manager-names" => [
            "PS_MarkSweep",
            "PS_Scavenge"
        ],
        "usage-threshold-supported" => false,
        "collection-usage-threshold-supported" => true,
        "usage-threshold" => undefined,
        "collection-usage-threshold" => 0L,
        "usage" => {
            "init" => 16777216L,
            "used" => 63294592L,
            "committed" => 127401984L,
            "max" => 139460608L
        },
        "peak-usage" => {
            "init" => 16777216L,
            "used" => 67108864L,
            "committed" => 127401984L,
            "max" => 173539328L
        },
        "usage-threshold-exceeded" => undefined,
        "usage-threshold-count" => undefined,
        "collection-usage-threshold-exceeded" => false,
        "collection-usage-threshold-count" => 0L,
        "collection-usage" => {
            "init" => 16777216L,
            "used" => 0L,
            "committed" => 127401984L,
            "max" => 139460608L
        },
        "object-name" => "java.lang:type=MemoryPool,name=\"PS Eden Space\""
    }
}


5. [standalone@localhost:9990 /] /core-service=platform-mbean/type=memory-pool/name=PS_Perm_Gen/:read-resource(recursive=true,proxies=true,include-runtime=true,include-defaults=true
{
    "outcome" => "failed",
    "failure-description" => "WFLYPMB0010: No MemoryPoolMXBean with name PS_Perm_Gen currently exists",
    "rolled-back" => true
}

6. [standalone@localhost:9990 /] /host=master/server=server-one/core-service=platform-mbean/type=memory-pool/name=PS_Old_Gen:read-resource(include-runtime=true)
Failed to get the list of the operation properties: "WFLYCTL0030: No resource definition is registered for address [
    ("host" => "master"),
    ("server" => "server-one"),
    ("core-service" => "platform-mbean"),
    ("type" => "memory-pool"),
    ("name" => "PS_Old_Gen")

Brak komentarzy:

Prześlij komentarz