You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2022/06/15 02:30:15 UTC

[GitHub] [dubbo] jingzhouzhao commented on pull request #10021: [ISSUE #10020] add MemorySafeLinkedBlockingQueue

jingzhouzhao commented on PR #10021:
URL: https://github.com/apache/dubbo/pull/10021#issuecomment-1155913030

   > MemoryUsage#getMax() - MemoryUsage#getUsed()即可 😄😄😄😄😄😄
   
   MemoryUsage#getMax() 表示可用于内存管理的最大内存量(以字节为单位)。它的值可能是未定义的。如果已定义,最大内存量可能会随时间变化。如果定义了max ,则已使用和已提交的内存量将始终小于或等于max 。如果尝试增加已使用的内存,即使used <= max仍然为 true(例如,当系统的虚拟内存不足时),内存分配可能会失败。
   
   max定义的内存可能会由于系统内存不足分配失败,是不是commited - used 更妥😆😆😆😆😆
   


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org