Solve the problem caused by high CentOS memory consumption

Source: Internet
Author: User
At work, the DBA reported that a server ran some big data, and the server could not be remotely connected. an error was reported. if the log was caught, the DELL engineer detected the problem and the system reinstalled, now some big data will report errors. because the server is far away from the local data center in a remote city, ssh cannot log on, so you can use the iDRAC remote management card to connect to the machine and connect to the server through the console, see the error: 1. memory usage: the kernel will use a large value in the dd process.

At work, the DBA reported that a server ran some big data, and the server could not be remotely connected. an error was reported. if the log was caught, the DELL engineer detected the problem and the system reinstalled,

Now some big data will be reported as shown in the figure. because the server is far away from the local data center in a remote city, ssh cannot be logged on, so the iDRAC remote management card is used to connect to the machine, connect to the server on the console and see the following error:

 

1. memory usage: in the dd process, the kernel uses a large amount of memory as the disk data cache, because 8.5 TB is written;
2. from the device perspective, the memory is mainly consumed in the buff:
3. dd if =/dev/zero of =/data $ I/test bs = 1 M count = 9000000 conv = fdatasync &
Function of the fdatasync parameter:

1) ensure that the data is refreshed to the disk; 2) the file metadata is not flushed to the disk;
Due to feature 2), the buff usage surge;

Specific reference: http://www.2cto.com/ OS /201205/131568.html

4. run echo 3>/proc/sys/vm/drop_caches to clear the buff/cache. the memory of the device has been restored to normal;


Sar-r-f/var/log/sa/sa17

Memory usage surge. Generally, it is caused by a business program.

 

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.