diff --git a/tomcat-instance/templates/env.j2 b/tomcat-instance/templates/env.j2 index ea4920f7..c76687a8 100644 --- a/tomcat-instance/templates/env.j2 +++ b/tomcat-instance/templates/env.j2 @@ -2,5 +2,6 @@ # Xmx Max memory allocated to instance. # Xms Allocated memory at startup. # XX:MaxPermSize Memory allocated to internal objects. +# Djava.security.egd -> https://wiki.apache.org/tomcat/HowTo/FasterStartUp#Entropy_Source JAVA_HOME="{{ tomcat_instance_java_path }}" -JAVA_OPTS="-server -Xmx{{ tomcat_instance_ram }}m -Xms{{ tomcat_instance_ram }}m -XX:MaxPermSize={{ tomcat_instance_mps }}m -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+CMSPermGenSweepingEnabled -XX:+CMSClassUnloadingEnabled -Xverify:none" +JAVA_OPTS="-server -Xmx{{ tomcat_instance_ram }}m -Xms{{ tomcat_instance_ram }}m -XX:MaxPermSize={{ tomcat_instance_mps }}m -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+CMSPermGenSweepingEnabled -XX:+CMSClassUnloadingEnabled -Xverify:none -Djava.security.egd=file:/dev/./urandom"