LINUX_TOMCAT7 server log is full cause Java crash problem

Source: Internet
Author: User

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

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.