[INFO] Failed shutdown of Apache Portable Runtime
1.簡介:
Tomcat can use the Apache Portable Runtime(Apache可移植运行库) to provide superior scalability, performance, and better integration with native server technologies. The Apache Portable Runtime is a highly portable library that is at the heart of Apache HTTP Server 2.x. APR has many uses, including access to advanced IO functionality (such as sendfile, epoll and OpenSSL), OS level functionality (random number generation, system status, etc), and native process handling (shared memory, NT pipes and Unix sockets).
These features allows making Tomcat a general purpose webserver, will enable much better integration with other native web technologies, and overall make Java much more viable as a full fledged webserver platform rather than simply a backend focused technology.
2.安裝
安装好以下三个主要的本地组件方可支持 APR :
- APR库
- 供Tomcat使用APR的JNI包装器 (libtcnative)
- OpenSSL库
解决:Windows下的安装配置与使用
1、先去 http://tomcat.heanet.ie/native/ 下载编译好的 tcnative-1.dll 文件,也可以下载tomcat-native.zip自己进行编译
2、修改一下 catalina.bat,加上
set CATALINA_OPTS="-Djava.library.path=../../APR/lib"
因为我把这个DLL放在与Tomcat目录同级的APR/lib目录下,所以采用了相对路径。
或者把dll加到你的系统变量PATH里之类的,
最简单的方法应当就是把tcnative-1.dll文件放在Tomcat的bin目录下
詳細信息:http://tomcat.apache.org/tomcat-5.5-doc/apr.html