Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReservedCodeCacheSize最大值问题 #896

Open
yiiqian opened this issue Dec 3, 2024 · 3 comments
Open

ReservedCodeCacheSize最大值问题 #896

yiiqian opened this issue Dec 3, 2024 · 3 comments

Comments

@yiiqian
Copy link

yiiqian commented Dec 3, 2024

ReservedCodeCacheSize目前最大是设置成2G。翻开源码
截屏2024-12-03 16 10 33
是由CODE_CACHE_SIZE_LIMIT决定的。这里可以修改成4G吗,设置成2G是出于对32位系统的兼容性吗

@kuaiwei
Copy link
Collaborator

kuaiwei commented Dec 5, 2024

有具体的应用需要超过2g的code cache吗?

@yiiqian
Copy link
Author

yiiqian commented Dec 5, 2024

有具体的应用需要超过2g的code cache吗?

服务在执行热切换的时候,老服务会在新服务启动时JIT阶段出现卡顿。
改完上限,ReservedCodeCacheSize超过2G会crash

@kuaiwei
Copy link
Collaborator

kuaiwei commented Dec 6, 2024

热切换是指redefine了class? 理论上旧的nmethod会被释放的,你们应用是什么类型的?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants