-
-
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
Significant performance degradation for OpenSSL::Cipher#random_iv #4644
Comments
Your Linux box looks low on entropy. This is something of a silly concept, so try setting the JVM to use /dev/urandom for SecureRandom instead: Locate |
Thank you @Freaky that helps. Any idea why jruby 9.1.5.0 does not require setting the
|
without going to much details its because there's an updated jruby-openssl with a newer bouncy-castle ... JOSSL prefers RG from BC when available (and there's a new one that seems to always initializes itself using the JVM entropy source). |
Nobody mentioned another possible workaround: install and run an entropy service like |
also |
…nse of long-running code speed Try non-default entropy source as suggested in jruby/jruby#4644
Environment
JRuby version
jruby 9.1.10.0 (2.3.3) 2017-05-25 b09c48a OpenJDK 64-Bit Server VM 25.72-b15 on 1.8.0_72-internal-b15 +jit [linux-x86_64]
Operating system and platform
Linux ip-172-30-3-223 3.13.0-74-generic Bump compilation heap size for jruby-1_6 #118-Ubuntu SMP Thu Dec 17 22:52:10 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
Expected Behavior
https://gist.github.com/vassilios/0dfb6275801f38b502b0009c235c3044
Actual Behavior
The text was updated successfully, but these errors were encountered: