Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 jboss cli 获取连接池详细信息,得到这样的输出
{ "outcome" => "success", "result" => { "ActiveCount" => 1, "AvailableCount" => 20L } }
有没有办法以 json 格式获得相同的结果?
你可以使用--output-json论据。就像是:
--output-json
$JBOSS_HOME/bin/jboss-cli.sh -c --output-json "/subsystem=datasources/data-source=ExampleDS/statistics=pool:read-resource(include-runtime=true)"