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

RetransformClasses causes more longer STW (Stop-The-World) #20779

Open
gatesking opened this issue Dec 9, 2024 · 2 comments
Open

RetransformClasses causes more longer STW (Stop-The-World) #20779

gatesking opened this issue Dec 9, 2024 · 2 comments

Comments

@gatesking
Copy link

version:openj9-0.38.0

Our product aims to use the RetransformClasses method to implement Java's hot patch function, to dynamically update bytecode during program execution. However, in our tests, we found that with a large heap size of Xmx 32g, the halt time increases as heap memory usage increases, reaching over 10 seconds when above 20g. In contrast, on OpenJDK(Hotspot), this data is measured to be within 1 second. We want to know the reason for this difference and whether it is a bug in OpenJ9?

09:17:13.876 0x34dd600 j9jvmti.366 > RetransformClasses env=00007FB570137AC8
09:17:25.751 0x34dd600 j9jvmti.367 < RetransformClasses returning 0

Many thanks!

@gatesking gatesking changed the title redefineClass causes more longer STW (Stop-The-World) RetransformClasses causes more longer STW (Stop-The-World) Dec 9, 2024
Copy link

github-actions bot commented Dec 9, 2024

Issue Number: 20779
Status: Open
Recommended Components: comp:vm, comp:gc, comp:jit

@pshipton
Copy link
Member

pshipton commented Dec 9, 2024

@tajila fyi

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

No branches or pull requests

2 participants