You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by zg...@apache.org on 2020/02/17 01:17:30 UTC
[hbase] branch branch-2 updated: HBASE-23855: Change bytes size to
human readable size for Server Metrics of RegionServer Web UI (#1175)
This is an automated email from the ASF dual-hosted git repository.
zghao pushed a commit to branch branch-2
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-2 by this push:
new 7355518 HBASE-23855: Change bytes size to human readable size for Server Metrics of RegionServer Web UI (#1175)
7355518 is described below
commit 73555180ebb1db659ab24622ccbd6ef76204ee5d
Author: GeorryHuang <21...@qq.com>
AuthorDate: Mon Feb 17 09:14:53 2020 +0800
HBASE-23855: Change bytes size to human readable size for Server Metrics of RegionServer Web UI (#1175)
Signed-off-by: Guanghao Zhang <zg...@apache.org>
---
.../hadoop/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 96c7c2a..ee1ebdb 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;
</%args>
<table class="table table-striped">
<tr>
- <th>Total Heap Allocation(Bytes)</th>
- <th>Total Pool Allocation(Bytes)</th>
+ <th>Total Heap Allocation</th>
+ <th>Total Pool Allocation</th>
<th>Heap Allocation Ratio</th>
<th>Total Buffer Count</th>
<th>Used Buffer Count</th>
- <th>Buffer Size(Bytes)</th>
+ <th>Buffer Size</th>
</tr>
<tr>
- <td><% ByteBuffAllocator.getHeapAllocationBytes(bbAllocator, ByteBuffAllocator.HEAP) %></td>
- <td><% bbAllocator.getPoolAllocationBytes() %></td>
+ <td><% TraditionalBinaryPrefix.long2String(ByteBuffAllocator.getHeapAllocationBytes(bbAllocator, ByteBuffAllocator.HEAP), "B", 1) %></td>
+ <td><% TraditionalBinaryPrefix.long2String(bbAllocator.getPoolAllocationBytes(), "B", 1) %></td>
<td><% String.format("%.3f", ByteBuffAllocator.getHeapAllocationRatio(bbAllocator, ByteBuffAllocator.HEAP) * 100) %><% "%" %></td>
<td><% bbAllocator.getTotalBufferCount() %></td>
<td><% bbAllocator.getUsedBufferCount() %></td>
- <td><% bbAllocator.getBufferSize() %></td>
+ <td><% TraditionalBinaryPrefix.long2String(bbAllocator.getBufferSize(), "B", 1) %></td>
</tr>
</table>
</%def>