How to Increase RAM Size of the container in OpenVZ

How to Increase RAM Size of the container in OpenVZ

Date: 21-01-2021

Step 1: Check the list of all running containers by using the below command.
#vzlist

This image has an empty alt attribute; its file name is Screen-Shot-2020-11-29-at-12.07.37-AM.png

Step 2: You need stop VPS to which VPS server want to increase the RAM.
#vzctl stop <CT_ID>

Step 3: Increase the VPS RAM by using below command.
#vzctl set <CT_ID> --ram <Size> --swap <Size> --save
Ex: #vzctl set 104 –ram 4096M –swap 1G –save

Step 4: You can start and check the status of the VPS.
#vzctl start <CT_ID>
#vzctl status <CT_ID>

Step 5: Finally, Login to VPS server via SSH and to verify the RAM size.
#free -h

Thank you!

admin

Our team has expertise across software and web development, WordPress, e-commerce, mobile applications, UI/UX, cloud and infrastructure, DevOps, CI/CD, API integration, security, testing, automation, and technical support. The team also works with AI-based software solutions, LLMs, AI workflows, AI agents, and intelligent application development to help businesses automate processes and build smarter digital solutions. We focus on developing, deploying, maintaining, and optimising secure, scalable, and reliable technology solutions while helping businesses adopt modern technologies and drive digital transformation.

Leave a Reply

Scroll to Top