Guide – Setup a Swap on a CentOS 6.x VPS

One of my sites awhile back started having memory issues, MySQL seemed to be crashing because it would run out of memory whenever it was being hit too hard. Originally I thought it was just a database issue, but the site was really simple — wordpress powered, it shouldn’t be eating through that much ram that fast I thought. Eventually I came across an offhand comment about DigitalOcean not configuring swap memory files on their droplets (by default). Since one of DO’s features is that they host on Solid-State Drives, it means swap memory in comparison is much much faster Continue reading