tomcat下查看并发流量
来源:互联网 发布:淘宝显示几人付款 编辑:程序博客网 时间:2024/05/03 00:10
如何在WINDOW下配置TOMCAT APR:
APR是什么呢,(Tomcat can use the Apache Portable Runtime to provide superior scalability, performance, and better integration with native server technologies.)
Windows下的安装配置与使用
1、先去 http://tomcat.heanet.ie/native/ 下载编译好的 tcnative-1.dll 文件
2、把tcnative-1.dll文件放在Tomcat的bin目录下
然后启动TOMCAT,如果看到以下信息:
2008-8-31 17:28:59 org.apache.coyote.http11.Http11AprProtocol start
信息: Starting Coyote HTTP/1.1 on http-8080
2008-8-31 17:28:59 org.apache.coyote.ajp.AjpAprProtocol start]则配置成功
然后你可以用APACHE的AB命令测试下效果.
ab -n 1000 -c 300 http://localhost:8080/turbine/index.jsp
相关APR的参数配置可以参考以下文档:
http://tomcat.apache.org/tomcat-5.5-doc/apr.html
如何查看TOMCAT的并发访问量:
我们进入TOMCAT服务管理页面(http://localhost:8080/manager/status),可以看到下面这段文字
http-8080
Max threads: 1000 Min spare threads: 0 Max spare threads: 0 Current thread count: 303 Current thread busy: 234 Keeped alive sockets count: 0
Max processing time: 23531 ms Processing time: 29287.717 s Request count: 2980 Error count: 0 Bytes received: 0.00 MB Bytes sent: 12.61 MB
Current thread count: 303 这个参数则代表当前TOMCAT的并发访问量
这是我TOMCAT服务器的配置:
<Connector port="8080" maxHttpHeaderSize="8192" pollerSize="10025"
maxThreads="1000" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
compression="on" compressionMinSize="2048"
compressableMimeType="text/html,text/xml,text/javascript,text/css,text/plain"
connectionTimeout="20000" disableUploadTimeout="true" sendfileSize="2048" />
将TOMCAT日志更改为LOG4J日志输出
把commons-logging.jar,log4j-1.2.13.jar的两个JAR拷贝到tomcat_home/common/lib下面.
然后在将log4j.properties拷贝到tomcat_home/common/classes下面
- tomcat下查看并发流量
- tomcat下查看并发流量
- tomcat下查看并发流量
- 转:tomcat下查看并发流量
- 转:tomcat下查看并发流量
- 转:tomcat下查看并发流量
- linux下网卡流量查看
- 查看tomcat当前并发数
- iiptraf linux下网卡流量查看软件
- Linux下查看网卡实时流量
- Linux下查看网卡流量的工具
- centos下shell环境查看实时流量
- linux下如何查看网卡的流量
- windows下apache如何控制流量和IP并发数
- linux下查看tomcat控制台
- linux下tomcat查看端口
- Linux下查看tomcat版本
- linux 下查看tomcat版本
- 《代码整洁之道》-- 第2章 有意义的命名
- C++ Primer 第二遍阅读笔记(第三章)
- OpenCV学习笔记(二)—IplImage数据结构
- Hibernate ORM - 一对多双向关联关系(我是韦小宝)
- 2012总结--第8篇--感情篇
- tomcat下查看并发流量
- [Unity3D]手机3D游戏开发:如何实现最高分的存储与显示(九)----使用PreviewLabs插件提速与完整的项目源码
- Redis源码解析 - 客户端工作流程及命令编码
- ubuntu 加速
- Windows 通信基础(Windows Communication Foundation)
- PS讲义
- PIC单片机(PIC16F873)小项目五(电路工作原理)
- 教大家集中注意力的训练方法
- 更改visual studio 2010 帮助文档库位置