Empy 4gb Partition Swap, sometimes mysql crash

April 4, 2016 1.7k views
Server Optimization WordPress Ubuntu

hello i added about a week ago a 4g swap space on my host (1 GB Memory / 20 GB Disk), however its still stay empty also psichycal ram is nearly to max usage (sometimes mysql crash...), why?

ps i have several wordpress sites on my drop
bye thank you all

  • pos here what u get by typing

    free -m

    also checkout for this tutorial

    by Justin Ellingwood
    Swap space can be used as an "overflow" area for your system when you run out of RAM. The operating system can store data that would normally be kept in RAM on the hard drive in a specially formatted file. In this guide, we'll demonstrate how to create and use one of these files in Ubuntu 14.04.
  • hello
    already accomplished tutorial instruction, thank you
    there are my free -m

    total used free shared buffers cached
    Mem: 994 841 152 45 2 174
    -/+ buffers/cache: 664 329
    Swap: 4095 45 4050

  • If MySQL is crashing due to a lack of RAM, you may want to look in to resizing your droplet up a level. If it started using swap heavily enough it'd severely degrade performance.

    You said that you went through the tutorial - what level did you set your 'swapiness' to?

  • like tutorial report

1 Answer
Have another answer? Share your knowledge.