Plesk

What is /pleskswap file used for on a Plesk server?

Question

What is /pleskswap file for?

Answer

The file /pleskswap is created during the installation process in case the server has less than 1Gb of RAM. It is used as swap for the server.

Note: the following instructions apply only during the initial server deployment.

It can be managed in the /etc/pleskswaprc file which overrides default swap settings:

  1. Connect to the server via SSH.

  2. Create /etc/pleskswaprc if it does not exist:

    # touch /etc/pleskswaprc

  3. Edit file /etc/pleskswaprc with the possible options below:

    # disable plesk swap. the same as creating /etc/pleskswapdisable
    #PLESK_SWAP=disable
    #path to swapfile (e.g. if needed to place swap to another partition)
    PLESK_SWAP_PATH=/pleskswap
    #change default swap size
    PLESK_SWAP_SIZE=1GB
    #required amount of memory. If actual memory+swap size if less than this value then plesk swap will be enabled before installation.
    PLESK_REQUIRED_MEMORY=1GB

Note: after Plesk installation /pleskswap can be removed manually.

Exit mobile version