今天在Eclipse上配置Tomcat7,启动时看到如下警告信息:
The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path
感到很不舒服,于是在网上找了些解决办法。
以下内容来自:http://cooliron.blog.163.com/blog/static/124703138201112211571276/
在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会使效率提升:
一是,处理静态资源的时候速度更快,(注:有人用jmeter,对使用apr前后的tomcat进行压力测试,结果显示,性能是有一定的提升,但是没有想象中多,只有一点点,当然,这与运行的逻辑有关,但是我个人认为在大多数情况下这部分性能提升甚微)。
二是,我认为提升比较多的是对ssl的处理效率,当tomcat处理https的请求是,如果使用本地的openssl库,肯定会比前面提升的效率高。(虽然没有实际测试数据,但我推测这里的性能提升比例上要比第一点多得多)。
原因上面已经说得很清楚了,下面说下我的解决办法。
首先,tcnative-1.dll不需要下载,至少对于Tomcat7来说是这样,我们可以在其bin目录下找到这个dll;
其次,tcnative-1.dll放在哪儿不要紧,只要在系统的PATH中可以找到就行。
解决:
在系统的环境变量中添加CATALINA_HOME,它指向你的Tomcat根目录,接着在PATH路径中添加%CATALINA_HOME%\bin;
这样就可以解决了,对了,设置完成后,可能需要重启下Eclipse。
分享到:
相关推荐
标题中的"The APR based Apache Tomcat Native library"是指Apache Portable Runtime(APR)库的一个组件,即Apache Tomcat Native库。这个库是专门为Apache Tomcat设计的,目的是为了提高其在处理网络I/O、系统调用...
标题 "tomcat 启动报APR based Apache Tomcat Native library not found" 指出的问题是关于Apache Tomcat服务器在启动时找不到基于APR(Apache Portable Runtime)的本机库。这通常涉及到Tomcat使用APR库来提高性能...
综上所述,"APR based Apache Tomcat Native library 1.1.14"对于优化Apache Tomcat的性能、安全性和兼容性具有重要意义。开发者和系统管理员应当了解并掌握这些知识点,以便在实际环境中充分利用这个库的优势。
TOMCAT昨天突然自己宕掉服务了,怎么重起都不行,后来查看logs中catalina.out 日志发现如下错误 INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not ...
解决tomcat 启动 An incompatible version [1.2.14] of the APR based Apache Tomcat Native library 错误,64BIN使用
严重: An incompatible version 1.1.14 of the APR based Apache Tomcat Native library is installed, while Tomcat requires version 1.1.17 该资源为1.1.22版本,之后放到,tomcat/lib或者system32即可
An incompatible version [1.1.33] of the APR based Apache Tomcat Native library is installed, while Tomcat requires version [1.2.14] 将文件放在:C:\Windows\System32 tcnative-1.dll 1.2.16下载 1.2.14...
The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path CProgram FilesJavajdk1.6.0_04jrebin;CProgram FilesTomcat ...
The Apache Tomcat Native Liberay which allows optimal performance in production environments was not found on the java.library.path:E:\java\jdk1.5.0_05
tcnative-1.dll 1.2.18 tomcat 启动报错 The APR based Apache Tomcat Native library which allows optimal performance in production 问题的解决需要这个,注意自己需要什么版本,之前下了1.2.14 显示版本不对:...
The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path 2、第二个错误,错误详情: Exception in thread “main” ...
信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Java\jre1.5.0_11\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\...
这个库文件在Java应用程序中扮演着关键角色,特别是对于Apache Tomcat这样的Java应用服务器,它是一个开源的、用于部署Java Web应用的服务器。本文将深入探讨1.1.32和1.1.33这两个版本的64位tcnative-1.dll,并讨论...
在Tomcat日志中,会有类似“Using APR based Apache Tomcat Native library”这样的信息。 通过启用Apr和Tomcat Native,你可以享受到以下优势: - **更高的性能**:由于可以直接调用操作系统API,Tomcat的网络I/O...
配置springboot环境时报错: ...An incompatible version [1.1.16] of the APR based Apache Tomcat Native library is installed, while Tomcat requires version [1.2.14] 将文件放在:C:\Windows\System32
idea springboot项目启动时Tomcat报错:An incompatible version [1.1.33] of the APR based Apache Tomcat Native library is installed, while Tomcat requires version [1.2.14] 原因:安装了基于APR的Apache ...
An older version 1.1.17 of the APR based Apache Tomcat Native library is installed, while Tomcat recommends version greater than 1.1.19 tomcat 启动,需要native lib,各种版本的收集齐了,花了好多时间...
解决The APR based Apache Tomcat Native library which allows optimal performance in production environm;解决tomcat启动时如下异常:在java.library.path中找不到基于APR的Apache Tomcat Native库,它可以在...
An imcompatible version 1.1.27 of the APR based Apache Tomcat Native library is installed, while Tomcat requires version 1.1.32