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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to