`Why is the memory not freed?
I
I
Ivan2020-04-18 10:49:58
linux
Ivan, 2020-04-18 10:49:58

Why is the memory not freed?

There is a web application with a regular stack (nginx, nodejs, php, mysql), it was noticed that memory is not released.
Of course, you can forcefully drop it like this `echo 3 > /proc/sys/vm/drop_caches` But I think this is not correct.

procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
 r  b   swpd   free  inact active   si   so    bi    bo   in   cs us sy id wa st
 1  0      0 14542024 13277812 33184980    0    0     4    57    3    4  9  1 90  0  0

MemTotal:       65150980 kB
MemFree:        14589064 kB
MemAvailable:   32534480 kB
Buffers:          643016 kB
Cached:         14458012 kB
SwapCached:            0 kB
Active:         33132220 kB
Inactive:       13288936 kB


______ total        used        free      shared  buff/cache   available
Mem:            62G          30G         13G         65M         17G         30G
Swap:           31G            0B         31G

I'm afraid that OOM-Killer will come and kill the fattest process before this inactive memory is freed, what should I do? Thank you!

Answer the question

In order to leave comments, you need to log in

5 answer(s)
J
jcmvbkbc, 2020-04-18
@Ivanzor

Of course, you can force it to drop like this `echo 3 > /proc/sys/vm/drop_caches`

Well, if it helps you, then everything else - it seemed. See _

R
Roman Mirilaczvili, 2020-04-18
@2ord

Mysql eats memory and does not give it away while it needs it.

K
Karpion, 2020-04-18
@Karpion

Either the memory hawala some process - then you need to look for which one.
Or memory is allocated for disk caching. This is normal, it never leads to OOM, because cache_engine is associated with a memory allocator and knows how to give memory when some process needs it.

A
Aminuofu, 2011-10-08
@Aminuofu

At work, we often have to deal with various models of GPS navigators, so from my experience I can advise Texet TN-610 Voice A5 . Quite convenient, stable, very few glitches.
The price is much cheaper (a couple of days ago it was sold for 4590 in the Euroset) than the Navitel NX5300, and the reviews about the latter are far from the best .
Look also in the direction of Shturmann navigators, they are also not bad.

M
mrspd, 2011-10-08
@mrspd

What's the difference between navigators? Depends on the software, either Navitel or Garmin. And what company, in my opinion, this is the same choice as in the case of "taste and color." The only thing is, the larger the display, the more pleasant :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question