psi-probe安裝手記
作者:fbysss
msn:jameslastchina@hotmail.com
blog:blog.csdn.net/fbysss
宣告:本文由fbysss原創,轉載請註明出處
關鍵字:tomcat監控 probe
一、簡介
psi-probe是lambdaprobe的一個分支版本,用於對Tomcat進行監控,比tomcat的manager強大很多。
psi就是一個形如叉子的符號Ψ,希臘字母的第23個字母,用來代表fork。
為啥需要分支呢,因為lambdaprobe已經多年沒有更新(大致在2006年就停止釋出新版本了)。
二、下載地址
http://code.google.com/p/psi-probe/downloads/list
三、安裝
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攻擊。詳見下面的描述:
如果配置不對,就會出現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的許可權是最大的,什麼都能操作(不推薦配置)。
Features by Role
probeuser | poweruser | poweruserplus | manager | |
Context: list | X | X | X | X |
Context: status | X | X | X | X |
Context: view servlets | X | X | X | X |
Context: view servlet mappings | X | X | X | X |
Context: view filters | X | X | X | X |
Context: view filter mappings | X | X | X | X |
Context: list attributes | X | X | X | X |
Context: remove attributes | X | X | X | |
Context: start | X | X | X | |
Context: stop | X | X | X | |
Context: view web.xml | X | X | X | |
Context: view context.xml | X | |||
Context: deploy | X | |||
Context: undeploy | X | |||
Session: list | X | X | X | X |
Session: list attributes | X | X | X | X |
Session: search attributes | X | X | X | X |
Session: remove attributes | X | X | X | |
Session: view last-accessed IP | X | X | X | X |
Session: expire single | X | X | X | |
Session: expire multiple | X | X | X | |
JSP: list | X | X | X | |
JSP: view source | X | X | X | |
JSP: view servlet source | X | X | X | |
JSP: compile single | X | X | X | |
JSP: compile multiple | X | X | X | |
JSP: compile all on deployment | X | |||
JSP: discard all compiled | X | |||
Data Source: list | X | X | X | X |
Data Source: group by JDBC URL | X | X | X | X |
Data Source: status | X | X | X | X |
Data Source: reset | X | X | X | |
Data Source: test | X | X | ||
Data Source: view query history | X | X | ||
Data Source: execute SQL | X | X | ||
Log: list | X | X | X | X |
Log: tail in real-time | X | X | X | X |
Log: download | X | X | X | X |
Thread: list | X | X | X | X |
Thread: view execution stack | X | X | X | |
Thread: kill | X | |||
Connector: status | X | X | X | X |
Connector: real-time usage charts | X | X | X | X |
Cluster: status | X | X | X | X |
Cluster: real-time traffic charts | X | X | X | X |
JVM: real-time memory usage charts | X | X | X | X |
JVM: status | X | X | X | X |
JVM: advise GC | X | |||
Java Service Wrapper: status | X | X | X | X |
Java Service Wrapper: restart JVM | X | |||
System: overview | X | X | X | X |
System: properties | X | X | X | X |
System: OS details | X | |||
Quick Check: execute | X |
六、效果圖
相關文章
- 越獄手記:手動編譯安裝 Electra編譯
- SQL Server 2012 RTM 安裝手記XGSQLServer
- ARM 和 龍芯上 Arch Linux 安裝手記Linux
- 【隨手記錄】mongoDB離線安裝指令碼MongoDB指令碼
- atom-package 安裝緩慢,手動安裝Package
- 【安裝】安裝centos79的筆記CentOS筆記
- 快速手動安裝 msyql
- Manjaro安裝筆記JAR筆記
- ArchLinux 安裝小記Linux
- Docker安裝記錄Docker
- yarn的安裝,並使用yarn安裝vue腳手架YarnVue
- Tigase手動安裝過程
- 手動安裝ROS2ROS
- Ubuntu安裝docker筆記UbuntuDocker筆記
- yarn 安裝使用小記Yarn
- Redis On Windows安裝記錄RedisWindows
- 記錄 Ubuntu 安裝 homestaedUbuntu
- python 包安裝筆記Python筆記
- 安裝PHP ImageMagick筆記PHP筆記
- 安裝seafile記錄文件
- Macbook安裝Cplex記錄Mac
- 安卓手機使用Alpine Term APK安裝Linux系統,並安裝docker安卓APKLinuxDocker
- nginx手動安裝基於類centos系統環境安裝NginxCentOS
- 靜默安裝and手動建庫
- 【Hyperledger Fabric】Fabric 2.2 手動安裝
- 在idea中手動安裝lombokIdeaLombok
- Go語言快速安裝手冊Go
- fabric 鏈碼安裝筆記筆記
- 記一次安裝leanote
- proxysql安裝和使用小記SQL
- ROS筆記[3]-安裝mavrosROS筆記VR
- Git筆記(3) 安裝配置Git筆記
- 筆記本固態安裝筆記
- docker 安裝部署 supervisor 小記Docker
- iOS安裝包瘦身小記iOS
- RabbitMQ學習筆記-安裝MQ筆記
- 黑蘋果安裝筆記蘋果筆記
- VirtualBox安裝問題記錄
- c++ protobuf安裝記錄C++