tomcat arp native 安装优化
来源:互联网 发布:身材好的美女知乎 编辑:程序博客网 时间:2024/05/16 09:19
1,apr
2,Native
3,配置启动tomcat
2,安装Native
3,配置启动tomcat
6,疑问
6.1在官方文档上,输出信息的是一下:
tomcat的版本是7.20
6.2关于tomcat优化本次只是设计到apr和Native的整合至于实际的优化效果,还有待检验,唯一看到的指标是INFO: Server startup in 8480 ms时间
相对于之前大概快了80%.
6.3apr 还有有些地方不太懂,等有时间了,回头看下。
http://apr.apache.org/
http://tomcat.apache.org/native-doc/index.html
2,Native
3,配置启动tomcat
1,apr 安装
tar -zxvf apr-1.4.6.tar.gz ./configure --prefix=/usr/local/apr make make test make installtar -zxvf apr-util-1.4.1.tar.gz make make install
2,安装Native
tar -zxvf apache-tomcat-7.0.20.tar.gz./configure --with-apr=/usr/local/apr/ --with-java-home=/usr/java/jdk1.6.0_25/ make&&make install
3,配置启动tomcat
vim catalina.shLD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/apr/libexport LD_LIBRARY_PATH4,重新启动tomcat
5,输出以下信息
Aug 21, 2012 9:01:36 PM org.apache.catalina.core.AprLifecycleListener initINFO: Loaded APR based Apache Tomcat Native library 1.1.22.Aug 21, 2012 9:01:36 PM org.apache.catalina.core.AprLifecycleListener initINFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].Aug 21, 2012 9:01:36 PM org.apache.coyote.AbstractProtocol initINFO: Initializing ProtocolHandler ["http-apr-8080"]
6,疑问
6.1在官方文档上,输出信息的是一下:
Feb 8, 2008 12:27:41 PM org.apache.coyote.http11.Http11AprProtocol init INFO: Initializing Coyote HTTP/1.1 on http-8080org.apache.coyote.http11.Http11AprProtocol 这个就不太理解,为什么在我测试的时候输出的是Initializing ProtocolHandler这个协议有什么区别呢
tomcat的版本是7.20
6.2关于tomcat优化本次只是设计到apr和Native的整合至于实际的优化效果,还有待检验,唯一看到的指标是INFO: Server startup in 8480 ms时间
相对于之前大概快了80%.
6.3apr 还有有些地方不太懂,等有时间了,回头看下。
补记:
tomcat 在处理静态资源上并不强,所以我们通常把静态资源扔给更强大的Web服务器如Nginx,但是如果你一定要tomcat处理静态资源的话,可以通过本地 connector。
APR 是apache提供的一组通用的JNI接口,通过本地化方法提高应用与系统的交互性能,如磁盘I/O,打开文件等,提高对静态文件的处理性能。如果加上openssL可以提升SSL
处理性能。
参考:http://apr.apache.org/
http://tomcat.apache.org/native-doc/index.html
- tomcat arp native 安装优化
- 安装tomcat native-library
- tomcat native 安装
- Tomcat 安装及优化
- Linux下安装tomcat的native library
- CentOS安装、配置APR和tomcat-native
- SUSE安装、配置APR和Tomcat-Native
- tomcat安装与配置native,apr
- tomcat 安装 apr (Apache Portable Runtime), tomcat-native.
- 安装tomcat native library提升Tomcat的吞吐性能
- tomcat 安装 apr (Apache Portable Runtime), tomcat-native.
- tomcat 安装 apr (Apache Portable Runtime), tomcat-native.
- Tomcat优化静态资源—— Native APR Connector 配置
- tomcat native
- Tomcat安装和优化实战
- linux下安装tomcat及优化
- linux下tomcat的安装及优化
- Linux 下tomcat安装及优化
- Linux 开发初步
- org.hibernate.StaleStateException 处理
- S3C6410开发全纪录(一)《还原SD卡启动的真相》 .
- poj 3067(树状数组求逆序对)
- 做好面试题之c/c++系列---2
- tomcat arp native 安装优化
- Android模拟器永久删除卸载系统APK(Windows & Linux平台)
- Tomcat配置多个Service
- 一个界面中可以存在多个跑马灯效果
- Oracle materizlized view Study (1)
- Android上Sensor移植的总结
- S3C6410开发全纪录(二)《如何计算内存大小,并在UBOOT中调整内存大小》 .
- Kompex SQLite Wrapper for C++ - Examples
- 求N!(N的阶乘) 中最后有几个0