CentOS tomcat7 catalina.out Log Too many

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.