Skip to content

Some question about the JVM param -Dio.netty.maxDirectMemory=0 #12938

Answered by chrisvest
horizonzy asked this question in Q&A
Discussion options

You must be logged in to vote

The cleaner adds a bit of overhead when freeing memory, but not much, and it won't impact the system if you use the pooling allocator.
Ideally you want to avoid frequent calls to System.gc() - it's either disabled in the JVM (so whatever it's hoping to fix, likely won't be), or it incurs a big cost to the system performance.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by horizonzy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #12936 on October 28, 2022 16:32.