1. 程式人生 > >tomcat伺服器監控工具之probe

tomcat伺服器監控工具之probe

前言:今天把公司的一臺tomcat伺服器進行了遷移,為了檢視在使用過程中的詳細資訊,在網上搜索了很多關於web伺服器的監控軟體,最後擬定使用probe這個開源並且功能也很完善的一款工具接下來介紹一下使用方法與安裝技巧

一、簡介

psi-probe是lambdaprobe的一個分支版本,用於對Tomcat進行監控,比tomcat的manager強大很多。

psi就是一個形如叉子的符號Ψ,希臘字母的第23個字母,用來代表fork。

為啥需要分支呢,因為lambdaprobe已經多年沒有更新(大致在2006年就停止釋出新版本了)。

二、下載地址

三、安裝

1.解壓,將probe.war放進webapps目錄。

2.修改CATALINA_HOME/conf/tomcat-users.xml

(許可權配置參考如下,由於首先保證可執行,許可權沒有特別細分,僅供參考)

<tomcat-users>
<!--
  NOTE:  By default, no user is included in the "manager-gui" role required
  to operate the "/manager/html" web application.  If you wish to use this app,
  you must define such a user - the username and password are arbitrary.
-->
<!--
  NOTE:  The sample user and role entries below are wrapped in a comment
  and thus are ignored when reading this file. Do not forget to remove
  <!.. ..> that surrounds them.
-->
  <role rolename="tomcat"/>
  <role rolename="role1"/>
  <role rolename="manager-gui"/>
  <role rolename="manager-script"/>
  <role rolename="manager-jmx"/>
  <role rolename="manager-status"/>
  <role rolename="poweruser"/>
  <role rolename="probeuser"/>
  <user username="tomcat" password="tomcat" roles="tomcat"/>
  <user username="both" password="tomcat" roles="tomcat,role1"/>
  <user username="role1" password="tomcat" roles="role1"/>

  <user username="sss" password="sss" roles="manager-gui"/>
  <user username="fbysss" password="sss" roles="manager-script,manager-jmx,manager-status,poweruser,probeuser"/>
</tomcat-users>

四、注意事項

1.不要忘記檔案中的<!---->,預設是註釋的,需要去掉

2.tomcat6.0.30以上,角色manager一分為四,manager仍保留但不建議使用,因為那樣容易遭到CSRF攻擊。詳見下面的描述:

  1. Note that for Tomcat 6.0.30 onwards, the roles required to use the manager application were changed from the single manager role to add the following four roles. (The manager role is still available but should not be used as it avoids the CSRF protection). You will need to assign the role(s) required for the functionality you wish to access.   
  2. manager-gui - allows access to the HTML GUI and the status pages   
  3. manager-script - allows access to the text interface and the status pages   
  4. manager-jmx - allows access to the JMX proxy and the status pages   
  5. manager-status - allows access to the status pages only   
  6. The HTML interface is protected against CSRF but the text and JMX interfaces are not. To maintain the CSRF protection:   
  7. users with the manager-gui role should not be granted either the manager-script or manager-jmx roles.   
  8. if the text or jmx interfaces are accessed through a browser (e.g. for testing since these interfaces are intended for tools not humans) then the browser must be closed afterwards to terminate the session.  

如果配置不對,就會出現403的錯誤,連tomcat的manager都進不了,更不用說probe了。

3.lambdaprobe是不支援tomcat6.0.30的。所以最好使用psi-probe。

4.在配置tomcat-users.xml時,還需要加入poweruser等角色,才可以正常使用,不然也是403Forbidden。

5.如果要檢視System Information,需要在catalina.sh中加入如下語句:

JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote"

windows版本:catalina.bat中加入SET JAVA_OPTS=%JAVA_OPTS% -Dcom.sun.management.jmxremote

五、許可權控制

probe有 probeuser、poweruser、poweruserplus、manager(針對不同tomcat版本)等角色,對應可操作的功能如下表:

特別注意一點:表格裡面的X表示擁有許可權,也就是說,manager的許可權是最大的,什麼都能操作(不推薦配置)。

六、測試

點選相應的連結就可以看到各種實時監控資訊了

probe1

probe2

probe3

probe4


相關推薦

tomcat伺服器監控工具probe

前言:今天把公司的一臺tomcat伺服器進行了遷移,為了檢視在使用過程中的詳細資訊,在網上搜索了很多關於web伺服器的監控軟體,最後擬定使用probe這個開源並且功能也很完善的一款工具接下來介紹一下使用方法與安裝技巧 一、簡介 psi-probe是lambdaprob

Tomcat日誌監控工具——Probe

今天遇到專案執行過程中需要檢視使用者訪問日誌,log4j.properties配置好,將log日誌輸出到tomcat的log資料夾下,但不可能每次都去伺服器上拉取log檔案檢視,網上找了下,發現一個日誌監控工具挺好的——Probe。tomcat probe是一個

jvm監控工具jstat篇

jvm監控工具之jstat篇1.jstat用於輸出指定 java 進程的統計信息 用法:Jstat : jstat -<option> [-t] [-h<lines>] <vmid> [<interval> [<count>]]其中的<opti

JMV監控工具JConsole

mark max 描述 sun acc lin 線程數 技術分享 性能監控 一、簡介 JConsole是一個基於JMX的GUI工具,用於連接正在運行的JVM,它是Java自帶的簡單性能監控工具。下面以對tomcat的監控為例,帶領大家熟悉JConsole這個工具。 二、配置

Redis叢集監控工具RedisLive

這裡將介紹下redis叢集監控UI工具之RedisLive的安裝部署。 說白了,RedisLive就是一款免費開源的基於Python、tornado的的reids的監控工具,以WEB的形式展現出redis中的記憶體、key,例項資料等資訊!Redis

Monit:開源伺服器監控工具

Monit是一個跨平臺的用來監控Unix/linux系統(比如Linux、BSD、OSX、Solaris)的工具。Monit特別易於安裝,而且非常輕量級(只有500KB大小),並且不依賴任何第三方程式、外掛或者庫。 Monit可以監控伺服器程序狀態、HTTP/TCP狀態碼、伺服器資源變化、檔案系統變動等等,

10 個免費的伺服器監控工具

監控你的WEB伺服器或者WEB主機執行是否正常與健康是非常重要的。你要確保使用者始終可以開啟你的網站並且網速不慢。伺服器監控工具允許你收集和分析有關你的Web伺服器的資料。 有許多非常好的伺服器監控解決方案,而為了省去你尋找方案的麻煩,這裡我為你列出了我能找到的最好的伺服器監控工具。 Perfor

Tomcat伺服器狀態管理Session

1. 狀態管理-Session 1.1. Session 1.1.1. 什麼是Session 伺服器為不同的客戶端在記憶體中建立了用於儲存資料的Session物件,並將用於標識該物件的唯一Id發回給與該物件對應的客戶端。當瀏覽器再次傳送請求時,SessionId也會被髮送過來,伺服器憑藉這個唯一Id找到與之

linux網絡流量實時監控工具nload

ack redhat bytes option asi fig -m gem ssi Install nload on a CentOS/RHEL/Red Hat/Fedora Linux First, turn on EPEL repo on a CentOS or R

Monit-開源伺服器監控工具

Monit-開源伺服器監控工具  發表於 2018-07-02   |  

你必須瞭解的10款伺服器監控工具

你不得不瞭解的10款伺服器監控工具 背景 監控Web伺服器或Web主機的執行狀況和正常執行非常重要。如果希望確保您的網站可用性在您的控制之中,那你就需要收集伺服器各種效能資料以供分析和調整。以下是收集的常用大多數伺服器監控元件解決方案。 Performance Co-Pilot,簡稱PCP,是一個

安裝--->Tomcat監控工具Probe

src test ssi tomcat集群 tar exe clu check 查看 1.Porbe介紹 psi-probe用於對Tomcat進行監控,比tomcat的manager強大很多。 2.下載 probe-2.3.3.zip 或者 probe.war 3.將

Tomcat效能監控Probe

 目前採用java進行開發的系統居多,這些系統執行在java容器中,通過對容器的監控可以瞭解到java程序的執行狀況,分析java程式問題。目前市面上流行的中介軟體有很多(Tomcat、jetty、jboss、weblogic、websphere等),基本原理相似,都遵循Servlet規範。對容器的監控,實際

Tomcat監控probe安裝

首先需要新增Tomcat使用者賬號 修改$CATALINA_HOME/conf/tomcat-users.xml: <tomcat-users> <!-- 使用者角色 --> <role rolename="manager"/> <!-- 使用者

JMX實現遠端伺服器Tomcat系統監控

前面兩篇JMX遠端監控Tomcat伺服器是沒配置密碼的,下面介紹在Tomcat監控時配置使用者密碼。 具體Tomcat地址:http://tomcat.apache.org/tomcat-6.0-doc/monitoring.html#Enabling_JMX_Rem

伺服器監控zabbix監控Tomcat

介紹下zabbix監控Tomcat服務; 1. 配置Tomcat Jmx (1). 編輯catalina.sh,加入如下配置(注意空格) # vim ${TOMCAT_HOME}/bin/catalina.sh CATALINA_OPTS="-Dcom.sun.mana

Tomcat監控工具Probe

1.Porbe介紹 psi-probe用於對Tomcat進行監控,比tomcat的manager強大很多。 2.下載 probe-2.3.3.zip  或者  probe.war  3.將下載好的war包,或者zip檔案,放在tomcat的webapp目錄下 4

Tomcat 監控及遠端日誌檢視工具psi-probe

https://code.google.com/p/psi-probe/downloads/list 下載後將檔案解壓放在tomcat webapp下,將目錄名稱改為xxx-psi2-pb 修改tomcat 下conf/tomcat-users.xml   配置訪問許可權

DevOps服務-監控工具

ora 資產 濕度 fort weblogic cached var hyper-v etx 嘮叨話 關於德語噢屁事的知識點,僅提供精華匯總,具體知識點細節,參考教程網址,如需幫助,請留言。 本章節屬於《DevOps教程》的部分。 《DevOps之服務-監控工具》 註

JVM調優監控工具

protect 操作 虛擬 遠程調試 -xms thread 行號 垃圾 time javac -verbose 類名.java java -verbose 類名 javap -c 類名 javap -verbose 類名JAVAP -HELP用法: javap其中, 可能