The APR based Apache Tomcat Native library警告
来源:互联网 发布:unity3d mesh 拆分 编辑:程序博客网 时间:2024/06/03 01:21
在Eclipse上配置Tomcat7,启动时看到如下警告信息 :
The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path
在 Eclipse中,启动 Tomcat 时会出现如此信息:The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path,它其实不影响程序的正常运行,但看到了,感觉实在别扭。其解决办法如下 :
http://tomcat.heanet.ie/native/ 下载tcnative-1.dll,然后放到你的 JDK路径 下的 bin目录下。重新启动tomcat,就没有问题了
这个tcnative-1.dll 他的作用如下 :
tomcat整合本地 apr 会使效率提升 :
1> 处理静态资源的时候速度更快
注 : 有人用 jmeter,对使用 apr 前后的 tomcat 进行压力测试,结果显示,性能是有一定的提升,但是没有想象中多,只有一点点,当然,这与运行的逻辑有关,但是我个人认为在大多数情况下这部分性能提升甚微
2> 提升比较多的是对 ssl 的处理效率,当 Tomcat 处理 https的请求是,如果使用本地的 openssl库,肯定会比前面提升的效率高。(虽然没有实际测试数据,但我推测这里的性能提升比例上要比第一点多得多)。
原因上面已经说得很清楚了,下面说下我的解决办法。
首先,tcnative-1.dll不需要下载,至少对于Tomcat7来说是这样,我们可以在其bin目录下找到这个dll;
其次,tcnative-1.dll放在哪儿不要紧,只要在系统的PATH中可以找到就行。
解决 :
在系统的环境变量中添加CATALINA_HOME,它指向你的Tomcat根目录,接着在PATH路径中添加%CATALINA_HOME%\bin;
这样就可以解决了,对了,设置完成后,可能需要重启下Eclipse
阅读全文
0 0
- 关于The APR based Apache Tomcat Native library警告
- 关于The APR based Apache Tomcat Native library警告
- eclipse 关于The APR based Apache Tomcat Native library警告
- The APR based Apache Tomcat Native library警告
- The APR based Apache Tomcat Native library
- The APR based Apache Tomcat Native library
- The APR based Apache Tomcat Native library
- <TOMCAT>The APR based Apache Tomcat Native library的解决办法
- Tomcat 启动,错误:The APR based Apache Tomcat Native library
- The APR based Apache Tomcat Native library 问题
- The APR based Apache Tomcat Native library 问题
- 解决:The APR based Apache Tomcat Native library
- 解决:The APR based Apache Tomcat Native library
- The APR based Apache Tomcat Native library ...异常
- tomcat The APR based Apache Tomcat Native library which allows ...java.library...异常
- The APR based Apache Tomcat Native library which allows ...java.library...异常
- The APR based Apache Tomcat Native library which allows ...java.library...异常
- The APR based Apache Tomcat Native library which allows ...java.library...异常
- 互动与参与的最佳实践
- firewall
- Step 10:二虎尽食之 Processing 添加库、模式、工具
- 全志 H5 orangepi SPI显示屏驱动测试
- css设置背景图片不随滚动条滚动;background-attachment使用
- The APR based Apache Tomcat Native library警告
- 2017-12-5 十四 人物移动范围时更改节点标识
- 命令行运行vue-cli+webpack项目没有自动在浏览器打开?
- 程序纹理应用之静态纹理生成
- Struts+displaytag国际化简单使用
- 大前端学习线路
- SQL to Aggregation Mapping Chart
- docker redis 快速启动
- struts2_day03_15_el表达式为什么获取值栈数据