On Linux, low entropy can cause certain operations to be very slow. Encryption operations need entropy to ensure randomness. Entropy is generated by the OS when you use the keyboard, the mouse or the disk. If an encryption operation is missing entropy, it will wait until enough is generated.
To solve this, you have 3 options:
- use rngd service (this class)
- set java.security in JDK ( jre/lib/security )