“未找到基于 APR 的 Apache Tomcat Native 库"是什么意思?意思是? [英] What does "The APR based Apache Tomcat Native library was not found" mean?

查看:22
本文介绍了“未找到基于 APR 的 Apache Tomcat Native 库"是什么意思?意思是?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Windows 上的 Eclipse 中使用 Tomcat 7.启动 Tomcat 时,我收到以下信息消息:

I am using Tomcat 7 in Eclipse on Windows. When starting Tomcat, I am getting the following info message:

在 java.library.path 中找不到基于 APR 的 Apache Tomcat Native 库,该库可在生产环境中实现最佳性能

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

这是什么意思,我该如何提供 APR 库?

What does this mean and how can I provide the APR library?

推荐答案

它的意思正是它所说的:在 java.library.path 上没有找到基于 APR 的 Apache Tomcat Native 库,它可以在生产环境中实现最佳性能"

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"

所引用的库被捆绑到通过 JNI 加载的特定于操作系统的 dll (tcnative-1.dll) 中.它允许 tomcat 使用 Java 运行时未提供的操作系统功能(例如 sendfile、epoll、OpenSSL、系统状态等).Tomcat 没有它也能正常运行,但对于某些用例,使用本机库会更快.

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.

如果你真的想要它,下载tcnative-1.dll(或libtcnative.so for Linux)放入bin文件夹,在eclipse中tomcat服务器的启动配置中添加系统属性.

If you really want it, download the tcnative-1.dll (or libtcnative.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	omcatin

这篇关于“未找到基于 APR 的 Apache Tomcat Native 库"是什么意思?意思是?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆