Skip to content

Instantly share code, notes, and snippets.

@ejlp12
Last active January 11, 2016 12:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ejlp12/039f8cbc9f96d16231d2 to your computer and use it in GitHub Desktop.
Save ejlp12/039f8cbc9f96d16231d2 to your computer and use it in GitHub Desktop.
Connection reset

Edit file /etc/sysconfig/rngd dan isi dengan text berikut

EXTRAOPTIONS="-r /dev/urandom"

Pastikan rngd dijalankan setiap kali operating sistem start (booting) dengan perintah berikut:

chkconfig rngd on

Atau dengan cara, membuat A-MQ (ActiveMQ) dijalankan dengan parameter -Djava.security.egd=file:///dev/urandom dan pada file $JAVA_HOME/jre/lib/security/java.security pastikan memiliki isi seperti berikut:

securerandom.source=file:/dev/./urandom

Referensi: JDK-6521844 : SecureRandom hangs on Linux Systems

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment