[Original] Tomcat Optimization Method

Source: Internet
Author: User

The delayed loading problem that my colleague asked yesterday may be that I did not make it clear, which caused many friends to misunderstand. I explained to my colleagues that he admitted that he did not understand it.

 

Today, we have another question about Tomcat optimization:

 

Here I will sort out my statement:

 

 

The first method is to use XP in terms of external system stability. However, I suggest using an operating system of the server version for better stability, if the server is restarted or interrupted due to system instability, the result can be imagined.

 

 

The second method is to increase the virtual memory of JVM. We should all know that Tomcat is attached to JVM, and the default JVM memory is only 128 MB, this is enough for a small system or practice, but it is enough for a large project. You can choose your own project because the company has a large project, I suggest increasing it to MB.

 

 

The third method is to configure the connection settings of the ipva server,

 

For the default number of connections, Tomcat provides 10 connections

For the maximum number of connections: Tomcat defaults to 75 connections

For the maximum number of connections allowed: Tomcat defaults to 100 connections

 

This is far from enough for large systems. Generally, to increase the number of connections, we recommend that you increase the maximum number of connections and allow the maximum number of connections at the same time,

The maximum number of connections allowed is larger than the maximum number of connections, which is generally 1 larger.

 

I don't know what else to say. Please give me some advice.

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.