introduce

Today, I saw the cloud server, the memory is full, I am a little depressed, do it

And then do the following. Mm-hmm

 

Let’s find out what’s occupying our king’s land free-m

or top

  • Above several methods look after
  • First, pS-9 xxoo deleted a bunch of useless processes

Look at top and find that I rely incredibly have so much spare memory

Looks like I’m gonna have to do something big here

The command to clear the cache hit it

  • echo 1 > /proc/sys/vm/drop_caches
  • echo 2 > /proc/sys/vm/drop_caches
  • echo 3 > /proc/sys/vm/drop_caches

I don’t know what these three commands mean, but the memory is smaller, who knows comment comment

 

After doing it, I was happy ^_^

Let’s use top again

^_^ ^_^ ^_^ ^_^ ^_^ ^_^ ^_^ ^_^ happy memory a lot less ^_^ ^_^ ^_^

nip

 

 

ok

 

 

 

Continuously updated