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

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


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

commit d25b0717131a83bdffa1c0a4f07be333405d261d
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>

Reply via email to