-
-
Notifications
You must be signed in to change notification settings - Fork 925
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
Extra long IO.select with JRuby 9.1.15.0 #4971
Comments
Could you run your application with the IO.select is used for many IO operations, so this is not in itself an indication of a problem. Many threads will sit and wait for an incoming request in IO.select. You may also stop by our IRC channel (#jruby on Freenode) or Gitter (jruby/jruby) and we can try to help you investigate performance issues. |
@headius Sorry for the late response, work has been quite busy. Here's the output using the |
@HarlemSquirrel As far as I can see, it appears to be simply waiting in the lowest-levels of the select for something to happen. There have been some improvements to select logic in JRuby 9.1.16 (due out this week, nightlies available). Could you retest? If it's still slow, we can look into bisecting changes during 9.1.15 to find the trigger, or dive a bit deeper. If it's possible for you to make a sample repository that exhibits the problem it will make it easier for us to investigate as well. |
Looks like this has gone away with 9.1.17.0. Thanks guys! |
I've noticed that certain pages use up all my Java heap space and never finish rendering.
Upon examinging with
--profile
enabled I noticed that JRuby 9.1.15.0 is spending much more time onIO.select
than 9.1.14.0 does.Environment
JRUBY_OPTS='--dev -Xcompile.invokedynamic=true -J-XX:+UseCodeCacheFlushing -J-Xmx1g --profile'
Linux kem2028-Latitude-E7470 4.13.0-26-generic #29~16.04.2-Ubuntu SMP Tue Jan 9 22:00:44 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
openjdk version "1.8.0_151"
OpenJDK Runtime Environment (build 1.8.0_151-8u151-b12-0ubuntu0.16.04.2-b12)
OpenJDK 64-Bit Server VM (build 25.151-b12, mixed mode)-a`)
Other relevant info you may wish to add:
Expected Behavior
Rails 5.1.4 + JRuby 9.1.14.0
Rendering view
Actual Behavior
Rails 5.1.4 + JRuby 9.1.14.0
Rendering view
The text was updated successfully, but these errors were encountered: