lhotari commented on code in PR #15238:
URL: https://github.com/apache/pulsar/pull/15238#discussion_r869299895
##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/loadbalance/impl/LoadManagerShared.java:
##########
@@ -225,7 +225,7 @@ public static SystemResourceUsage
getSystemResourceUsage(final BrokerHostUsage b
// Collect JVM direct memory
systemResourceUsage.setDirectMemory(new ResourceUsage((double)
(getJvmDirectMemoryUsed() / MIBI),
- (double)
(io.netty.util.internal.PlatformDependent.maxDirectMemory() / MIBI)));
+ (double)
(io.netty.util.internal.PlatformDependent.estimateMaxDirectMemory() / MIBI)));
Review Comment:
Is it intentional to keep on using PlatformDependent class here?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]