gpt4 book ai didi

java - Apache Ignite 中客户端的内存指标

转载 作者:行者123 更新时间:2023-12-01 18:01:59 24 4
gpt4 key购买 nike

i need to print memory metrics in client side, using this following code is it possible?

java.util.Collection<DataRegionMetrics> regionsMetrics = ignite.dataRegionMetrics();
for (DataRegionMetrics metrics : regionsMetrics) {
System.out.println(">>> Memory Region Name: " + metrics.getName());
System.out.println(">>> Allocation Rate: " + metrics.getAllocationRate());
System.out.println(">>> Fill Factor: " + metrics.getPagesFillFactor());
System.out.println(">>> Allocated Size: " + metrics.getTotalAllocatedSize());
System.out.println(">>> Physical Memory Size: " + metrics.getPhysicalMemorySize());
}

this code successfully printed all the values, when i added to server code. but i need print all the values from client side. i think ignite.dataRegionMetrics() this ignite is refer to server, How i get the server ( here is ignite) from client? is there any way for this like SERVER.get()?

最佳答案

您可以将计算任务发送到服务器节点吗?

哪个将运行此代码但打印到 StringBuilder,然后将其返回给客户端?

关于java - Apache Ignite 中客户端的内存指标,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60612708/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com