当前位置: 代码迷 >> J2EE >> tomcat启动报的这个是什么意义?关于APR的,
  详细解决方案

tomcat启动报的这个是什么意义?关于APR的,

热度:80   发布时间:2016-04-17 23:39:56.0
tomcat启动报的这个是什么意思?关于APR的,,,,,,
这个APR是干什么的,,改善tomcat性能?什么情况下才需要它?求解释。。。。还有
十月 11, 2014 10:06:49 上午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-bio-8080"]
十月 11, 2014 10:06:49 上午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-bio-8009"]
ProtocolHandler是干嘛的。。。。。。bio,ajp这些都是干什么的,求详细解释。
------解决思路----------------------
http://www.kankanews.com/ICkengine/archives/79574.shtml
------解决思路----------------------
引用:
好吧,,那有关于那个APR的介绍吗


关于tomcat深层次的东西我也没怎么去关注,都是看到你的问题,临时去搜去看的~  
------解决思路----------------------
我只知道ajp是种传递信息的方式,作负载均衡的时候就能以这种方式在多个tomcat之间同步信息
------解决思路----------------------
参考这里:
http://tomcat.apache.org/tomcat-7.0-doc/apr.html
全称是这个Apache Portable Runtime,其实只看一句话就差不多够了:
Tomcat can use the Apache Portable Runtime to provide superior scalability, performance, and better integration with native server technologies. 
就比如你写java程序,可以通过jni调用不同平台上的native实现。APR就是让tomcat可以调用native的实现。
tomcat通过APR可以优化一些功能,或者我想也可以扩展一些功能。
  相关解决方案