We can add additional swap in server by the following steps:

For example, you need to add 100MB more swap memory. You have to enter:

$ dd if=/dev/zero of=/swap1 bs=10000 count=10000 # this will create 100MB storage file
$ mkswap /swap1 # generate swap signature
$ swapon /swap1 # this will enable /swap1 file as a new extra swap memory