<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    konhon

    忘掉過去,展望未來。找回自我,超越自我。
    逃避不一定躲的過, 面對不一定最難過, 孤單不一定不快樂, 得到不一定能長久, 失去不一定不再擁有, 可能因為某個理由而傷心難過, 但我卻能找個理由讓自己快樂.

    Google

    BlogJava 首頁 新隨筆 聯系 聚合 管理
      203 Posts :: 0 Stories :: 61 Comments :: 0 Trackbacks

    關于Apache Portable Runtime and Tomcat- -

    ??????????????????????????????????????

    關于Apache Portable Runtime and Tomcat

    在從Tomcat 5.0.28轉向5.5.X時,在啟動時發現出現如下信息
    [org.apache.catalina.core.AprLifecycleListener]-[INFO] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: (...你的系統環境PATH路徑...)

    在停止時發現出現如下信息
    [org.apache.catalina.core.AprLifecycleListener]-[INFO] Failed shutdown of Apache Portable Runtime

    于是,想消除這個問題,通過查閱 http://tomcat.apache.org/tomcat-5.5-doc/apr.html

    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.

    發現 Tomcat 可以用 Apache Portable Runtime 來提供更強性能,提升Web靜態頁面的處理能力,不再需要專門的Web Server來處理靜態頁面了。

    但是APR的支持需要安裝三個本地組件
    APR support requires three main native components to be installed:
    1、APR library
    2、JNI wrappers for APR used by Tomcat (libtcnative)
    3、OpenSSL libraries

    解決:Windows下的安裝配置與使用
    1、先去 http://tomcat.heanet.ie/native/ 下載編譯好的 tcnative-1.dll 文件,也可以下載tomcat-native.zip自己進行編譯
    2、修改一下 catalina.bat,加上
      set CATALINA_OPTS="-Djava.library.path=../../APR/lib"
    因為我把這個DLL放在與Tomcat目錄同級的APR/lib目錄下,所以采用了相對路徑。或者把dll加到你的系統變量PATH里之類的,最簡單的方法應當就是把tcnative-1.dll文件放在Tomcat的bin目錄下:)

    這樣設置后,啟動可以看到信息如下:
    [org.apache.coyote.http11.Http11AprProtocol]-[INFO] Initializing Coyote HTTP/1.1 on http-9091
    在停止時發現出現如下信息
    [org.apache.coyote.http11.Http11AprProtocol]-[INFO] Pausing Coyote HTTP/1.1 on http-9091
    ......
    [org.apache.coyote.http11.Http11AprProtocol]-[INFO] Stopping Coyote HTTP/1.1 on http-9091

    這樣就配置成功了。性能方面目前沒有做詳細的測試。
    ======================================================================
    相關的文檔參見
    http://tomcat.apache.org/tomcat-5.5-doc/apr.html

    相關的性能測試結果參見
    http://www.javaworld.com.tw/jute/post/view?bid=9&id=139958&sty=3&age=0

    posted on 2006-11-27 20:29 konhon 優華 閱讀(2973) 評論(0)  編輯  收藏

    只有注冊用戶登錄后才能發表評論。


    網站導航:
     
    主站蜘蛛池模板: 午夜亚洲av永久无码精品| 国产免费无码一区二区| 亚洲欧好州第一的日产suv| 亚洲国产成人久久77| 亚洲黑人嫩小videos| 亚洲福利在线观看| 久久亚洲精品中文字幕| 精品亚洲国产成AV人片传媒| 91嫩草私人成人亚洲影院| 久久久国产精品亚洲一区| 亚洲网站免费观看| 亚洲国产av美女网站| 亚洲精品二三区伊人久久| 亚洲中文字幕无码av永久| 亚洲性色精品一区二区在线| 亚洲女子高潮不断爆白浆| 大桥未久亚洲无av码在线| 国产成人综合亚洲绿色| 九九免费精品视频在这里| 99免费在线视频| 久久成人免费电影| 精品福利一区二区三区免费视频 | 国产v亚洲v天堂a无| 亚洲日韩一区二区一无码| 色窝窝亚洲AV网在线观看| 一级做a爰片久久毛片免费看| 中文字幕无码毛片免费看| 97在线视频免费公开观看| 丁香花免费高清视频完整版| 永久免费AV无码网站在线观看 | 久久久久久久岛国免费播放 | 曰批免费视频播放在线看片二| 一个人看的免费视频www在线高清动漫| 国产永久免费高清在线| 亚洲一区二区三区免费视频| 天天摸夜夜摸成人免费视频| 亚洲国产精品一区二区九九| 久久伊人久久亚洲综合| 亚洲人成综合网站7777香蕉| 日亚毛片免费乱码不卡一区 | 国产精品亚洲一区二区三区在线观看 |