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/