Deployed in Linux tomcat service, catalina.out log files generated by the segmentation process if not, then often lead to files increases, affecting efficiency. Meanwhile To find the log file, look at the big catalina.out log file is also more trouble. Therefore, preferably by day or by dividing hours catalina.out log file. To introduce segmentation: Use cronolog catalina.out to separate log file.
1. Installation cronolog-1.6.2.tar.gz
1.1. Uploaded to the appropriate directory server, such as up / down opt / servers / directories cronolog-1.6.2.tar.gz.
1.2.tar -zxvf cronolog-1.6.2.tar.gz extract to the current directory.
1.3 into a decompression aftercronolog-1.6.2 directory,Execute ./configureDo pre-installation preparation,The default installation toUnder / usr / local, ./configure/ ..prefix = can be used to replace the installation directory specified install directory (I described below is mounted to the / opt / servers / directories).
1.4. Execution make the compiler
1.5. Setup run make install
2. Modify the file catalina.sh
Go to the directory "tomcat installation directory / bin", find catalina.sh file, do first backup (cp catalina.sh catalina.sh.bak), then press the following method to modify catalina.sh file.
1) Modify CATALINA_OUT path (not modified may be)
before fixing:
Modified:
2) modify the way catalina.out split the log file:
before fixing:
Save the file you are finished, you can restart the tomcat service
1. Install cronolog-1.6.2.tar.gz Upload cronolog-1.6.2.tar.gz to the application server, such as uploading to /home Unzip to current foldertar zxvf cronolog-1.6.2.tar.gz Unzip to the directorycronolog...
1. Download, compile and install Enter the /usr/local/sbin folder 2. View the directory where cronolog is installed (verify whether the installation is successful) 3. Edit the catalina.sh file in the ...
Time front-end server from win2003 replaced centos. Production environment migration from tomcat for windows to tomcat for linux very smoothly. Almost no change. A few days later found $ tomcat_home /...
1. 1. Background Tomcat's default log file is Catalina.out. As the system running time increases, the size of this log file will continue to increase or even increase to G -grade. Not only will we una...
There are two cases of cleaning of Tomcat logs The first: log itself is preserved in the date. One file daily, such as localhost.2020-04-24.log; this kind of log only requires a card time device and r...
1. Description When we checked the logs under the Linux system before, we always had a habit. After starting the project, we would enter logs/, and click the command similar to tail -fn500 catalina.ou...
Many exceptions will not be printed in the Debug log, but print in Catalina.out, such as method calls cannot be found, the JDK version does not match. But open the log switch will generate a problem, ...
Go to https://centos.pkgs.org/7/epel-x86_64/cronolog-1.6.2-14.el7.x86_64.rpm.html Download Cronolog, Download cronolog-1.6.2-14.l7.x86_64.rpm (Looks like 2013 version, no new? Different YUM installati...
Windows configuration Tomcat output catalina.out log file Modify the startup.bat file Modify the catalina.bat file of Tomcat Modify the startup.bat file Open the/bin directory of Tomcat, modify the st...
Use cronolog to split logs under Linux 1. Download, compile and install Upload to Linux under /usr/local/src/07.cronolog Perform decompression: tar –zxvf cronolog-1.6...