After deploying Tomcat on a Linux server, running for a long time, the Catalina.out file will become more and more large, which has a certain impact on the stability of the system.
Recently, a Java application on a Linux server has been suspended or dead.
Then I have a "lack of space" hint when I enter a command.
The result shows that the space of the system disk is occupied by the Tomcat7/logs directory. That would be a good deal.
Erase all the logs. Then set the next log generation
Du-sh * |sort
This section of the log information can be masked by modifying the Conf/logging.properties log profile.
1catalina.org.apache.juli.filehandler.level = WARNING
1catalina.org.apache.juli.filehandler.directory = ${catalina.base}/logs
1catalina.org.apache.juli.filehandler.prefix = Catalina.
Setting the level to warning can reduce the output of the log a lot, and of course it can be set to off and disabled directly.
The general log levels are:
SEVERE (highest value) > WARNING > INFO > CONFIG > FINE > Finer > FINEST (lowest value)
LINUX_TOMCAT7 server log is full cause Java crash problem