Welcome to Headwind MDM Q&A, where you can ask questions and receive answers from other members of the community.

Please do not post bug reports, missing feature requests, or demo inquiries. If you have such an inquiry, submit a contact form.

0 votes

I have installed Headwind MDM on my server.

Everything is fine except for very slow start. Here's what I see in the Tomcat logs:

INFO: Servlet context initialized

INFO: Deployment of deployment descriptor [/etc/tomcat9/Catalina/localhost/ROOT.xml] has finished in [326,630] ms

On the client side, I see that the HTTPS port is opened, but the webpage is "loading".

by (33.5k points)
edited by

1 Answer

0 votes

The Tomcat server start may sometimes be delayed by initializing a secure random.

If the security of the random number generator is not critical to you, the issue can be fixed in the following way:

1. Find the java.security file. On Ubuntu, it is usually located here: /etc/java-11-openjdk/security/java.security. If you are unsure, use the locate command.

2. Edit it, find the parameter

securerandom.source=file:/dev/random

and change it to

securerandom.source=file:/dev/urandom

3. Restart Tomcat.

More details could be found here: https://stackoverflow.com/questions/28201794/slow-startup-on-tomcat-7-0-57-because-of-securerandom

by (33.5k points)
...