Linux disk optimization __linux

Source: Internet
Author: User
1. Demand Analysis

After the project on the line, due to various factors, Linux cloud services may be full of disk running, memory run full, CPU running a series of performance optimization problems, today I take everyone to see how to perform Linux performance Optimization 2. Implementation Plan

①df-h View Memory Parameters


②du-h--max-depth=1 query corresponds to the memory occupied under the directory


Then according to the memory of the file, rm-rf delete the corresponding large files;

③ on the other hand, find the log4j configuration of the project logs storage path, RM-RF for selective deletion;

④ Finally, enter Tomcat's logs directory, delete the corresponding large file catalina.out, and then Tomcat regenerate Catalina.out

This basically can reduce the memory usage rate down;

All right, I'm Zhang Xing Zhaoyuan. Welcome to join the BO main Technical Exchange Group, group number: 313145288



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.