The technical problem that the novice stationmaster constructs the station to consider: concurrent processing

Source: Internet
Author: User

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

Create your own website (www.shoujihw.com) for some time, but also achieved a certain degree of success. Now the site in the GG and Baidu are included in more than 20000 pages, the latest PR value also has 2. Look back to do your own site to come through the road, it can be said that the problem is constantly. Here to share with you about my experience in the station, I hope that we can make a little detour.

Here and everyone is talking about the problem of concurrent processing.

October the end of GG PR value was updated. Because of the PR value of my site has been promoted, traffic also followed a sudden go up. Once I visited my website, but found that I could not access it. View the server log, found to be an open too many files error, is estimated because the user access is too centralized, more than the server allows the maximum process to open the number of file handles, although the problem is more hateful things, but as long as it can be resolved the next time no longer happen. Here is a summary of the time to do the site to pay attention to the concurrency issues to consider:

1. The maximum number of threads that the server can allow, such as Tomcat default of 150, which exceeds this value, can cause the server to crash.

2. Is the memory used by the server, in general, the server can use the memory is not the maximum hardware memory, you need to set up.

3. Database connection pool settings, no one should use a connectionless pool to access the database, then how to set up the connection pool some key.

Parameters (minimum connections, maximum connections, one-time application connections) can be a big factor in determining the performance of your server.

4. Is the file handle that a single process can obtain at the same time (this is primarily for non-Windows) users.

The concurrent failure of this site, although I ruled out, but also caused the homepage of the site was Baidu K the consequences. Many times when we set up the site is based on the situation at that time, in the site itself has been developed, the previous settings on the outdated, this time we have to be able to think ahead, the hidden dangers removed.

Related Article

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.