This is an automated email from the ASF dual-hosted git repository.
liuxiaocs7 pushed a commit to branch branch-2.6
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-2.6 by this push:
new e5755906cf6 HBASE-30261 Hide segmented CodeHeap memory pools on
process info JSP pages for JDK 9+ (#8432)
e5755906cf6 is described below
commit e5755906cf67d8df5994f6cbacea984b54e75dba
Author: Xiao Liu <[email protected]>
AuthorDate: Tue Jul 7 20:29:33 2026 +0800
HBASE-30261 Hide segmented CodeHeap memory pools on process info JSP pages
for JDK 9+ (#8432)
Signed-off-by: Dávid Paksy <[email protected]>
---
.../src/main/resources/hbase-webapps/master/processMaster.jsp | 6 ++++--
.../src/main/resources/hbase-webapps/regionserver/processRS.jsp | 6 ++++--
2 files changed, 8 insertions(+), 4 deletions(-)
diff --git
a/hbase-server/src/main/resources/hbase-webapps/master/processMaster.jsp
b/hbase-server/src/main/resources/hbase-webapps/master/processMaster.jsp
index c9ed0f43d85..cd6675dc88d 100644
--- a/hbase-server/src/main/resources/hbase-webapps/master/processMaster.jsp
+++ b/hbase-server/src/main/resources/hbase-webapps/master/processMaster.jsp
@@ -132,7 +132,9 @@ pageContext.setAttribute("pageTitle", "Process info for
PID: " + JSONMetricUtil.
<% } %>
</div>
<% for(MemoryPoolMXBean mp:mPools) {
-if(mp.getName().contains("Cache")) continue;%>
+// Skip code cache pools: "Code Cache" (JDK 8) and the segmented
+// "CodeHeap '...'" pools introduced by JEP 197 in JDK 9+.
+if(mp.getName().contains("Cache") || mp.getName().contains("CodeHeap"))
continue;%>
<div class="container-fluid content">
<div class="row">
<div class="page-header">
@@ -141,7 +143,7 @@ if(mp.getName().contains("Cache")) continue;%>
</div>
<table class="table table-striped" width="90%" >
<tr>
- <th>Commited</th>
+ <th>Committed</th>
<th>Init</th>
<th>Max</th>
<th>Used</th>
diff --git
a/hbase-server/src/main/resources/hbase-webapps/regionserver/processRS.jsp
b/hbase-server/src/main/resources/hbase-webapps/regionserver/processRS.jsp
index b1e1fe359ca..b6f34acb546 100644
--- a/hbase-server/src/main/resources/hbase-webapps/regionserver/processRS.jsp
+++ b/hbase-server/src/main/resources/hbase-webapps/regionserver/processRS.jsp
@@ -139,7 +139,9 @@ pageContext.setAttribute("pageTitle", "Process info for
PID: " + JSONMetricUtil.
<% } %>
</div>
<% for(MemoryPoolMXBean mp:mPools) {
-if(mp.getName().contains("Cache")) continue;%>
+// Skip code cache pools: "Code Cache" (JDK 8) and the segmented
+// "CodeHeap '...'" pools introduced by JEP 197 in JDK 9+.
+if(mp.getName().contains("Cache") || mp.getName().contains("CodeHeap"))
continue;%>
<div class="container-fluid content">
<div class="row">
<div class="page-header">
@@ -148,7 +150,7 @@ if(mp.getName().contains("Cache")) continue;%>
</div>
<table class="table table-striped" width="90%" >
<tr>
- <th>Commited</th>
+ <th>Committed</th>
<th>Init</th>
<th>Max</th>
<th>Used</th>