out of address space

地上的月影 404450559 at qq.com
Wed Sep 21 06:34:07 UTC 2022


Hi everyone
    these days when I use zgc with jdk17, after the app run for a few days, I meet a "out of address space" problem, and cpu raise to nearly 100%, looks like there is infinite loop.


Out of address space 
Force to lower max java heap size from 50G(100%) to 50G(100%) Out of address space  Force to lower max java heap size from 50G(100%) to 50G(100%) Out of address space  Force to lower max java heap size from 50G(100%) to 50G(100%)
after I check the source code, it looks like the problem is in the function ZPageAllocator::alloc_page -> retry loop
my profile flame graph also shows that the most cpu take func is alloc_page_finalize
ZPageAllocator::alloc_page_finalize 91.92%  ZPageAllocator::alloc_page_create 91.92%    ZVirtualMemoryManager::alloc 90.85%      ZMemoryManager::alloc_from_back 89.07%
I have tried to add this fragment patch but it seems not usefulhttps://bugs.openjdk.org/browse/JDK-8276055how can I fix this or debug this?
looking forward to your answers.best wishes!
-Anjian Wen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/zgc-dev/attachments/20220921/4b30e314/attachment-0001.htm>


More information about the zgc-dev mailing list