centos下nginx+php-fpm 高并发
淡淡烟草味
淡淡烟草味 2017-04-25 09:01:27
0
2
994

虚拟机配置是四核+10G内存+10M带宽,业务不复杂,做了一些优化后(nginx分配进程,php-fpm进程,和内核的一些优化)感觉并不理想,并发4000左右就开始慢了,再多会出现504。不知道瓶颈在哪里,该怎样优化?

淡淡烟草味
淡淡烟草味

reply all(2)
刘奇

Is this a problem with c10k... No matter how awesome the single-machine configuration is, there will still be bottlenecks. A machine with a configuration worth 1 million W is far less practical than 10 machines worth 1 W each.

漂亮男人

The memory, CPU, and disk stress test information is not posted.
nginx configuration and php-fpm configuration are not posted either.
The data on related resources is not posted, such as the load of the mysql machine.
From your tone, I feel that the resources should be fine. It may be that there are not enough php-fpm processes. It is also possible that the backend such as mysql cannot handle it.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template