In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces the Java psi-probe how to monitor Tomcat and applications, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.
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.
Address: https://github.com/psi-probe/psi-probe/releases.
Download the psi-probe 3.2.0 war package from the Github release page
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. Configuration parameters
If it is under windows, modify conf/catalina.bat and add set JAVA_OPTS=-Dcom.sun.management.jmxremote
If it is under linux, modify conf/catalina.sh and add JAVA_OPTS=$JAVA_OPTS "- Dcom.sun.management.jmxremote"
5. Restart tomcat
Ps-ef | grep java | grep-v 'grep' | awk' {print $2}'| xargs kill-9$ tomcat/bin/startup.sh
6. Test access
Access http://ip:port/probe and enter a user name and password to access it.
The monitoring interface is roughly as follows:
Thank you for reading this article carefully. I hope the article "how to monitor Tomcat and applications in psi-probe in Java" shared by the editor will be helpful to you. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.