Skip to main content

Posts

Showing posts with the label swap memory

How to create Swap partition in CentOS 7? or MySQL frequently stopped

Hello Friends, I am writing this post because one of my friend was facing the issue of MySQL or MariaDB service frequently stop every 2-3 days.  I have also faced this issue several time in the past. Hope this post will help you, if you are also facing the similar issue. First thing first, If you are using AWS and t2-micro free-tier or Digital Ocean smaller droplet or any least configuration machine. You need to upgrade your server also please keep eye on your disk space. As this post is all about to Add SWAP space and increase SWAP memory. Let's understand What is SWAP space or memory Swap space or memory is a space in the Hard Disk of your computer that Operating Systems will use to put the info that is actually on the RAM to free it for another application. This should be done when the system needs memory for a new process. Now come to the point. To Check available SWAP space sudo swapon -s         or sudo swapon --show There are two way to accomplish this - ...