Ali and so on Linux Tomcat server to access web pages slow start circling

situation:

Ali today to buy a server and so on, in the normal way to install JDK, mysql, and Tomcat version here Offers

Systems: Centos 7

tomcat: apache-tomcat-8.5.45.tar

jdk : java-1.8.0-openjdk

 

Problems encountered, surely we have been self-evident, that tomcat start, although the display is

But you have access to your IP + port found

He has been in a circular motion. . . . . .

Encounter this problem very depressed, that is tomcat configuration file to modify the port when out of the question, again tomcat delete a redeployment or the same problem. . .

 

Reference to some of the online statement is as follows: as well as the best solution:

1. Modify the JVM virtual machine parameters:

General content is:

 

Open the $ JAVA_PATH / jre / lib / security / java.security file,

Locate the following contents: securerandom.source = file: / dev / random

Replace securerandom.source = file: / dev /./ random

 

Reference: https://www.jianshu.com/p/833cebc8d55c

Summary: This is not recommended, such an approach a temporary solution, bloggers also the first time I used this way, unable to find this file, the results halfway. . . .

 

2. Modify the Tomcat configuration file

 

I do not know whether this method is feasible, the final say about the pit

 

Reference: https://blog.csdn.net/zdb1314/article/details/78526382

 

3. Install rngd Service (entropy service) "Recommended -------

Here I refer to the blogger's blog, I do not do the specific reproduced involved here called entropy service 

That generally means: a random number generator system. Basically Tomcat Nginx OpenSSL will use this service, that is, the cause of the problem is due to the cloud Ali entropy pool is not big enough, so increase it is the most thorough method

It is to increase its size by way of services.

 

If your CPU with DRNG features, you can take advantage of hardware to improve the speed generated by the entropy pool 

Reproduced below blog content the great God:

 

We can make / dev / unrandom do "entropy source." To Centos7 for example, 
yum install rngd - Tools 
or the RNG install yum - Tools 
installation rngd Service (entropy service) 
systemctl Start rngd 
start the service 
if your CPU does not support DRNG characteristics or, like me, use a virtual machine, you can use the / dev / unrandom to simulate. 
CP /usr/lib/systemd/system/rngd.service / etc / systemd / System 
Edit / etc / systemd / System / rngd.service 
-Service summary, ExecStart = / sbin / rngd -R & lt -f / dev / urandom 
systemctl daemon - reload 
reload service 
systemctl restart rngd 
restart the service 

author: love will go down further 
links: HTTPS: // www.jianshu.com/p/576d356dc163
Source: Jane book 
Jane book copyright reserved by the authors, are reproduced in any form, please contact the author to obtain authorization and indicate the source.

https://www.jianshu.com/p/576d356dc163

 

Guess you like

Origin www.cnblogs.com/ChromeT/p/11415407.html