As anyone who makes a Web server with Tomcat knows, there's a big headache: Stdout.log log files automatically grow and grow fast.
First look at my sore, the company has a Web application, is using Tomcat as a server, because of the large number of visits, Stdout.log log explosion, every two days will have to restart the server, otherwise reported 500 error. So I thought, can you ban this stdout.log log? A search on the internet found that many people have encountered this problem and therefore have headaches. I found a way to solve the problem today, but it is very simple:
① Open Tomcat's "Configure Tomcat"
② in the tab "Logging", Empty the text box under "Redirect Stdout", the default value in the text box is "Auto", because of this auto, which causes the stdout.log to burst.
Click the "OK" button to save the settings, delete all the log files under the logs directory under the Tomcat installation directory, and then restart the Tomcat server, then go to the logs file in your Tomcat installation directory to see if there are any stdout.log files? Definitely NOT!!!
Teaches you how to remove the Stdout.log file from the Tomcat server