DEV Community

rahuldev-17
rahuldev-17

Posted on

nix VPS running out of memory?

Note to me: If your VPS is running out memory while installing another application, then quick fix:

  • check disk usage:
$df -h
Enter fullscreen mode Exit fullscreen mode
  • find files greater than 500MB
sudo find / -type f -size +500M -exec ls -lh {} \;

Enter fullscreen mode Exit fullscreen mode

If you understand and are sure of what files are not being used by you, database or system, remove them.

Top comments (0)