“没有找到基于APR的Apache Tomcat Native库”是什么?意思? [英] What does "The APR based Apache Tomcat Native library was not found" mean?
问题描述
基于APR的Apache Tomcat Native库可以在生产环境中实现最佳性能发现在java.library.path
这是什么意思,如何提供APR库?
这意味着它的含义:基于APR的Apache Tomcat Native库在生产环境中可以获得最佳性能没有在java.library上找到。路径
所引用的库被绑定到通过JNI加载的操作系统特定的dll(tcnative-1.dll)中。它允许tomcat使用Java运行时未提供的操作系统功能(如sendfile,epoll,OpenSSL,系统状态等)。如果你真的想要它,下载 tcnative-1.dll
(或 libtcnative.so
for Linux)并将其放在bin文件夹中,并将系统属性添加到eclipse中tomcat服务器的启动配置。
-Djava.library.path = c:\dev\tomcat\bin
/ pre>
I am using Tomcat 7 in Eclipse on Windows. When starting Tomcat, I am getting the following info message:
The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path
What does this mean and how can I provide the APR library?
解决方案It means exactly what it says: "The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path"
The library referred to is bundled into an OS specific dll (tcnative-1.dll) loaded via JNI. It allows tomcat to use OS functionalities not provided in the Java Runtime (such as sendfile, epoll, OpenSSL, system status, etc.). Tomcat will run just fine without it, but for some use cases, it will be faster with the native libraries.
If you really want it, download the
tcnative-1.dll
(orlibtcnative.so
for Linux) and put it in the bin folder, and add a system property to the launch configuration of the tomcat server in eclipse.-Djava.library.path=c:\dev\tomcat\bin
这篇关于“没有找到基于APR的Apache Tomcat Native库”是什么?意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!