Php-random occurrence of PHPWarning: mysql_connect ()

Source: Internet
Author: User
! After refresh, the page can be opened normally. This may happen again later. on average, about 20 pieces of data are inserted (insertupdate) per second on the website. This problem may occur during peak website access periods. I don't know which optimization can solve this problem? [Environment introduction] System: Server2003MySQL: mysql-5.1.51-win32PHP: 5.4.37ntswebse..phpconnect

After refresh, the page can be opened normally. This may happen again later. on average, about 20 pieces of data are inserted (insert update) per second on the website.

This problem may occur during peak website access periods. I don't know which optimization can solve this problem?

[Environment introduction]
System: Server2003
MySQL: mysql-5.1.51-win32
PHP: 5.4.37 NT
WebServer: IIS6.0 + FastCGI1.5

[Hardware environment]
CPU: Xeon L5520 @ 2.27 GHz
Memory: 8 GB

[I have tried the following solutions but cannot solve them]
1. innodb and MyISAM tables have been tried.
2. modify the value of max_connections to 2048.

Have you ever encountered a similar situation? Please do not give me any further 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.