-1

We are managing a dedicated server (WHM/cPanel) with 4-5(Magento & Woocommerce mostly) accounts in it, along with custom code that will connect those platforms with ERPs. This custom code works a lot with MySQL.

The server has 10GB of RAM and for the first time, past week was filled out and.

Now what makes me impression is that after restarting, server will go fully functional with only 2-3GB of RAM.

Is this reasonable? And if it's not and there is a memory leak, what would be the way to trace which of my accounts is filling up the memory?

kbariotis
  • 101

1 Answers1

0

Chances are your memory is still there. top doesn't report memory usage minus the buffer cache the OS uses for file cache.

Type the following for true free memory

free -m

Look at the -/+ buffers/cache: line for the true free memory in megs.

Linux will use all memory for filesystem cache along with most OSes. It does that so it doesn't have to do slow disk reads each time it needs a commonly used file. The kernel will release memory used for filesystem cache when an application requests memory. If the column for free is low then you have something to worry about

Mike
  • 22,748