Older versionVersion 2.2 SolutionsLinux in a virtual environment

Linux in a virtual environment

This article describes how to enable the java.security.egd option in PhenixID Server installed on Linux OS.

The reader should have some basic knowledge about PhenixID Server.

Overview

Linux installations of PhenixID Server can sometimes act a bit slow in virtual environments.

You might also see the following in server.log:

Failed to generate a seed from SecureRandom within 3 seconds. Not enough entropy?

There is an option to set this parameter during installation. If it wasn't set then and server is in virtual environment, please follow the instructions below.

Instruction

We will make changes to the file start-PhenixID.sh located in <PhenixID Server installationdirectory>/bin, so please make a backup of this file before going any further.

After backup, please edit <PhenixID Server installationdirectory>/bin/start-PhenixID.sh and locate the following line:


#JAVA_OPTS=”${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom” 


Unmark this line by removing the leading #, and restart the PhenixID service.