如何檢視TOMCAT5 5併發訪問量並開啟APR

2021-08-29 16:43:38 字數 1302 閱讀 1091

如何在window下配置tomcat apr:

apr是什麼呢,(tomcat can use theapache portable runtime to provide superior scalability, performance, and better integration with native server technologies.

2、把tcnative-1.dll檔案放在tomcat的bin目錄下

然後啟動tomcat,如果看到以下資訊:

資訊: starting coyote http/1.1 on http-8080

2008-8-31 17:28:59 org.apache.coyote.ajp.ajpaprprotocol start]則配置成功

然後你可以用apache的ab命令測試下效果.

相關apr的引數配置可以參考以下文件:

如何檢視tomcat的併發訪問量:

我們進入tomcat服務管理頁面(http://localhost:8080/manager/status),可以看到下面這段文字

max threads: 1000 min spare threads: 0 max spare threads: 0 current thread count: 303 current thread busy: 234 keeped alive sockets count: 0

max processing time: 23531 ms processing time: 29287.717 s request count: 2980 error count: 0 bytes received: 0.00 mb bytes sent: 12.61 mb

current thread count: 303  這個引數則代表當前tomcat的併發訪問量

這是我tomcat伺服器的配置:

將tomcat日誌更改為log4j日誌輸出

把commons-logging.jar,log4j-1.2.13.jar的兩個jar拷貝到tomcat_home/common/lib下面.

然後在將log4j.properties拷貝到tomcat_home/common/classes下面

tomcat5 5網域名稱配置

一般情況下程式設計師寫的程式的訪問位址為http localhost 8080 myproject index.jsp,現在要根據網域名稱 例 www.sohu.com 訪問到專案,我使用的是windows 2003和tomcat5.5.28,配置如下 1.在專案中的web.xml檔案中設定 ind...

Tomcat5 5 配置詳細說明

基本配置 2 conf資料夾下主要是放置tomcat的伺服器的相關配置檔案 3 common資料夾主要是對容器全域性變數的檔案放置地方,如common lib下就是放置一些需要全文配置的檔案包。一般來說作為乙個符合規範的web程式,會包括以下資料夾和檔案 web inf 主要是放置一些配置檔案與不希...

tomcat5 5日誌配置

tomcat5.5日誌配置 從tomcat5.5後,預設設定下並不會記錄應用日誌,但是如果啟動tomcat報類似嚴重 error listenerstart這樣的錯誤很難知道具體是什麼原因。所以有時需要讓它產生應用日誌。具體辦法如下 新建log4j.properties 然後把新建的log4j.pr...