This is an automated email from the ASF dual-hosted git repository.

liuxiaocs7 pushed a commit to branch branch-2.5
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/branch-2.5 by this push:
     new 1a573fb9c82 HBASE-30261 Hide segmented CodeHeap memory pools on 
process info JSP pages for JDK 9+ (#8432)
1a573fb9c82 is described below

commit 1a573fb9c820549f693ddd248b4b0dfe9704ca96
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 a3a14681d9b..0f46963d04a 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>

Reply via email to