From e11dbf36a5092952c5c90de0cd9f18f1e735212a Mon Sep 17 00:00:00 2001 From: GeorryHuang <215175212@qq.com> Date: Mon, 17 Feb 2020 09:14:53 +0800 Subject: [PATCH] HBASE-23855: Change bytes size to human readable size for Server Metrics of RegionServer Web UI (#1175) Signed-off-by: Guanghao Zhang --- .../hbase/tmpl/regionserver/ServerMetricsTmpl.jamon | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/regionserver/ServerMetricsTmpl.jamon b/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/regionserver/ServerMetricsTmpl.jamon index 96c7c2a1004..ee1ebdbcb19 100644 --- a/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/regionserver/ServerMetricsTmpl.jamon +++ b/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/regionserver/ServerMetricsTmpl.jamon @@ -238,20 +238,20 @@ ByteBuffAllocator bbAllocator; - - + + - + - - + + - +
Total Heap Allocation(Bytes)Total Pool Allocation(Bytes)Total Heap AllocationTotal Pool Allocation Heap Allocation Ratio Total Buffer Count Used Buffer CountBuffer Size(Bytes)Buffer Size
<% ByteBuffAllocator.getHeapAllocationBytes(bbAllocator, ByteBuffAllocator.HEAP) %><% bbAllocator.getPoolAllocationBytes() %><% TraditionalBinaryPrefix.long2String(ByteBuffAllocator.getHeapAllocationBytes(bbAllocator, ByteBuffAllocator.HEAP), "B", 1) %><% TraditionalBinaryPrefix.long2String(bbAllocator.getPoolAllocationBytes(), "B", 1) %> <% String.format("%.3f", ByteBuffAllocator.getHeapAllocationRatio(bbAllocator, ByteBuffAllocator.HEAP) * 100) %><% "%" %> <% bbAllocator.getTotalBufferCount() %> <% bbAllocator.getUsedBufferCount() %><% bbAllocator.getBufferSize() %><% TraditionalBinaryPrefix.long2String(bbAllocator.getBufferSize(), "B", 1) %>