-
-
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
No response from rails 4.2.8 with puma in production mode JRuby 9.1.8.0+9.1.9.0 on Linux #4615
Comments
Can you try adding |
you should also check with VisualVM or simply issuing a thread-dump |
@alkalinecoffee Will try it. |
@kares Thanks for the tip, but nothing is using CPU. The request just does not complete. Have any of you tried this? |
@alkalinecoffee Adding the Thanks! 🎉 But why?! What problem does it solve, and why does it not affect version 9.1.7.0 and older? |
@donv cause you have an updated jruby-openssl which updates BC which provides a secure-random impl ... |
Thanks for the explanation! In my case giving the option to JRuby feels like a workaround. I found that installing and running As far as I can see, the best way to handle this is for JRuby or jruby-openssl to set the |
@donv unfortunately its not possible - by the time we would reach setPropeprty the Java security stack is already initialized. there probably is room to improve jruby-openssl (via BC's generators) to rely a bit less on feeding itself from |
@kares What about in the JRuby launcher? |
@donv not sure its worth the hustle ... newer Java is expected to handle these right |
@kares Sounds good. What is "newer Java" in this context? I am using |
@donv ah so maybe that's just the |
Environment
jruby 9.1.9.0 (2.3.3) 2017-05-15 28aa830 Java HotSpot(TM) 64-Bit Server VM 25.112-b15 on 1.8.0_112-b15 +jit [linux-x86_64]
CentOS release 6.9 (Final):
Linux 2.6.32-696.1.1.el6.x86_64 #1 SMP Tue Apr 11 17:13:24 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Ubuntu 14.04.5 LTS:
Linux 4.4.0-75-generic #96~14.04.1-Ubuntu SMP Thu Apr 20 11:06:30 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
I create a new Rails 4.2.8 app with a controller:
Make
welcome#index
the root route inconfig/routes.rb
:Add
puma
to the Gemfile:Start in production mode:
Access the app:
I see the request in the log:
...but the request never completes for the client. The client just waits for the response to complete.
Reverting to JRuby 9.1.7.0 works.
Can anybody confirm this issue?
The text was updated successfully, but these errors were encountered: