免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2534 | 回复: 2
打印 上一主题 下一主题

[Web] [求助]求解决nginx0.8.38在win下运行占用CPU很高的方法 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-06-06 23:37 |只看该作者 |倒序浏览


  1. worker_processes  1;
  2. #pid        logs/nginx.pid;


  3. events {
  4.        
  5.     worker_connections  1024;
  6. }

  7. http {
  8.     #include       mime.types;
  9.     include       proxy.conf;
  10.     default_type  application/octet-stream;
  11.         sendfile        on;
  12.        
  13.         server {
  14.                 listen 80 default;
  15.                 access_log off;
  16.                 #server_name yky.guet.edu.cn;
  17.                 location /status {  
  18.              stub_status            on;  
  19.              #access_log             on;  
  20.              #auth_basic             "NginxStatus";  
  21.              #auth_basic_user_file conf/htpasswd;  
  22.         }  
  23.                 location /netdisk {
  24.                         proxy_pass http://202.*.77.243:8000/netdisk;
  25.                        
  26.                 }
  27.                 location /os {
  28.                         proxy_pass http://202.*.77.243:8000/os;
  29.                         #rewrite ^(.*) 202.*.77.243:8000/os permanent;
  30.                 }
  31.         }
  32. }
复制代码
配置文件如上,IP地址做了处理。
进程有四个,CPU占用一直80%以上。

求助一下,难道win下的nginx真的很烂么?有什么方法可以改善么?

有点好奇nginx在WIN下的调度方式,是iocp么?

论坛徽章:
0
2 [报告]
发表于 2010-08-03 13:10 |只看该作者
win下nginx就放弃吧,性能很不好。

论坛徽章:
0
3 [报告]
发表于 2010-08-03 15:57 |只看该作者
请试下使用Ngwsx。

http://blog.csdn.net/ngwsx

features:
*) native porting of nginx on windows.
*) single process mode.
*) windows service supported.
*) iocp event method.
*) file aio.
*) TransmitPackets, TransmitFile.
*) zlib-1.2.3. (statically link)
*) pcre-7.9. (statically link)
*) openssl-0.9.8o. (statically link)
*) using configure to build the binary with mingw+vc10.

download:
*) http://www.ngwsx.org/download
*) http://github.com/hehaiqiang/ngwsx/downloads
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP