The reason analysis and solution of the slow-tomcat access of Tencent Cloud Ubuntu server _linux

Source: Internet
Author: User
Tags tomcat

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!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.