Php has more than 100 concurrent online users, and the website starts to open slowly.

Source: Internet
Author: User
Php has more than 100 concurrent online users, and the website starts to open slowly. During Baidu promotion, when the number of online users reached more than 100, the website began to enter, or it was very slow. However, when I went to the server, the memory and CPU did not change. If the database connection problem occurs, I use the ddos stress test to test the php network and the number of online users exceeds 100, and the website starts to open slowly.
During Baidu promotion, when the number of online users reached more than 100, the website began to enter, or it was very slow. However, when I went to the server, the memory and CPU did not change. If the database connection problem occurs, I did not find the cpu or Memory occupied by the data when I used the ddos stress test tool. Dizzy, I haven't found the problem for a few days. If this happens, what are the possible causes.

The server is deployed on www.net.cn. the configuration is as follows:
Xeon processors)
Eight-core, 2.26 GB memory (DDRIII)
16 GB hard drive (SATA)
750 GB dedicated bandwidth (BGP multi-line)
Exclusive 5 Mbps
Www. Pf178. Com


------ Solution --------------------
Whether or not you have adopted the CMS Framework. Yes, that's normal.
If the response is slow but the resource usage is not high, IO is the first bottleneck to be solved. By default, PHP will write the session to the file system and lock the file.
I suggest you store sessions on memcached or redis Cache servers. these application drivers support extended session storage. Or you can use PHP to implement a session storage mechanism.
Http://www.php.net/manual/en/memcached.sessions.php
------ Solution --------------------
I am doing a good job here ..
------ Solution --------------------
Does www.net.cn have a monitoring backend? See if there is any bottleneck
------ Solution --------------------
Ask HiChina to send a traffic diagram to you or install a traffic monitoring software.
The peak value of exclusive 5 M is estimated to be around KB per second
------ Solution --------------------
I used to adjust apache, and it was similar in the past. a little slow access occurs when there are more people. now it is a little better.

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.