Halloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix NowHalloween DealsAmazon USOctober picks are moving - compare before checkoutAmazon US: current deals, useful picks and tech finds.See Picks×
FREEDOM251

Freedom251 › Blog › cloud hosting

How to Add More RAM to a VPS Without Reinstalling

By Freedom251 Team · · 10 min read

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To add RAM to a hosted VPS, resize its virtual machine plan or replace it with a larger plan from the same provider. You do not install a physical memory module, and attaching more disk storage does not increase RAM. Most upgrades require a shutdown, reboot, migration, or replacement instance, so take a current backup, plan a maintenance window, and verify the operating system and applications after the change.

What “adding RAM” means on a VPS

A VPS receives virtual CPU, memory, storage, and network limits from a provider-defined plan. The provider controls the underlying server, so there is no DIMM slot or USB device that you can add yourself. Increasing the VPS plan’s memory is a form of vertical scaling: the provider allocates a larger virtual machine configuration, and the guest operating system detects the additional memory after the change.

As an Amazon Associate I earn from qualifying purchases.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Depending on the provider, the change is either an in-place resize or a snapshot-based replacement. An in-place resize can preserve the instance and its address, while a replacement workflow may assign a new public IPv4 address. A clean shutdown and a recent snapshot are the safest starting points in either case.

Check that RAM is really the bottleneck

Do not pay for a larger plan solely because a site feels slow. First establish whether the VPS is exhausting memory. Connect over SSH and run:

#1 Best Overall
Crucial 32GB DDR5 RAM Kit (2x16GB), 5600MHz (or 5200MHz or 4800MHz) Laptop Memory 262-Pin SODIMM, Compatible with Intel Core and AMD Ryzen 7000, Black - CT2K16G56C46S5
  • Boosts System Performance: 32GB DDR5 RAM laptop memory kit (2x16GB) that operates at 5600MHz, 5200MHz, or 4800MHz to improve multitasking and system responsiveness for smoother performance
  • Accelerated gaming performance: Every millisecond gained in fast-paced gameplay counts—power through heavy workloads and benefit from versatile downclocking and higher frame rates
  • Optimized DDR5 compatibility: Best for 12th Gen Intel Core and AMD Ryzen 7000 Series processors — Intel XMP 3.0 and AMD EXPO also supported on the same RAM module
  • Trusted Micron Quality: Backed by 42 years of memory expertise, this DDR5 RAM is rigorously tested at both component and module levels, ensuring top performance and reliability
  • ECC Type = Non-ECC, Form Factor = SODIMM, Pin Count = 262-Pin, PC Speed = PC5-44800, Voltage = 1.1V, Rank And Configuration = 1Rx8
free -h
vmstat 1 5

free -h shows total, used, available, and swap memory in human-readable units. vmstat samples memory pressure and swap activity over time. Take several samples during the slowdown rather than relying on one idle reading.

Also check the logs for out-of-memory events and inspect any limits imposed by a container runtime, hosting control panel, system service, or application pool. A VPS can have unused host memory while an individual container or PHP worker group is capped at a lower value.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Observation What it suggests Next action
Available memory stays low and swap activity is persistent The workload is under sustained memory pressure Identify the largest processes, reduce unnecessary workers, and plan a larger memory plan
Kernel or service logs report out-of-memory kills The operating system has terminated a process to recover memory Capture the process name and workload, then add headroom or correct the process configuration
Memory remains available but CPU is saturated More RAM may not improve response time Investigate CPU usage, expensive queries, and application work before resizing
Memory is available but disk wait is high Storage latency or insufficient I/O may be the limiting factor Inspect disk performance and database or logging I/O; additional RAM alone is not a disk upgrade
Usage grows continuously from a stable baseline A process may have a memory leak or an unbounded cache Find the process and correct the leak or cache policy before relying on a larger plan

Small Lightsail WordPress instances provide a concrete failure mode: when memory is exhausted, the Linux kernel may kill MariaDB. That symptom calls for both a capacity decision and an investigation of database, PHP-worker, and caching settings. If the application is not consistently memory-bound, examine CPU saturation, disk I/O, database configuration, worker limits, caching, and leaks first.

Choose the upgrade method

The important differences are whether memory can be changed independently, whether the provider replaces the instance, what happens to storage, and whether the public address survives.

Provider workflow How memory is increased Storage and plan behavior Address and interruption considerations
DigitalOcean Droplet Resize the existing Droplet with either a CPU-and-RAM option or a CPU, RAM, and disk option You can choose the RAM/CPU-only path when you do not want to enlarge the disk; the other path expands disk as well Clean shutdown, snapshot, resize, boot, and verification are recommended; expect the Droplet to be unavailable during the operation
Amazon Lightsail Create a snapshot, then create a new instance from that snapshot using a larger bundle Bundles have fixed memory, vCPUs, storage, and transfer allowances, so memory is not selected independently The default public IPv4 address changes after stopping and starting; a static IPv4 address can be remapped to the replacement
Vultr Cloud Compute Open the instance, select Settings, choose Change Plan, and upgrade The higher plan supplies more vCPUs, RAM, and storage together; the documented upgrade does not change instance data or the file system The plan change can require an interruption; verify the instance and services after the upgrade

Use the provider’s documented procedure for your exact product and region. Plan names, availability, and maintenance behavior can vary, so confirm the destination plan before committing.

Rank #2
A-Tech DDR4 RAM 32GB Kit (2x16GB) 2666MHz PC4-21300 SODIMM Laptop Memory | Non-ECC PC4-2666V CL19 260-Pin SO-DIMM 1.2V Notebook Computer Memory Upgrade Modules
  • A-Tech 32GB RAM Kit (2 x 16GB Modules), DDR4 SO-DIMM 260-Pin, 2666MHz / 2667MHz PC4-21300 (PC4-2666V)
  • Non-ECC Unbuffered, JEDEC DDR4 Standard 1.2V Operating Voltage
  • Compatible with select DDR4 SODIMM capable Laptop, Notebook, Mini PC, and All-in-One (AIO) computer systems. Please verify your system's memory type, form factor, and maximum supported capacity before purchasing
  • Not compatible with desktop (DIMM), DDR2, DDR3, DDR5, ECC Registered (RDIMM), ECC Load Reduced (LRDIMM), or ECC Unbuffered (ECC UDIMM) memory types
  • Increases available memory capacity to enhance system responsiveness, application performance, and multitasking capabilities.

Resize a DigitalOcean Droplet

DigitalOcean documents two CPU Droplet resize choices: CPU and RAM only, or CPU, RAM, and disk. The RAM-only path is useful when the disk has adequate capacity and you want to avoid an unnecessary disk expansion.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  1. Record the current state. Note the output of free -h, current swap, mounted volumes, service status, resource usage, and the Droplet’s IP address. Record any firewall, DNS, or monitoring dependencies that you will test later.
  2. Take a current snapshot or backup. A snapshot gives you a recovery point immediately before the resize. Confirm that it completed successfully rather than assuming a previously scheduled snapshot is current.
  3. Schedule a low-traffic window. DigitalOcean recommends performing the shutdown from the command line to reduce the risk of data corruption. Notify users and stop long-running jobs that could be interrupted.
  4. Shut down cleanly over SSH. A typical Linux command is sudo shutdown -h now. Wait for the SSH session to close and the Droplet to report as powered off in the control panel.
  5. Open the Droplet’s resize controls. Select the larger plan and choose the CPU-and-RAM-only option if you need memory and CPU but not additional disk. Choose the CPU, RAM, and disk option when storage capacity must also grow.
  6. Apply the resize and boot the Droplet. Allow the provider to complete the resize or migration before starting services. Do not repeatedly power-cycle the instance while the operation is in progress.
  7. Verify memory and applications. After SSH returns, run free -h, check mounts and firewall rules, confirm database connectivity, and exercise the application’s critical paths. Confirm that monitoring has resumed and that no service failed during the reboot.

Increasing a Droplet’s memory and CPU improves performance when memory or CPU is the constraint, but it does not repair a memory leak, an incorrectly sized worker pool, or slow storage. Keep the pre-resize snapshot until the new configuration has been stable long enough to meet your rollback policy.

Upsize an Amazon Lightsail instance

Lightsail uses fixed-size bundles containing memory, vCPUs, storage, and a transfer allowance. You cannot add only RAM to an existing bundle. The documented path is to create a snapshot and launch a replacement instance from that snapshot with a larger bundle.

  1. Measure and document the current instance. Record memory and swap, disk usage, mounted paths, running services, DNS records, and the current public IPv4 address.
  2. Create a snapshot. In the Lightsail console, open the instance’s snapshot controls and create a fresh snapshot. Wait until it is available before proceeding.
  3. Create the replacement. Open Snapshots, choose Create new instance, select the snapshot, and choose a bundle with more memory. Check the associated vCPU, storage, and transfer allowances because they change with the bundle.
  4. Start and validate the new instance. Confirm that the operating system, application files, databases, scheduled tasks, certificates, firewall configuration, and mounted storage are present and healthy.
  5. Handle the public address. The default public IPv4 address changes when an instance is stopped and started. If the service uses a static IPv4 address, remap that address to the replacement instance. Otherwise, update DNS records and allow for DNS caching before decommissioning the old instance.
  6. Switch traffic and retain rollback capability. Test the replacement directly, move production traffic, and keep the original snapshot or instance until monitoring confirms stable operation.

The snapshot workflow is effectively a migration, not a memory-only edit. Treat it as such: verify identity, network rules, scheduled jobs, and any external allowlists that reference the old address.

Change a Vultr Cloud Compute plan

Vultr’s documented Change Plan workflow activates a plan with more vCPUs, RAM, and storage and does not change the instance data or file system.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Timetec 16GB KIT(2x8GB) DDR3L/DDR3 1600MHz(DDR3L-1600) PC3L-12800 Non-ECC Unbuffered 1.35V/1.5V CL11 2Rx8 Dual Rank 204 Pin SODIMM Laptop Notebook RAM
  • [Specs] DDR3L / DDR3 1600MHz PC3L-12800 / PC3-12800 204-Pin Unbuffered Non ECC 1.35V CL11 Dual Rank 2Rx8 based 512x8
  • [Size] Module Size: 16GB KIT(2x8GB Modules) Package: 2x8GB
  • [Voltage] JEDEC standard 1.35V, this is a dual voltage piece and can operate at 1.35V or 1.5V
  • [Compatibility] Compatible with DDR3 Laptop / Notebook PC, Mini PC, All in one Device
  • [Color] PCB Color is green
  1. Open the instance in the Vultr control panel.
  2. Select Settings, then choose Change Plan.
  3. Select a higher plan and click Upgrade.
  4. Confirm the change and wait for the plan operation to finish.
  5. Log in and run free -h; then check services, mounts, firewall rules, application health, and monitoring alerts.

Because the higher plan also changes vCPUs and storage, check application licensing, CPU scheduling assumptions, and disk capacity after the operation. Keep a backup before upgrading even though the documented workflow preserves instance data and the file system.

Use swap as a safety buffer, not as extra RAM

A swap file gives the operating system room to offload inactive memory to disk. It can reduce out-of-memory crashes on instances with less than about 1.5 GB of RAM, but disk is far slower than RAM. Swap does not increase the memory allocated by your VPS plan; heavy swapping can make an application feel slower while preventing an immediate crash.

AWS’s Lightsail guidance illustrates a 650 MB swap file and persistence through /etc/fstab. Before creating one, confirm that the root volume has free space and that your provider permits swap. A typical Linux sequence is:

sudo fallocate -l 650M /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
free -h
printf '/swapfile none swap sw 0 0n' | sudo tee -a /etc/fstab

Check free -h after activation and reboot during a maintenance window to confirm that the entry in /etc/fstab is valid. The 650 MB value is an example, not a universal sizing rule. Do not treat a large swap file as a substitute for correcting an unbounded process or selecting a plan with sufficient physical memory.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Do not confuse storage with memory

An attached block-storage volume increases disk capacity. It does not add RAM to the VPS. Use a volume when the problem is full disks, large uploads, backups, logs, or database files. Resize the compute plan when the operating system is running out of memory.

Rank #4
Timetec 32GB KIT (2x16GB) DDR4 2666MHz (PC4-2666V) PC4-21300 SODIMM Laptop RAM – 260-Pin 1.2V CL19 Non-ECC Unbuffered Memory Module for Laptop, Notebook, Mini PC, All-in-One
  • Capacity – 32GB RAM KIT (2 x 16GB Modules) Speed up to 2666MHz Non-ECC Unbuffered 260-Pin 1.2V SODIMM.
  • Specs – PCB Color (Green or Black) and Rank (1Rx8 or 2Rx8) may vary depending on production batch. Performance and quality remain consistent across all Timetec products.
  • Compatibility – Designed for selected DDR4 Laptop, Notebook, Mini PCs, and All-In-One systems(AIO) that support 260-Pin SODIMM memory. NOT compatible with Desktop DIMM slots.
  • Installation – Plug-and-Play Upgrade, Quick and Easy to Install, no expertise required (please refer to your system's manual for guidelines).
  • Warranty – All Timetec products are high-quality and rigorously tested to meet stringent standards. Backed by Timetec Limited Lifetime Warranty and professional technical support based in the United States.

Network-attached block storage can also have different latency and availability characteristics from the boot disk. After attaching or resizing a volume, verify its mount point and application paths separately; a successful disk resize cannot resolve out-of-memory kills.

Prepare a safe resize

  • Inventory resources: record RAM, swap, disk usage, IP addresses, mounts, services, scheduled jobs, and current CPU, memory, and disk activity.
  • Protect recoverability: take a fresh snapshot or backup and verify that it is usable.
  • Plan downtime: expect a reboot, migration, or brief service interruption, and choose a low-traffic period.
  • Choose headroom: select enough memory for current peaks and credible growth, not merely the next size if demand is rising rapidly.
  • Coordinate dependencies: notify users, pause jobs that cannot tolerate interruption, and prepare DNS or static-IP changes when using a replacement workflow.
  • Define rollback: know whether you will revert to a snapshot, restart the original instance, or move traffic back to the old address.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Verify the VPS after the change

  1. Run free -h and confirm that the expected memory is visible.
  2. Run vmstat during normal and peak activity to see whether swap pressure has fallen.
  3. Check that all expected mounts are present and that disk usage is unchanged or intentionally expanded.
  4. Confirm database connectivity and inspect application logs for startup errors, permission failures, and out-of-memory events.
  5. Test firewall rules, inbound and outbound connectivity, TLS certificates, scheduled tasks, and background workers.
  6. Check DNS resolution and the public IP, especially after a Lightsail replacement.
  7. Confirm that monitoring agents, alerts, backups, and log forwarding are reporting from the resized or replacement instance.

Only after the new configuration is stable should you remove an emergency swap file, raise worker limits, or increase cache sizes. Changing all of those variables immediately makes it difficult to determine which change fixed—or caused—the problem.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Troubleshoot common outcomes

The VPS still reports the old RAM amount

Confirm that the resize or replacement operation completed, that you booted the intended instance, and that the operating system was restarted if the provider required it. Run free -h again and compare the instance identifier, hostname, and IP with your change record.

The application remains slow after more RAM

Use vmstat, CPU metrics, disk-wait measurements, database logs, and application timings to identify the remaining constraint. More memory cannot compensate for saturated CPU, slow storage, inefficient queries, excessive PHP workers, or a leak that continues growing.

Out-of-memory kills continue

Identify the killed process in the kernel or service logs. Check container and control-panel limits, worker concurrency, database buffers, and cache sizes. If usage is legitimate and sustained, move to a plan with more headroom rather than repeatedly increasing swap.

Best Value
TEAMGROUP Elite DDR4 32GB Kit (2 x 16GB) 3200MHz PC4-25600 CL22 (2933MHz or 2666MHz) Unbuffered Non-ECC 1.2V SODIMM 260-Pin Laptop Notebook PC Computer Memory Module Ram Upgrade - TED432G3200C22DC-S01
  • Actual memory speed may vary depending on the system, CPU, motherboard, BIOS settings, and supported memory configuration. DDR4 3200MHz modules may operate at lower speeds such as 2933MHz or 2666MHz when supported by the host system. Please check your device specifications and compatibility before purchase.
  • Adherence to JEDEC and compliance to RoHS with respect to environmental protection regulation, production and manufacturing
  • All new generation product of DRAM module. Strict test and verification procedures are performed for products
  • Lifetime warranty and Free technical support
  • Installation video is attached in product image. ※Refer to the latest version on the official website. In case of discrepancies, the official website prevails.

The IP address changed

This is expected in the Lightsail snapshot-to-new-instance workflow when using the default public IPv4 address. Remap a static IPv4 address or update DNS and external allowlists before retiring the old instance.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Swap prevents crashes but performance worsens

Heavy swapping means the workload is still exceeding physical memory. Keep swap as a short-term safety margin, reduce the process or worker footprint, and schedule a plan upgrade. Do not describe the swap file as an increase to the VPS’s RAM allocation.

Disk space, not RAM, is exhausted

Adding a block-storage volume or choosing a plan with more disk addresses capacity. It will not change the memory shown by free -h; select the storage solution and the compute resize independently when both resources are constrained.

Decide whether to resize now

Resize when measurements show repeated low available memory, sustained swap activity, or out-of-memory kills under a workload that cannot be reduced safely. Before committing, correct avoidable limits and leaks, then choose a plan that leaves operating headroom for traffic spikes and planned growth. A snapshot, a low-traffic window, and post-change checks turn the operation from a risky guess into a controlled capacity change.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

cloud hostingLinuxRAMserver administrationvirtual machinesVPS

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.