Linux system memory Full solution! ~

Source: Internet
Author: User

1. First check the memory usage with the free tool:

This is my Linux always data

Mem: 4046824 763620 3283204 9004 10284

61560

-/+buffers/cache: 691776 3355048
Total Used Free Shared Buffers Cached

Can see

To achieve the purpose of releasing the cache, we first need to understand the key configuration file/proc/sys/vm/drop_caches. This file records the parameters of the cache release, the default value is 0, which is not to release the cache. His value can be any number between 0~3, which represents a different meaning:

0– not release
-Free Page Cache
Release Dentries and Inodes
3– Release All Caches

Once we know the parameters, we can use the following instruction to operate according to our needs.

Use sync to store all the non-writable system buffers to disk, including modified I-node, deferred block I/O, and read-write mapping files to avoid losing data during cache release.

Linux system memory Full solution! ~

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.