APR 使用Apache Tomcat Native library提升Tomcat性能

<script type="text/javascript"> //<![CDATA[ Sys.WebForms.PageRequestManager._initialize('AjaxHolder$scriptmanager1', document.getElementById('Form1')); Sys.WebForms.PageRequestManager.getInstance()._updateControls(['tAjaxHolder$UpdatePanel1'], [], [], 90); //]]> </script>

使用Apache Tomcat Native library提升Tomcat性能

机器上装的是Tomcat 6.0,Windows server2003 的服务器,每次启动时总有如下提示:

The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path

解决方案如下:

所谓的Apache Tomcat Native library 其实叫APR,全称为:Apache Portable Runtime and Tomcat 。可以通过下面地址访问:http://tomcat.apache.org/tomcat-5.5-doc/apr.html

用于Windows的APR是一个名称为:tcnative-1.dll 的文件,下载地址:http://tomcat.heanet.ie/native/ ,目前最新版本是1.1.9。

把这个 tcnative-1.dll 文件放到<$JAVA_HOME>/bin下,重启Tomcat,刚才的提示不见了,看来OK了:

2007-10-11 0:30:56 org.apache.coyote.http11.Http11AprProtocol init
信息: Initializing Coyote HTTP/1.1 on http-8080

你可能感兴趣的:(apache,tomcat,jni,IE,performance)