安装配置
1.下载probe

地址:http://code.google.com/p/psi-probe/downloads/list

2. 更改tomcat配置

1)进入conf/ tomcat-users-xml去掉一下注释:

 

2)在配置后面添加配置用户配置:

 

3.将probe-x.x.x.zip解压,将解压后的probe.war放入webapps文件夹下

4.启动tomcat编译probe.war

5.打开浏览器访问probe地址

例如:http://localhost:8080/probe

输入配置的username和password进行登录
官方文档

InstallationApacheTomcat

Instructionsfor deploying to Apache Tomcat

Updated Mar 2, 2012 by MALfunct…@gmail.com

Configuration

Beforeyou deploy PSI Probe to Apache Tomcat, you must configure the server. This mayrequire you to restart the Tomcat service.

Security

PSIProbe requires four security roles (in order of increasing privileges):

probeuser
poweruser
poweruserplus
manager – This is the same role required by Tomcat Manager and has the highest level of privileges.
Note: On Tomcat7 (or Tomcat 6.0.30 and above), you can use manager-gui instead of manager.

Thesemust be added to your Realm. By default, roles are configured by editing $CATALINA_HOME/conf/tomcat-users.xml:

Thiswill create a user called admin with therole of manager.

Ifyou are not using the default configuration, add these roles as appropriate foryour Realm. Some Realm configurations, such as a JNDIRealm connecting to LDAP,will not require a server restart.

EnableRemote JMX (Optional)

PSIProbe requires remote JMX to collect and display certain pieces of information(memory usage, cluster traffic, connection pools, and active threads). You can enableremote JMX with the following JVM command line option:

-Dcom.sun.management.jmxremote=true
Ifyou need the JMX connection to be secured, refer to the Tomcat documentation onthis topic.

Deployment

Onceyou have completed the configuration steps, it’s time to deploy PSI Probe.

Option1: Deploy with Tomcat Manager

1. Start Tomcat if it is notrunning.

2. Open the manager URL (e.g. http://localhost:8080/manager/html)in your web browser.

3. Upload probe.war using the”War file to deploy” option.

Option2: Manually Copy to Server

1. Shut down Tomcat if it isrunning.

2. Copy probe.war into $CATALINA_HOME/webapps/

3. Start Tomcat.

Option3: Fully Manual Deployment

Youcan, of course, unpackage probe.war file andcreate the probe.xml contextdescriptor yourself.

Ifyou do this, understand that PSI Probe requires a privileged context. META-INF/context.xml in probe.war containsan example:

<?xml version=”1.0″ encoding=”UTF-8″?>
<Contextpath=”/probe”privileged=”true”/>
Testing

Onceyou have deployed PSI Probe to Tomcat, verify that you can access it in yourweb browser by entering PSI Probe’s URL (e.g.http://localhost:8080/probe).

Whenyou are prompted for a username and password, enter the credentials for themanager account you created earlier.

Ifyou have any problems, see our Troubleshooting page.

操作

配置完成之后浏览器访问http://localhost:8080/probe

根据配置的用户名和密码登陆即可进入管理界面

之后的监控操作 相信没有谁看不懂的,全是视图模式的。

分类: 运维

guolin

guolin

相信世界,向往美好,记录成长过程,分享个人心得,充实平凡生活。 网站信条:因为喜欢,所以热爱。

发表评论

电子邮件地址不会被公开。 必填项已用*标注