在windows系统下使用Apache HTTP Server实现tomcat集群

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/CutelittleBo/article/details/81073671

啰里啰嗦
这个点本来该去睡觉觉了,躺在床上是怎么也睡不着,脑子里一直在想高并发、集群的事情。最近公司在做压力测试,要1000并发,平均响应时间小于3秒,从最一开始的10秒左右,通过一点点优化,到目前为止已经小于4秒了,明天还要继续优化,今天把这几天来的优化心得写成文章,分享一下。

FAQ

为什么不用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

下面进入正文了

安装Apache HTTP Server

等待

配置Apache HTTP Server

使用http方式
等待

启动tomcat

等待

测试

等待

进行压力测试,出现并发问题

等待

优化Apache HTTP Server提高并发量

等待

关于集群的三种处理方法

猜你喜欢

转载自blog.csdn.net/CutelittleBo/article/details/81073671