Doing activities today, the number of server traffic is soaring, problems that have not appeared before have appeared
Here is an issue where a catalina.out quickly fills up disk space. Fortunately there is a hard disk monitoring server alarm AH ~ ~ ~
Environment: CentOS TOMCAT7
Project-related environment: Hibernate4, Spring, SLF4J, Logback
I clearly configured the log level in the Logback.xml, and some debugging information still appears in the Catalina.out.
Check I use Yum installed TOMCAT7, inside incredibly have log4j jar package!!! Then change the log4j.properties in Tomcat seems useless (not much attention to verification, a little look, may also be mistaken).
Later looking for a friend to help, check the hibernate4, such as the choice of log priority, and finally chose to change the Tomcat boot script method.
Nano/etc/tomcat/tomcat.conf
#add 2015-04-08 Catalina.out Too many logs
Java_opts= "-DORG.JBOSS.LOGGING.PROVIDER=SLF4J-DCOM.MCHANGE.V2.LOG.MLOG=SLF4J"
At the same time changed the C3P0, it seems that there are freemark may also need to change:
-dorg.freemarker.loggerlibrary=slf4j
I hereby record, if anyone has a better way, please tell me ~ ~ ~ ~ ~ ~ ~
CentOS tomcat7 catalina.out Log Too many