啰里啰嗦
这个点本来该去睡觉觉了,躺在床上是怎么也睡不着,脑子里一直在想高并发、集群的事情。最近公司在做压力测试,要1000并发,平均响应时间小于3秒,从最一开始的10秒左右,通过一点点优化,到目前为止已经小于4秒了,明天还要继续优化,今天把这几天来的优化心得写成文章,分享一下。
为什么不用Nginx
因为是给客户进行测试的,客户给的测试机是windows server 2008,某些原因,不能装Linux。而Nginx for windows是个测试版本,使用select(),性能不好。
原文:
Version of nginx for Windows uses the native Win32 API (not the Cygwin emulation layer). Only the select() connection processing method is currently used, so high performance and scalability should not be expected. Due to this and some other known issues version of nginx for Windows is considered to be a beta version. At this time, it provides almost the same functionality as a UNIX version of nginx except for XSLT filter, image filter, GeoIP module, and embedded Perl language.
http://nginx.org/en/docs/windows.html
下面进入正文了
等待
使用http方式
等待
等待
等待
等待
等待