• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Issue swapoff: /pleskswap: swapoff failed: Cannot allocate memory

GermanMazza

New Pleskian
I was trying to disable swap to make it bigger for my server (ubuntu 18.04) but I 've encounter an error and I was unable to find a solution in the forum.
I couldn't make it from step 1:
1- Turn off all swap processes: sudo swapoff -a (error: /pleskswap: swapoff failed: Cannot allocate memory)
2- Resize the swap: sudo dd if=/dev/zero of=/pleskswap bs=1G count=8
3- Make the file usable as swap: sudo mkswap /pleskswap
4- Activate the swap file: sudo swapon /pleskswap
5- Check the amount of swap available: grep SwapTotal /proc/meminfo

Any ideas? maybe kill plesk to edit the swap file?
I'm not an expert on this matter so any advice would be really appreciated
 
swapoff failed: Cannot allocate memory
To disable a swap and not crash the system, you need to save the data from the swap so that the processor can work with them. Thus, there is nowhere else to do this, except in RAM. But you have more data in the swap than free space in the RAM.
So, you must first free up space in the RAM.
 
mmm... This is a very small server with just 1gb of ram, plesk and two websites. How can I free space in the ram?
Maybe disable the services in "tools and settings / sevices management"? or maybe kill plesk process?
 
You can go to Tools&Settings > Apache Web Server Setting and disable unused Apache modules at least.
 
Back
Top