I have a Linux VM that has 8 GB RAM. This is a screenshot of htop
which includes all system information (tasks,services). There's no application using too much RAM when looking at the PIDs, but the total RAM usage is 6.26 GB. Why is the virtualized part of these tasks too high? e.g: mssql-server (5711 M VIRT , 511M RES) I already have configured mssql server while setting max.memorylimitmb to 3072 MB, but still my server is using too much RAM.
I have added screenshot when typed top o %MEM -n1
Normal values after reboot , When I restarted server , everything is fine total ram consuming 1.34 GB , but after 10-15 hours automatically ram using increases to 6 GB as you can see pictures I shared before..
top o %MEM -n1
. It's way easier to read than this. – popey Feb 14 '23 at 14:15inxi -t m20
which will list the top 20 memory using applications. I suspect that your web server (Apache / www-data) that you are running is using up most of your memory. – Terrance Feb 14 '23 at 15:15But totally used ram value is 6.5 GB , where're the other apps using my ram ?
– Onur İn Feb 14 '23 at 15:51free -m
? Chances are it's being held by your cache and buffers and it's able to be given to things that need it regularly. https://www.linuxatemyram.com/ explains that well. – Thomas Ward Feb 14 '23 at 15:52swapoff
won't help you here. You literally have no memory available, it's likely being eaten by other processes, SQL Server, Apache, and MySQL are examples. Note that on average, MS SQL Server will eat up to 4GB just by idling and that's why it requires a minimum of 4GB to function. I'm guessing that MSSQL is likely one of your cuplrits here. If you need all this SQL and web interface functionality, you need to upgrade the RAM on your machine entirely. – Thomas Ward Feb 14 '23 at 16:13inxi
to see all of yours. On your top command that you posted shows 160 tasks, so to show them all useinxi -t m160
and to view all of one specific app, like Apache2, you can useinxi -t m160 | grep -i apache
to list only Apache stuff. I only say this because in your screenshots you keep adding we are only seeing partial stuff. – Terrance Feb 15 '23 at 14:03