One way to guard against out-of-memory errors in applications is to add some swap space.
Swap is a portion of hard drive storage that has been set aside for the operating system to temporarily store data that it can no longer hold in RAM. This lets you increase the amount of information that your server can keep in its working memory, with some caveats. 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.
Swap space can take the form of either a dedicated swap partition or a swap file. Swap should not be seen as a replacement to physical memory. Since swap space is a section of the hard drive, it has a slower access time than physical memory. If your system constantly runs out of memory, you should add more RAM.
The size of swap file depends on how much RAM your system has.
If you have 32GB or 64 GB of RAM, chances are that your system would perhaps never use the entire RAM and hence it would never use the swap partition. Allocating a couple of GB for swap will provide an extra layer of ‘stability’ if a faulty program starts misusing RAM.
There are many methods for using APIs. In order to understand it better, lets take…
Docker Compose is a tool that allows you to run multi-container application environments based on…
After the creation of development environment your setup fulfills the Shopware 6 requirements. If you…
After the creation of development environment your setup fulfills the Shopware 6 requirements. If you…
To create a development environment in fresh install of Linux - Ubuntu 20.04 (Focal Fossa)…
Make sure your Ubuntu is up to date and patched. $ sudo apt update $…