Capturando informações do pool conexões Datasource.

Para capturar informações do connection pool via JBoss, basta executar o comando abaixo.

./jboss-cli.sh --connect --controller=192.168.0.1

[standalone@192.168.0.1:9999 /] /subsystem=datasources/data-source=<nome_datasource>/statistics=pool:read-resource(include-runtime=true)
{
    "outcome" => "success",
    "result" => {
        "ActiveCount" => "20",
        "AvailableCount" => "99",
        "AverageBlockingTime" => "1",
        "AverageCreationTime" => "90",
        "CreatedCount" => "20",
        "DestroyedCount" => "0",
        "InUseCount" => "1",
        "MaxCreationTime" => "229",
        "MaxUsedCount" => "16",
        "MaxWaitCount" => "0",
        "MaxWaitTime" => "2",
        "TimedOut" => "0",
        "TotalBlockingTime" => "1251",
        "TotalCreationTime" => "1807"
    }
}
Show Comments