How do I enable swap file on my server?

14,458

Swapfiles are only supported on some openvz setups, and disabled on purpose by some admins so you cant use up much more resources than you've been alocated. You probably need to upgrade your vps.

Share:
14,458

Related videos on Youtube

wajed
Author by

wajed

Updated on September 18, 2022

Comments

  • wajed
    wajed over 1 year

    I've followed this but when I run:-

         #swapon /swapfile1
    

    I get::-

         swapon: /swapfile1: swapon failed: Operation not permitted
    

    The system is extremely slow with 1GB of RAM trying to run GUI + applications + FreeNX server. Any help is highly appreciated.

    • Jee Garin
      Jee Garin almost 12 years
      Is this a physical or virtual host? If virtual, what kind of virtualisation is in use?
    • wajed
      wajed almost 12 years
      Virtualisation is open-vz