Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use psi-probe to monitor Tomcat in Java

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

How to use psi-probe to monitor Tomcat in Java? in view of this problem, this article introduces the corresponding analysis and solution in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible method.

Psi-probe

This is also a comprehensive monitoring project that can monitor a single project, multiple projects, monitor JVM memory information, view logs, publish projects, and so on.

Psi-probe itself is a web project, a war package that can be run directly under tomcat's webapps directory. Psi-probe formerly known as LambdaProbe, but this product is not updated, someone fork this project and development update to the present, psi is the Greek letter ψ, representing this project is a fork project.

Features:

Monitor single / multiple projects: including number of requests, response time, viewing / compiling JSP, operation sessions, publishing the entire project, publishing a file, monitoring / downloading logs, monitoring threads, etc.

Monitor Tomcat: monitor connector requests.

Monitor JVM: view operating system information, monitor JVM memory information, etc.

There are also data source monitoring, Tomcat cluster and so on. In short, it is a more comprehensive monitoring project. Here's how to build it, based on centos7.

Installation

Environment: apache-tomcat-9.0.14 + psi-probe 3.2.0

1. Download probe.war from github.

2. Decompression

Put probe.war in the tomcat webapps directory

3. Modify the configuration file

Modify the tomcat-users.xml file under apache-tomcat-8.0.36/conf/.

Configure permissions:

Vi $tomcat/conf/tomcat-users.xml 4. If the configuration parameter is under windows, modify conf/catalina.bat and add set JAVA_OPTS=-Dcom.sun.management.jmxremote. If under linux, modify conf/catalina.sh and add JAVA_OPTS=$JAVA_OPTS "> 5. Restart tomcatps-ef | grep java | grep-v 'grep' | awk' {print $2}'| xargs kill-9$ tomcat/bin/startup.sh 6. Test access http://ip:port/probe, enter user name and password. The monitoring interface is roughly as follows: if the project is useful to tomcat, then do not bother to try this tool, for log inspection, daily inspection and so on are very convenient. Later, we will share more content about devops and DBA. Interested friends can follow this. This is the answer to the question about how to use psi-probe to monitor Tomcat in Java. I hope the above content can be of some help to everyone. If you still have a lot of doubts to be solved, you can follow the industry information channel to learn more about it.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report