tomcat性能监控工具 lambda probe

lambda probe是一个tomcat性能监控工具,它提供了比tomcat管理控制台更加强大的功能,它自身也是一个web应用,直接部署到tomcat下就可以通过web方式来访问了.

lambda probe提供了非常丰富的功能,下面是它的一些特性:

* Comprehensive JVM memory usage monitor.
* JBoss compatibility
* Display of deployed applications, their status, session count, session object count, context object count, datasource usage etc.
* Start, stop, restart, deploy and updeploy of applications
* Ability to view deployed JSP files
* Ability to compile all or selected JSP files at any time.
* Ability to pre-compile JSP files on application deployment.
* Ability to view auto-generated JSP servlets
* Display of list of sessions for a particular application
* Display of session attributes and their values for a particular application. Ability to remove session attributes.
* Ability to view application context attributes and their values.
* Ability to expire selected sessions
* Graphical display of datasource details including maximum number of connections, number of busy connections and configuration details
* Ability to group datasource properties by URL to help visualizing impact on the databases
* Ability to reset data sources in case of applications leaking connection
* Display of system information including System.properties, memory usage bar and OS details
* Display of JK connector status including the list of requests pending execution
* Real-time connector usage charts and statistics.
* Real-time cluster monitoring and clulster traffic charts
* Real time OS memory usage, swap usage and CPU utilisation monitoring
* Ability to show information about log files and download selected files
* Ability to tail log files in real time from a browser.
* Ability to interrupt execution of “hang” requests without server restart
* Ability to restart Tomcat/JVM via Java Serview Wrapper.
* Availability “Quick check”

网址: http://www.lambdaprobe.org/d/index.htm

在线演示: http://demo.lambdaprobe.org/ 用户名密码为demo/demo 。




--------------------------------------------------------------------------------
安装帮助:


Depending on the type of application server Lambda Probe is being installed on the installation procedure will differ. There are two types of application servers that are supported: http://www.lambdaprobe.org/d/download.htm

Apache Tomcat (standalone)
JBoss with embedded Apache Tomcat
Installing on Apache Tomcat
Lambda Probe requires privileged context. Depending on your preferred way of deploying WARs such context would either be installed automatically or manually. In any case you can find sample context.xml inside probe.war in META-INF directory. Various installation procedures are outlined below.

Installation using Tomcat Manager (recommended)
Download Lambda Probe .war file
Start Tomcat and go to Manager url (ex. http://localhost:8080/manager/html)
Upload probe.war using "WAR file to deploy" option
Installing manually
Download Lambda Probe .war file
Shutdown Tomcat if it is running
Copy probe.war to $CATALINA_HOME/webapps/
Start Tomcat
Custom installation
If your Tomcat installation is customized and you would like to deploy probe.war completely by hand please do not forget to include privileged="true" in the context XML file. Here is a sample context XML:

<?xml version="1.0" encoding="UTF-8"?> <Context path="/probe" privileged="true"/>
Lambda Probe does not need any other configuration parameters, so you could use this example as is.

Security configuration
Lambda Probe requires four security roles to be declared: manager, poweruser, poweruserplus and probeuser. By default Tomcat roles are configured via tomcat-users.xml file. Structure of that file is quite self explanatory.

manager is the same role as required by Tomcat Manager. This role is given full access to Lambda Probe functionality

poweruser role has the same privileges as manager except for deploying and removing applications and monitoring Tomcat via "quick check" feature

poweruserplus role has the same privileges as poweruser plus ability to restart JVM.

probeuser is the least privileged role of the three and it is restricted to read-only functionality. Features like application stop/start, datasource reset would not be available

To top

Intalling on JBoss
Security configuration
Create two files in "JBOSS_SERVER_HOME/conf/props" directory:

probe-users.properties: list of users in the format of "username=password", example:

admin=t0psercret
probe-roles.properties: list of roles in the format of "username=role1[,role2...], example:

admin=manager
Edit "JBOSS_SERVER_HOME/conf/login-config.xml" and add the following code to the <policy> element:

<application-policy name = "probe">
<authentication>
<login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule" flag = "required">
<module-option name="usersProperties">props/probe-users.properties</module-option>
<module-option name="rolesProperties">props/probe-roles.properties</module-option>
</login-module>
</authentication>
</application-policy>



Privileged context
JBoss needs to allow Lambda Probe to be deployed into a privileged context. To do that add the following attribute to JBOSS_SERVER_HOME/deploy/jbossweb-tomcat55.sar/META-INF/jboss-service.xml:

<attribute name="AllowSelfPrivilegedWebApps">true</attribute>


Deploying Lambda Probe WAR
Copy probe.war to JBOSS_SERVER_HOME/deploy/ and restart JBoss. That is it.

Known issues
JBoss 4.0.3 log4j configuration file is not compatible it seems with log4j 1.2.13, which comes with the Probe. For this reason there is a special distribution that does not include log4j.

JBoss 3.2.8SP1 has a bug, which does not let Lambda Probe to restart applications. The bug had been reported to JBoss and has already be assigned to a developer; lets hope it'll get fixed soon. Please do not report this issue to me.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值