-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Trace 大方法导致JVM metaspace OOM的问题 #1510
Comments
|
这里有所混淆了,此时是两个不同的问题:
|
用最新版3.4.4,依然能够复现 |
@joooohnli 可以提供一个例子吗? |
每次增强字节码会有一定的开销,JVM回收Metaspace不是很及时的。40多M应该还是在正常的范围内,不断的trace,Metaspace是否会继续增加? |
可以提供一下example的代码吗? 我分析一下Metaspace的消耗情况 |
操作系统及Java的版本? 我在macOS + Java 11 测试trace 80次,Metaspace稳定在59.5MB |
环境信息
重现问题的步骤
1、trace Java应用的一个较大方法(100行以上),通过dashboard命令/jconsole可以看到JVM的metaspace增加非常快,每次几十MB,执行几次就导致Metaspace OOM。
2、reset 恢复增强的类,通过ognl调用gc ,但不能回收Metaspace的内存。
ognl @java.lang.System@gc()
The text was updated successfully, but these errors were encountered: