解决“The Apache Portable Runtime which allows optimal performance in production environments was not found on the java.library.pat

解决“The Apache Portable Runtime which allows optimal performance in production environments was not found on the java.library.path:”

 

问题:

开发工具Eclipse、Tomcat5.5

在启动Tomcat5.5时,控制台提示“The Apache Portable Runtime which allows optimal performance in production environments was not found on the java.library.path:”(...你的系统环境PATH路径...)

 

解决:

Tomcat从5.5版本后增加了APR技术(Apache Portable Runtime),这是一个用C语言写成文件包,目的在于提高Tomcat的服务性能,从而使得Tomcat将不仅仅担任一个容器的功能,而是要成为一个一般的web服务器(general purpose webserver)。

首先要到Tomcat网站上去下载:http://tomcat.apache.org/download-native.cgi 找到Native 1.1.13 Source Release zip这是个源文件,如果你要自己编译就下这个,如果想使用已编译好的dll文件就点击这个链接下面的“Here“链接,(或者直接点击这个链接http://apache.etoak.com/tomcat/tomcat-connectors/native/1.1.16/binaries/win32/
)找一个版本号最新的,进去可以下载一个tcnative-1.dll文件。

 

配置:

将文件放到Tomcat安装路径下,%CATALINA_HOME%/bin中

 

参阅:

 http://tomcat.apache.org/tomcat-5.5-doc/apr.html

Tomcat can use the Apache Portable Runtime 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.

发现 Tomcat 可以用 Apache Portable Runtime 来提供更强性能,提升Web静态页面的处理能力,不再需要专门的Web Server来处理静态页面了。

但是APR的支持需要安装三个本地组件
APR support requires three main native components to be installed:
1、APR library
2、JNI wrappers for APR used by Tomcat (libtcnative)
3、OpenSSL libraries

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值