HBASE-14582 Regionserver status webpage bucketcache list can become huge

This commit is contained in:
stack 2015-10-12 12:45:40 -07:00
parent b9639d1e82
commit 1aab391424
1 changed files with 0 additions and 22 deletions

View File

@ -304,12 +304,10 @@ are combined counts. Request count is sum of hits and misses.</p>
boolean bucketCache = bc.getClass().getSimpleName().equals("BucketCache"); boolean bucketCache = bc.getClass().getSimpleName().equals("BucketCache");
BucketCacheStats bucketCacheStats = null; BucketCacheStats bucketCacheStats = null;
BucketAllocator bucketAllocator = null; BucketAllocator bucketAllocator = null;
Bucket [] buckets = null;
if (bucketCache) { if (bucketCache) {
bucketCacheStats = (BucketCacheStats)bc.getStats(); bucketCacheStats = (BucketCacheStats)bc.getStats();
bucketAllocator = ((BucketCache)bc).getAllocator(); bucketAllocator = ((BucketCache)bc).getAllocator();
buckets = bucketAllocator.getBuckets();
} }
</%java> </%java>
<%if cbsbf.isFull() %> <%if cbsbf.isFull() %>
@ -375,26 +373,6 @@ are combined counts. Request count is sum of hits and misses.</p>
</table> </table>
<%doc>Call through to block cache Detail rendering template</%doc> <%doc>Call through to block cache Detail rendering template</%doc>
<p>View block cache <a href="?format=json&bcn=<% name %>">as JSON</a> | Block cache <a href="?format=json&bcn=<% name %>&bcv=file">as JSON by file</a></p> <p>View block cache <a href="?format=json&bcn=<% name %>">as JSON</a> | Block cache <a href="?format=json&bcn=<% name %>&bcv=file">as JSON by file</a></p>
<%if bucketCache %>
<p>BucketCache does not discern between DATA and META blocks so we do not show DATA counts (If deploy is using CombinedBlockCache, BucketCache is only DATA blocks</p>
<h3>BucketCache Buckets</h3>
<table class="table table-striped">
<tr>
<th>Bucket Offset</th>
<th>Allocation Size</th>
<th>Free Bytes</th>
<th>Used Bytes</th>
</tr>
<%for Bucket bucket: buckets %>
<tr>
<td><% bucket.getBaseOffset() %></td>
<td><% bucket.getItemAllocationSize() %></td>
<td><% bucket.getFreeBytes() %></td>
<td><% bucket.getUsedBytes() %></td>
</tr>
</%for>
</table>
</%if>
<%java> <%java>
cbsbf = null; cbsbf = null;
</%java> </%java>