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
Full GC on Jruby 9k happens less frequently than on Jruby 1.7 #6041
Comments
Also I don't understand why I didn't get OOM at 14:15 when the spike on the graph happened. Instead all requests just started being slow (under a second -> more than 30 seconds) |
@headius turns out the cause of the issue was not related to GC. |
Also I just found this guide about code cache in your wiki: https://github.com/jruby/jruby/wiki/PerformanceTuning#check-the-openjdksunjdkoraclejdk-code-cache-size |
@AlexEzzeddine That's a very interesting discoery! The LambdaForm compiles are part of the invokedynamic subsystem, and I'm not sure how much we can do to fix that. I would expect it to plateau, however, and ideally once things have jit compiled with optimized calls some of this cache should go away. We need to do some investigation into why it seems like the code cache grows forever. |
Environment Information
2 environments running same app:
ubuntu 14.04, java 7, jruby 1.7
ubuntu 18.04, java 8, jruby 9.2.8.0
JVM flags:
Other relevant info you may wish to add:
Rails 3.2, trinidad 1.4.4 (120 threads)
Issue only happens on production environment under heavy request load
Expected Behavior
App should not be slow on 9k
Actual Behavior
App is slow on 9k 2 hours after startup (12 pm on the screenshot is when it was started and it become slow at around 2:15pm).
Looks like the slowness is happening because app doesn't have enough memory for new objects
9k memory usage and gc.log for this period:
9k_gc.log
1.7 memory usage:
17_gc.log
The text was updated successfully, but these errors were encountered: