Shoothzj commented on pull request #2989:
URL: https://github.com/apache/bookkeeper/pull/2989#issuecomment-1016163989


   > 
   
   @dlg99 Hi, We have a bookkeeper server, which is conifugred as "-Xmx6G 
-XDirectMemory4G". And we are using huawei jdk11. `DirectMemoryUtils` can't 
reed the `sun.misc.VM. maxDirectMemory`, fall back to the heap memory, which is 
6G beyond the real `-XDirectMemory`.
   Instead of enhace `DirectMemoryUtils`, we can use 
`PlatformDependent.maxDirectMemory()`


-- 
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]


Reply via email to