zoukankan      html  css  js  c++  java
  • 信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path:……

    Tomcat6启动是有上面面信息提示,通过http://tomcat.apache.org/tomcat-6.0-doc/apr.html了解下Apache Portable Runtime (APR):

    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.

    当然介绍中也有怎么让Tomcat6可以使用APR的方法,它需要3个主要部分:

  • APR library
  • JNI wrappers for APR used by Tomcat (libtcnative)
  • OpenSSL libraries

    对于windows系统下载Tomcat Native Connector ,下载地址是这里

    下载tcnative-1.dll, 然后将它放在系统的path变量指定的路径下即可,例如system32下。

    然后启动Tomcat将看到提示信息如下:

    2010-9-16 15:21:49 org.apache.catalina.core.AprLifecycleListener init
    信息: Loaded APR based Apache Tomcat Native library 1.1.20.
    2010-9-16 15:21:49 org.apache.catalina.core.AprLifecycleListener init
    信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].

     

完结
查看全文
  • 相关阅读:
    BZOJ 3252: 攻略(思路题)
    BZOJ 2821: 作诗(Poetize)(分块)
    BZOJ 2597: [Wc2007]剪刀石头布(费用流)
    BZOJ 1565: [NOI2009]植物大战僵尸(网络流+缩点)
    BZOJ 1927: [Sdoi2010]星际竞速(费用流)
    BZOJ 5120: [2017国家集训队测试]无限之环(费用流)
    洛谷 5205 【模板】多项式开根
    LOJ 2737 「JOISC 2016 Day 3」电报 ——思路+基环树DP
    LOJ 2736 「JOISC 2016 Day 3」回转寿司 ——堆+分块思路
    bzoj 2216 [Poi2011]Lightning Conductor——单调队列+二分处理决策单调性
  • 原文地址:https://www.cnblogs.com/linger/p/1830881.html
  • Copyright © 2011-2022 走看看