Excessive RAM consumption, Why?
BMPCreated with Sketch.BMPZIPCreated with Sketch.ZIPXLSCreated with Sketch.XLSTXTCreated with Sketch.TXTPPTCreated with Sketch.PPTPNGCreated with Sketch.PNGPDFCreated with Sketch.PDFJPGCreated with Sketch.JPGGIFCreated with Sketch.GIFDOCCreated with Sketch.DOC Error Created with Sketch.
Question

Excessive RAM consumption, Why?

by
Jose_AntonioR
Created on 2022-05-20 13:57:38 (edited on 2024-09-04 14:25:06) in Virtual Private Servers

Hi,

I hired a VPS with 4vcores and 8gb of RAM, but I saw from the monitoring panel that the RAM was too much (too much consumption). So I have expanded 8Gb more ram. Now I have 16GB of RAM, but the problem is exactly the same.

I use WHM (CPanel) + LiteSpeed. I don't understand why there is so much RAM consumption. can anyone help?

!m2|690x361

!m3|690x460

!m1|690x442


1 Reply ( Latest reply on 2025-02-17 13:37:11 by
Marek543 Mar
)

Try the command htop in Linux. You can see how much RAM is being consumed. The graph on the 'Monitor' tab in the dashboard is not correct. Perhaps the RAM usage expands as more RAM is consumed. It might be a setting of the virtual machine. I noticed that the CPU graph also fluctuates similarly to the RAM graph. In htop, you can see how much RAM is being consumed and how much is available.

Let me know if I helped you solve the problem. Feedback is always appreciated! 😄

Your high RAM usage is likely due to WHM/cPanel and LiteSpeed consuming significant resources. Check:

  1. Apache & MySQL Usage – Optimize settings in WHM.
  2. LiteSpeed Cache – Ensure it's properly configured.
  3. Background Processes – Use top or htop to find heavy consumers.
  4. Swap Usage – High swap usage indicates memory issues.

Try tweaking LiteSpeed settings and optimizing MySQL to reduce RAM usage.