Probe requires four characters

Source: Internet
Author: User
Tags apache tomcat

However, probe requires four roles, and then assigns these roles to your users, like so try:

Java code 650) this.width=650; "class=" star "src=" Http://www.iteye.com/images/icon_star.png "alt=" Favorites code "/>

  1. <?xml version=' 1.0 ' encoding=' utf-8 '?>

  2. <tomcat-users>

  3. <role rolename="manager"/>

  4. <role rolename="Tomcat"/>

  5. <role rolename="admin"/>

  6. <role rolename="Role1"/>

  7. <role rolename="Admin"/>

  8. <role rolename="Probeuser"/>

  9. <role rolename="Poweruserplus"/>

  10. <role rolename="PowerUser"/>

  11. <user username="Both" password="Tomcat" roles="tomcat,role1"/>

  12. <user username="Tomcat" password=" Tomcat" roles="Tomcat"/>

  13. <user username="admin" password="admin" roles="Admin,manager,admin,probeuser, Poweruserplus,poweruser "/>

  14. <user username="Role1" password="Tomcat" roles="role1"/>

Monitor tomcat with Lambdaprobe in performance testing
Lambdaprobe is a powerful free open source tool, Lambdaprobe has almost all of the capabilities of Tomcat manager, and can be said to be an enhanced version of Tomcat Manager. In addition, Tomcat Probe has many features that make it easier for developers and system administrators. This makes tomcat more transparent to developers and managers. These features include applications, data sources, publications, logs, threads, clusters, system information, status, connector status. As with JDK 1.5, you can even draw the Server's detailed memory footprint in real time.

: Http://www.lambdaprobe.org/downloads/1.7/probe.1.7b.zip

How to install: Download ZIP file (lambdaprobe 1.7b, BINARIES ~7mb), unzip only need to publish Probe.war file to the Tomcat server WebApps directory. Supported Tomcat Server versions: 5.0, 5.5, 6.0. There is one more place to set up, add the manager account in Conf/tomcat-users.xml, probe need this account in order to use the correct login. If you do not know what to do, you can change the contents of the file so that you have a user name and password are admin accounts:

<?xml version= ' 1.0 ' encoding= ' utf-8 '?>
<tomcat-users>
<role rolename= "Manager"/>
<role rolename= "Tomcat"/>
<role rolename= "admin"/>
<role rolename= "Role1"/>
<role rolename= "Admin"/>
<user username= "Both" password= "Tomcat" roles= "Tomcat,role1"/>
<user username= "Tomcat" password= "Tomcat" roles= "Tomcat"/>
<user username= "admin" password= "admin" roles= "admin,manager,admin"/>
<user username= "Role1" password= "Tomcat" roles= "Role1"/>
</tomcat-users>
Refer to Picture:

 650) this.width=650; "Src=" http://hiphotos.baidu.com/zhangtianshun/abpic/item/ D7a053f4b10b14d6f3d385f7.jpg "height=" "width="/>


Personal experience:
1, modifying catalina.bat files
       directories: E:/program Files/apache Software Foundation/tomcat 5.0/bin
       Add code:
                   Add the following code to the Catalina.bat file:
rem Guess Catalina_ HOME if not defined
set Catalina_opts=-xms512m-xmx1024m-dcom.sun.management.jmxremote=true- dcom.sun.management.jmxremote.port=%my.jmx.port%-dcom.sun.management.jmxremote.ssl=false- Dcom.sun.management.jmxremote.authenticate=false
rem    java_opts= "- Dcom.sun.management.jmxremote=false "
rem    java_opts="- Dcom.sun.management.jmxremote.authenticate=false "
rem    java_opts="- dcom.sun.management.jmxremote.port=9090 "
rem    java_opts="-dcom.sun.management.jmxremote.ssl =false "
Set current_dir=%cd%
If not"%catalina_home% "= =" "Goto gothome

2, Access path: http://localhost:8080/probe/
User name: admin
Password: empty.

Lambda Probe (formerly known as Tomcat Probe) is a basic tool for real-time monitoring and management of Apache Tomcat instances.

Lambda Probe is a powerful free open source tool based on Web + AJAX that can be used to manage a single host in real time. Lambdaprobe has almost all of the capabilities of Tomcat manager, which can be said to be an enhanced version of Tomcat Manager. In addition, Tomcat Probe has many features that make it easier for developers and system administrators. This makes tomcat more transparent to developers and managers. These features include applications, data sources, publications, logs, threads, clusters, system information, status, connector states. As with JDK 1.5, you can even draw the Server's detailed memory footprint in real time.

Lambda Probe's official address: http://www.lambdaprobe.org, where you can download the latest version of Lambda Probe.

Install Probe with Tomcat Manager: Download the. war file for Lambda Probe, launch Tomcat, enter the manager URL (for example: http://localhost:8080/manager/html), use the WA The R file to deploy option loads the Probe.war. You can also manually load probe into the WebApps directory of the Tomcat server, which is not mentioned here. Porbe supported TOMCAT Server versions: 5.0, 5.5, 6.0. Sometimes you need to set up the manager account, that is, add the manager account in Conf/tomcat-users.xml, probe need this account to properly log in and use; You can change the contents of the file as shown in the following code to have a user named admin, The password is empty for the Administrator account (typically, after the installation is configured Tomcat, this piece does not need to be modified, that is, Probe uses Tomcat's Manager account):

650) this.width=650; "src=" Http://image3.it168.com//2008/12/22/2a465d23-be4b-4571-be65-1345c08fb8cb.jpg "height=" 187 "Width="/>

Lambdaprobe 1.7b Chinese Language pack download: Messages_zh_cn.zip 9KB. To use: Unzip the downloaded file and place the messages_zh_cn.properties in the $TOMCAT _home$/webapps/probe/web-inf.

650) this.width=650; "src=" Http://image3.it168.com//2008/12/22/8d757b9f-b37b-4790-938e-29d7290726a3.jpg "height=" 485 "width=" 670 "/>

  

When you view memory usage, open the memory usage item in the System Information page before you configure it, and display the prompt as shown in:

650) this.width=650; "src=" Http://image3.it168.com//2008/12/22/f19c6fbf-2e3c-40f3-bb60-2fb7102adba2.jpg "height=" 485 "width=" 670 "/>
You need to modify the Catalina.bat file in the Tomcat installation directory, such as directory: D:/program files/apache software Foundation/tomcat 5.0/bin, right click on the file, select "Edit , open the file in Notepad to begin the modification. Add code in the following code in the Catalina.bat file:

650) this.width=650; "src=" Http://image3.it168.com//2008/12/22/a9553bdc-aa59-442c-a4b5-5757fccd75b5.jpg "height=" 259 "width=" 493 "/>

Of these, 29001 is your jmx.port, which can be seen in the hint message of a red font before it is configured.

Configured after access path: http://localhost:8080/probe/
User name: admin, Password: null
After entering, the interface

650) this.width=650; "src=" Http://image3.it168.com//2008/12/22/57142011-3061-410d-8615-eae62c8adaf0.jpg "height=" 485 "width=" 670 "/>
Open the "Memory usage" item on the System Information page to analyze memory metrics usage, such as:

650) this.width=650; "src=" Http://image3.it168.com//2008/12/22/bd16fa79-e859-4bea-b68f-cdd198d6bff7.jpg "height=" 485 "width=" 670 "/>

Probe's memory usage monitoring and analysis function is limited, can only monitor survivor space, Perm Gen, tenured Gen, Eden Space, Code Cache, total, etc. six kinds of situations, Other situations and further details of six situations will be powerless.
Description: The version of Tomcat used in this article is 5.0, the picture shown is the image after loading the Chinese package


This article from "My Sky" blog, declined reprint!

Probe requires four characters

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.