![]() ![]() If you don’t get back any output, this means your system does not have swap space available currently. ![]() We can see if the system has any configured swap by typing: It is possible to have multiple swap files or swap partitions, but generally one should be enough. Step 1 – Checking the System for Swap Informationīefore we begin, we can check if the system already has some swap space available. Overall, having swap space as a fallback for when your system’s RAM is depleted can be a good safety net against out-of-memory exceptions on systems with non-SSD storage available. The information written to disk will be significantly slower than information kept in RAM, but the operating system will prefer to keep running application data in memory and use swap for the older data. The swap space on the hard drive will be used mainly when there is no longer sufficient space in RAM to hold in-use application data. ![]() Basically, this gives you the ability to increase the amount of information that your server can keep in its working “memory”, with some caveats. Swap is an area on a hard drive that has been designated as a place where the operating system can temporarily store data that it can no longer hold in RAM. In this guide, we will cover how to add a swap file to an Ubuntu 18.04 server. One of the easiest way of guarding against out-of-memory errors in applications is to add some swap space to your server. A previous version of this tutorial was written by Justin Ellingwood Introduction ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |