Skip to content

Instantly share code, notes, and snippets.

@int128
Created February 18, 2015 14:33
Show Gist options
  • Save int128/f4303f6d90fc0ec39b83 to your computer and use it in GitHub Desktop.
Save int128/f4303f6d90fc0ec39b83 to your computer and use it in GitHub Desktop.
How to prevent freeze on waiting random device on Java
  1. /tmp/apache-tomcat-7.0.59/bin/setenv.sh に下記の内容を書く.
  2. chmod +xなどは不要.
  3. setenv.shがすでに存在する場合はCATALINA_OPTSの内容をマージする.
#!/bin/sh
CATALINA_OPTS='-Djava.security.egd=file:/dev/./urandom'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment