Did you do some mysql optimizing or tuning lately? You can configure MySQL in a way that it consumes a lot of ram, even if it does not need so much ram. You can use programs like mysqltuner to check MySQL settings: https://www.faqforge.com/linux/optimize-mysql-performance-with-mysqltuner/
I have upgraded server to 8gb, now is : free -h : Code: total used free shared buff/cache available Mem: 7.8Gi 6.3Gi 518Mi 111Mi 993Mi 1.1Gi Swap: 2.0Gi 1.9Gi 129Mi df -hT Code: Filesystem Type Size Used Avail Use% Mounted on udev devtmpfs 3.9G 0 3.9G 0% /dev tmpfs tmpfs 798M 8.6M 790M 2% /run /dev/mapper/debian--vg-root ext4 47G 31G 15G 68% / tmpfs tmpfs 3.9G 0 3.9G 0% /dev/shm tmpfs tmpfs 5.0M 4.0K 5.0M 1% /run/lock tmpfs tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup /dev/vda1 ext2 236M 196M 28M 88% /boot
I did NOT any tuning or settings. I have downloaded mysqltuner but according to it, everything is OK, I can post log here ?
To find out what is using the memory, run this command: Code: ps -e --format=pid,vsz,comm | sort -n -k 2 You can read man pages of ps and sort to find out what those command do with these arguments. Useful information on how to troubleshoot your system can be found using Internet Search engines, for example with Code: linux which process is using memory PS You still have not shown output of uptime command.