Terracotta-OSS:以任何方式获取基本指标/统计信息/使用情况?

时间:2020-09-24 23:53:37

标签: ehcache terracotta

我正在使用terracotta-server-oss 5.6.4 / ehcache 3.8.0。

我知道,如果您为Terracotta付费,则可以使用某种Management API来查看诸如资源使用情况之类的信息,但我认为OSS版本不可用。

是否可以通过任何类型的API(包括Java API)获取有关Terracotta群集资源使用情况的基本指标/统计信息?我无法在{{3 }},但是那里有很多断开和过时的链接,所以也许我错过了。我什至很高兴地指出一个未公开记录/不受支持的Java API,类似于the docs ...

举一个具体的例子,说我有这样的TC配置:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<tc-config xmlns="http://www.terracotta.org/config">
    <plugins>
        <config>
            <ohr:offheap-resources xmlns:ohr="http://www.terracotta.org/config/offheap-resource">
                <ohr:resource name="offheap-1" unit="GB">2</ohr:resource>
                <ohr:resource name="offheap-2" unit="GB">1</ohr:resource>
            </ohr:offheap-resources>
        </config>
    </plugins>
</tc-config>

是否可以查看当前正在使用多少offheap-1offheap-2资源?

或者说我为此资源定义一个共享池:

<terracotta:shared-pool name="shared-pool-static" unit="MB" from="offheap-1">200</terracotta:shared-pool>

有什么方法可以知道当前使用了多少共享池?

0 个答案:

没有答案