Skip to content

HDDS-11234. [doc] Manage Netty native memory consumption#448

Merged
jojochuang merged 1 commit into
apache:masterfrom
smengcl:HDDS-11234-config-doc
Jun 3, 2026
Merged

HDDS-11234. [doc] Manage Netty native memory consumption#448
jojochuang merged 1 commit into
apache:masterfrom
smengcl:HDDS-11234-config-doc

Conversation

@smengcl
Copy link
Copy Markdown
Contributor

@smengcl smengcl commented May 24, 2026

What changes were proposed in this pull request?

Companion doc of apache/ozone#10354

What is the link to the Apache Jira?

apache/ozone#10354

How was this patch tested?

  • n/a

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new troubleshooting document to help operators diagnose and cap Netty native (direct) memory usage in Ozone daemons (notably DataNode and S3 Gateway), addressing scenarios where RSS grows significantly beyond the JVM heap due to Netty’s pooled direct-buffer allocator.

Changes:

  • Documented symptoms and root cause of high native/direct memory usage (Netty pooled allocator behavior).
  • Added recommended mitigation via Netty system properties (both unshaded Netty and Ratis-shaded Netty) and how to configure them through ozone-env.sh env vars.
  • Provided initial sizing guidance and pointed to relevant Ozone NettyMetrics for observability.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@smengcl smengcl added the docs Changes updating documentation on the website label May 26, 2026
@smengcl smengcl closed this May 27, 2026
@smengcl smengcl reopened this May 28, 2026
trigger `OutOfDirectMemoryError` under load; that is the signal the
cap is too tight. Watch the daemon log and back off if you see it.

The `NettyMetrics` source on each Ozone daemon (see
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jojochuang jojochuang merged commit cfff868 into apache:master Jun 3, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Changes updating documentation on the website

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants