Tencent Cloud with a one-yuan student cloud, start everything normal until the configuration Tomcat began to appear all kinds of inexplicable problems. The most puzzling is Tomcat started, the port is also normal monitoring, the security group also released the port, and then the problem came.
Using the browser to access the Tomcat home page, you will find the super slow, the browser is waiting for the response from the server, from here you can see that you can access port 8080, but the server does not return data. (The problem is a few days)
Later on the Internet to find countless data, and finally found the reason. tomcat8.0 has bugs on Tencent Cloud ubuntu14.04.
Problem Reason:
Random numbers cause thread blocking.
Tomcat keeps booting, shutting down, starting off. After a few times, there will be a card death condition. Takes a long time to load complete
Aliyun the same configuration, the same system, it is difficult to appear card dead condition. It will be released even after a few 10 seconds. and Tencent Cloud Ubuntu will not Tencent Cloud CentOS do not know.
Multiple startup shutdown, resulting in a random number of time causing the thread to block, and then stuck to death.
Solution:
Add in Tomcat bin/catalina.sh
The above is a small set of Tencent cloud Ubuntu server to introduce the reasons for the slow Tomcat analysis and solutions, I hope to help you, if you have any questions please give me a message, small series will promptly reply to everyone. Here also thank you very much for the cloud Habitat Community website support!