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