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

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


The following commit(s) were added to refs/heads/master by this push:
     new 902dd43589e HDDS-13944. S3G Metrics support displaying Netty off-heap 
memory (#9309)
902dd43589e is described below

commit 902dd43589e3d6bbda17502e3e5ee69a57c9eaa6
Author: Ivan Andika <[email protected]>
AuthorDate: Tue Nov 18 15:20:12 2025 +0800

    HDDS-13944. S3G Metrics support displaying Netty off-heap memory (#9309)
---
 .../s3gateway/src/main/java/org/apache/hadoop/ozone/s3/Gateway.java | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git 
a/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/Gateway.java 
b/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/Gateway.java
index 9126d8ed4a2..7b8dd58e2e2 100644
--- 
a/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/Gateway.java
+++ 
b/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/Gateway.java
@@ -33,6 +33,7 @@
 import org.apache.hadoop.hdds.server.http.BaseHttpServer;
 import org.apache.hadoop.hdds.tracing.TracingUtil;
 import org.apache.hadoop.hdds.utils.HddsServerUtil;
+import org.apache.hadoop.hdds.utils.NettyMetrics;
 import org.apache.hadoop.ozone.OzoneSecurityUtil;
 import org.apache.hadoop.ozone.s3.metrics.S3GatewayMetrics;
 import org.apache.hadoop.ozone.util.OzoneNetUtils;
@@ -61,6 +62,7 @@ public class Gateway extends GenericCli implements 
Callable<Void> {
   /** Servlets and static content on separate port. */
   private BaseHttpServer contentServer;
   private S3GatewayMetrics metrics;
+  private NettyMetrics nettyMetrics;
 
   private final JvmPauseMonitor jvmPauseMonitor = newJvmPauseMonitor("S3G");
 
@@ -81,6 +83,7 @@ public Void call() throws Exception {
     httpServer = new 
S3GatewayHttpServer(OzoneConfigurationHolder.configuration(), "s3gateway");
     contentServer = new 
S3GatewayWebAdminServer(OzoneConfigurationHolder.configuration(), "s3g-web");
     metrics = 
S3GatewayMetrics.create(OzoneConfigurationHolder.configuration());
+    nettyMetrics = NettyMetrics.create();
     start();
 
     ShutdownHookManager.get().addShutdownHook(() -> {
@@ -112,6 +115,9 @@ public void stop() throws Exception {
     contentServer.stop();
     jvmPauseMonitor.stop();
     S3GatewayMetrics.unRegister();
+    if (nettyMetrics != null) {
+      nettyMetrics.unregister();
+    }
   }
 
   private static void loginS3GUser(OzoneConfiguration conf)


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to