The VM memory is too large to be restored and cannot be closed. Solution

Source: Internet
Author: User

The VM memory is too large to be restored and cannot be closed. Solution: When you install the service in the VM today, because the service requires the memory to increase, the memory is increased in the VM. However, it is too large to cause the virtual machine to crash as soon as it is started. So I want to reduce the memory of the virtual machine, but the memory adjustment is gray and cannot be adjusted. What should I do? So I searched the network again. Some people mentioned that the memory cannot be adjusted when the virtual machine is suspended. I immediately checked the status of the virtual machine and it was suspended. If you turn off the virtual machine, it will not be suspended! Switch to the power menu. The result is dizzy! In the menu, you can click "Recover" or "Recover client", and others are gray. The VM cannot be closed !! What should we do? I don't want to reload the VM once! If you think about it, let's change your mind and think about whether to convert the virtual machine from suspended to normal. The Virtual Machine is saved as a file, so the corresponding configuration information must also be saved as a file. Maybe you just need to change the configuration in a file. I searched the internet and found that the suspended state is saved in a file with the. vmss suffix (this file may be a hidden file). I just need to delete the file and it will be OK. The VM is suspended. In this case, it is best to remove the original virtual machine from the favorites folder and then re-open it. The Virtual Machine is finally normal, so the memory of the virtual machine is reduced and immediately restarted. At this time, another problem is encountered !! The figure is as follows.
Looking at the prompt, I want to allow more virtual machines to swap memory. After I think about it again, I remember that there seems to be such an option in the virtual machine parameters. Click Edit> parameters in the VM menu. The parameter menu is displayed, as shown in the following figure. Adjust the memory> extra memory to "allow most Virtual Machine memory swap. Restart the VM. It's normal !!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.