Remember my real maintenance task: it takes up to 15 seconds for the program to query slowly?

Source: Internet
Author: User
Program error: Generally there are two possible causes for the System Buffer space insufficiency or the queue is full: a) the system memory is insufficient and the number of idle instances is lower than 200, the number of system handles is terrible, reaching more than 10 Wb

Program error: Generally there are two possible causes for the System Buffer space insufficiency or the queue is full: a) the system memory is insufficient and the number of idle instances is lower than 200, the number of system handles is terrible, reaching more than 10 Wb

Program error: solution to the problem caused by insufficient system buffer space or full queue

There are generally two reasons:

A) The system memory is insufficient, and the number of idle resources is lower than 200. The number of system handles is terrible, reaching.

B) if the number of TCP connections is insufficient, the connection to the database may fail due to a serious problem. The Project Department colleagues also said that this problem was caused by this problem, the premise is that the number of TCP connections is increased when the physical memory/Memory Internal settings are normal (it may be the reason you leave it for another reason, so the tcp port (UserPort) the request has reached the limit set locally on your pc (MaxUserPort). The default value is generally small. The server in the same region may need to have too many active TCP connections, so you need to set a larger value ), you can try to modify the key value as follows:

Start the Registry Editor, locate the following subitem in the registry, and click $ parameter (Parameters translated as >> parameter < <的意思) hkey_local_machinesystemcurrentcontrolsetservicestcpipparameters< p>

In the edit menu, click New and add the following registry key:

Value Name: MaxUserPort

Value Type: Double Byte

Value Data: 65534

Valid range: 5000-65534 (decimal)

Default Value: 0x1388 (5000 decimal)

Exit Registry Editor and restart the computer.

2. There are several optimization rules for general databases:

Generally,

After such optimization, the speed can be queried in 1 second at the slowest speed. Well, the above is the solution to the problem and my personal experience.


This article is from The Thinker's diary network. Please keep this source for reprinting! Original article address:

This article is from the "On My Way" blog. Please keep this source

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.