An error occurs when the website space is submitted. how can this problem be solved.

Source: Internet
Author: User
An error occurs when the website space is submitted. how can this problem be solved. Error message:

The space shows that the CPU and maximum number of connections are full:

 


Why does mysql_close go wrong? How can I handle the maximum number of connections.


Reply to discussion (solution)

The default connection count for mysql is 100. why is it 15.
You can modify the big point to see.
Go to the MySQL installation directory and open the MySQL configuration file my. ini or my. cnf to find max_connections = 15 and change it to max_connections = 200.

Looking at the interface, it is estimated that the operator has made restrictions. This space is much smaller than free space such as 000webhost.

Are you using persistent connections?

The default connection count for mysql is 100. why is it 15.
You can modify the big point to see.
Go to the MySQL installation directory and open the MySQL configuration file my. ini or my. cnf to find max_connections = 15 and change it to max_connections = 200.



The website space does not have this modification permission =

Are you using persistent connections?



Long links are not used, so it is hard to understand. Is PHP automatically recycled even if it does not close the connection? is this method not automatically recycled?

The problem should not be here.

So? Provided? Station empty? ? ? ?? .

So? Provided? Station empty? ? ? ?? .



After communication, the reply was a program problem, but every time I close the database connection, I don't know where to fill up the number of connections.

You just define a function. how can you determine what is going wrong?

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.