Guiqu1aixi commented on PR #10021: URL: https://github.com/apache/dubbo/pull/10021#issuecomment-1147208681
我很困惑,为什么MemorySafeLinkedBlockingQueue#hasRemainedMemory()中要使用usage.getCommitted()与maxFreeMemory相比较。 MemoryLimitCalculator后面又提供了两个方法分别是calculate 和 defaultLimit都是和当前jvm commited内存的比例值相比较,这样可能更加科学一点, 而hasRemainedMemory()直接使用当前commited相比较(第78行),感觉并不能预防OOM。 -- 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]
