Apache Tomcat is an implementation of the Java Servlet and JavaServer Pages technologies. It is used as the servlet container for GX WebManager, and therefore catches all log messages that WebManager generates. How and where the messages are being logged by Tomcat is determined by the System Administrator. By default, the main log file is written to "<Tomcat dir>/logs/catalina.out".
However, often the log files are being rotated to prevent them from getting too big to handle.
Analysis
Log files contain the heartbeat of your WebManager installation and keeping an eye on them is a wise idea.
Below is a linux script to help you analyze the "catalina.out" file. It organizes the messages in the logfile and sorts them according to the number of occurrences in the logfile, meaning the most recurring message will end up on top.
How to make the code above work:
- Copy and paste the code above to a file named "prunelog9.sh"
- Make the file executable: "chmod +x prunelog9.sh"
- Download or copy the logfile you want to analyze, e.g. "catalina.out"
- Usage examples:
