关于 Nginx 并发连接数
时间:2010-05-30
来源:互联网
最近在学习使用 nginx , 做一些简单的压力测试时,发现并发连接数最大只能上到 100 多
测试刚开始时的状态 ,
复制代码
然后 SYN_RECV 状态的连接 一直上升
复制代码
就一直持续到 测试完了。
以下是我的配置
复制代码
这个配置参考了网上的教程。
请问有哪里设置得不对吗? 烦请指教。
测试刚开始时的状态 ,
- netstat -n | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}'
- CLOSE_WAIT 2
- ESTABLISHED 133
- SYN_RECV 39
- netstat -n | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}'
- CLOSE_WAIT 2
- ESTABLISHED 133
- SYN_RECV 124
以下是我的配置
- worker_processes 10;
- worker_rlimit_nofile 51200;
- daemon on;
- master_process off;
- error_log /home/test/apps/nginx/logs/nginx-error.log debug;
- pid /tmp/nginx_demo.pid;
- events {
- worker_connections 51200;
- }
- http {
- include /home/test/apps/nginx/conf/mime.types;
- sendfile on;
- keepalive_timeout 65;
- tcp_nodelay on;
- server {
- listen 8100;
- server_name localhost;
- access_log /home/test/apps/nginx/logs/access.log;
- error_log /home/test/apps/nginx/logs/error.log debug;
- location /lottery_image {
- lig "Hi,this is a demo module";
- }
- }
- }
- ~
- ~
- ~
- ~
- ~
- ~
- ~
请问有哪里设置得不对吗? 烦请指教。
作者: free4machine 发布时间: 2010-05-30
没看出配置有问题。
你的机器啥配置啊
你的机器啥配置啊
作者: maochanglu 发布时间: 2010-05-31
两颗 model name : Intel(R) Xeon(R) CPU E5504 @ 2.00GHz
32G 内存
32G 内存
作者: free4machine 发布时间: 2010-05-31
your problem is not concerned with your hardware of computer.try to do the following.
first check whether there is tcp limit on your system.
second check your access warn or error log of nginx.
first check whether there is tcp limit on your system.
second check your access warn or error log of nginx.
作者: todayhero 发布时间: 2010-05-31
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28