Monday, February 15, 2021

How to Clear RAM Memory, Cache, Buffer and Swap Memory in RHEL7 / CentOS7

 


1 => To check Memory utilization run below command and check .

#top 

or 

#htop 

or

#free -h


2 => To clear memory cache you can run below command .

# sync; echo 1 > /proc/sys/vm/drop_caches

: verify again 

#free -h 


3 => To clear buffers you can run below command.


# sync; echo 2 > /proc/sys/vm/drop_caches

check: 

#free -h 


4 => To clear memory, buffers and swap  in one command run.

# sync; echo 3 > /proc/sys/vm/drop_caches 

check :

#free -h 



Thanks 

Enjoy 

No comments:

Post a Comment

Installing Jenkins on RHEL 8 is a straightforward process. Here's a step-by-step guide

Introduction  Jenkins is an open-source automation server widely used for continuous integration (CI) and continuous delivery (CD) pipelines...