AMD EPYC13 min read•Updated November 2026

AMD EPYC VPS for Next.js Applications

Quick answer

To run Next.js fast on an AMD EPYC VPS: render statically wherever possible, use incremental static regeneration (ISR) or cached fetches for content that changes occasionally, and keep fully dynamic rendering for truly per-request pages. Build with output: 'standalone', build in CI rather than on the server, run one Node.js process per vCore (sharing a cache if you use ISR across processes), put Nginx in front to serve /_next/static with long cache headers, and give image optimisation enough CPU or pre-optimise images.

Our Next.js deployment guide covers getting an app running on a VPS. This guide is about making it fast and sizing the server: which rendering mode to use where, how caching behaves when you self-host, and how to use all the vCores you pay for.

Choose the Cheapest Rendering That Works

ModeWhen it rendersServer cost per requestUse for
Static (SSG)At build timeAlmost noneMarketing pages, docs, blog posts
Incremental (ISR / revalidate)At build, then in the background on a schedule or on demandLowProduct pages, listings, content that changes occasionally
Dynamic (SSR)On every requestHighPer-user dashboards, personalised pages
Client-sideIn the browserNone for HTML (API calls still cost)Highly interactive app sections

In the App Router, caching depends on how data is fetched and on route segment settings; check the build output, which marks each route as static or dynamic, and make dynamic only what must be.

Standalone Output

// next.config.js
module.exports = { output: 'standalone' };

The build produces .next/standalone with a minimal server.js and only the dependencies it needs. Copy .next/static and public next to it. The result is small, starts fast and deploys easily as a release directory or Docker image.

Build in CI, Not on the Server

Next.js builds can use several GB of memory and all CPU cores for minutes. Building on the production server slows the live site and can trigger out-of-memory kills. Build in CI, upload the standalone output and switch releases with a symlink (see our GitHub Actions guide and zero-downtime guide).

Use Every vCore

A Node.js process uses one core for JavaScript. On a multi-vCore EPYC plan, run several instances behind Nginx:

upstream nextjs {
    server 127.0.0.1:3001;
    server 127.0.0.1:3002;
    server 127.0.0.1:3003;
    server 127.0.0.1:3004;
    keepalive 32;
}

Start each with a different PORT as separate systemd services (or PM2 instances).

ISR and the Cache with Several Processes

By default, a self-hosted Next.js server stores its ISR and data cache on the local filesystem and in memory, per process. With several processes, each regenerates pages independently, and on-demand revalidation in one process does not update the others. Options:

  • Configure a shared cache handler (Next.js supports a custom cacheHandler; community handlers store the cache in Redis).
  • Run a single process for revalidation-heavy apps and rely on Nginx caching for scale.
  • Use time-based revalidation only, accepting that processes refresh independently.

Check the documentation for your Next.js version, as caching behaviour has changed between major releases.

Nginx in Front

location /_next/static/ {
    alias /srv/next/current/.next/static/;
    expires 1y;
    add_header Cache-Control "public, immutable";
    access_log off;
}
location / {
    proxy_pass http://nextjs;
    proxy_http_version 1.1;
    proxy_set_header Connection "";
    proxy_set_header Host $host;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;
}

Hashed static assets can be cached for a year and served directly by Nginx, freeing Node.js for rendering. Add compression and HTTP/2 at the Nginx level (see our web server tuning guide).

Image Optimisation

The built-in image optimiser resizes and converts images on demand and caches results on disk. It is CPU-intensive the first time each size is requested, and uses the sharp library when installed (recommended for production). For image-heavy sites, pre-generate common sizes at build time, put a CDN in front, or use an external image service, so rendering is not slowed by image work.

Data Fetching

  • Fetch in parallel instead of sequential waterfalls.
  • Cache API and database responses that do not change per user.
  • Keep the database or API close: same server or same datacenter.
  • Use streaming and Suspense so the page shell appears before slow data.

Memory and Node.js Settings

Each Next.js process typically uses a few hundred MB, more with large caches or heavy pages. Watch memory per process over days for leaks, and set a memory limit in the systemd unit (MemoryMax). Use the current Node.js LTS release supported by your Next.js version.

Measure Real Performance

  • Server timing: response time for HTML from Nginx logs ($upstream_response_time).
  • Core Web Vitals (LCP, INP, CLS) from real users or Lighthouse.
  • Load test key routes with k6 at expected peak (see our k6 guide).

Sizing

SiteEPYC plan
Mostly static marketing or blog site2 vCores / 8 GB
E-commerce or content site with ISR and some SSR4 vCores / 16 GB
Heavy SSR, dashboards, image optimisation at scale8 vCores / 32 GB

Middleware and Edge Logic

Middleware runs before every matching request, so keep it fast and limit it with a matcher to the paths that need it. Heavy work in middleware, such as database calls or large dependencies, adds latency to every page, including cached ones. Authentication checks that only verify a signed cookie are cheap; anything more belongs in the route itself.

Ship Less JavaScript

Server performance is only half the experience. Large client bundles slow interaction on mid-range phones, which many Indian users rely on. Use Server Components for content that does not need interactivity, import heavy libraries dynamically, and check bundle sizes in the build output. Faster pages also reduce the number of requests users repeat out of frustration.

Common Mistakes When Self-Hosting

  • Running next dev instead of a production build.
  • Building on the live server and running out of memory.
  • Making every route dynamic by reading cookies or headers in a shared layout.
  • Serving static assets through Node.js instead of Nginx.
  • Running several processes without a shared cache while relying on on-demand revalidation.

Next.js Performance Checklist

  1. Build output reviewed: only routes that must be dynamic are dynamic.
  2. Standalone build created in CI and deployed as a release.
  3. One process per vCore, with a shared cache if you rely on revalidation.
  4. Nginx serving /_next/static with one-year caching, plus compression and HTTP/2.
  5. sharp installed, or images pre-optimised or served via a CDN.
  6. Response times and Core Web Vitals monitored after each release.

SkyRainCloud Plans for This Workload

Next.js servers are CPU-bound during rendering and memory-bound during builds. 2 vCores / 8 GB runs a typical site; 4–8 vCores help sites with heavy server rendering, image optimisation or builds on the same server.

AMD EPYC 7C13 VPS

Dedicated KVM vCores on AMD EPYC 7C13 (up to 3.70 GHz) with DDR4 ECC memory, NVMe SSD and an unmetered 1 Gbps port.

PlanvCoresRAMStorageNetworkPriceGood forBuy
VPS 1 — AMD28 GB DDR4 ECC40 GB NVMe SSD1 Gbps, unmetered₹649/monthWebsites, small APIs, bots, staging and VPN serversOrder
VPS 2 — AMD416 GB DDR4 ECC80 GB NVMe SSD1 Gbps, unmetered₹1,299/monthWooCommerce, Node.js/Python backends, Docker Compose stacks, CI runnersOrder
VPS 3 — AMD832 GB DDR4 ECC150 GB NVMe SSD1 Gbps, unmetered₹2,499/monthProduction databases, high-traffic sites, multi-container appsOrder
VPS 4 — AMD1664 GB DDR4 ECC250 GB NVMe SSD1 Gbps, unmetered₹4,899/monthLarge production workloads, SaaS platforms, analytics, in-memory cachesOrder

Prices are monthly in INR as listed on the SkyRainCloud store (verified 2026-11-14). Stock and final pricing are shown on the product page at checkout.

Frequently Asked Questions

Can I self-host Next.js on a VPS?
Yes. Build with standalone output, run the Node.js server behind Nginx, and deploy releases from CI.
Which Next.js rendering mode is fastest?
Static rendering costs almost nothing per request. Use ISR for content that changes occasionally and dynamic rendering only for per-request pages.
Should I build Next.js on the production server?
Better not: builds use lots of memory and CPU. Build in CI and upload the output.
How do I use all vCores with Next.js?
Run several Node.js processes on different ports behind an Nginx upstream, one per vCore as a starting point.
Does ISR work with several processes?
Each process keeps its own cache by default. Configure a shared cache handler, such as one backed by Redis, or accept independent refreshes.
Should Nginx serve /_next/static?
Yes. Serving hashed static assets directly with one-year caching frees Node.js for rendering.
Is next/image slow on a VPS?
It is CPU-intensive the first time each size is generated. Install sharp, cache results, pre-generate common sizes or use a CDN.
How much memory does a Next.js process use?
Typically a few hundred MB, more with large caches. Monitor over time and set a memory limit.
How do I measure Next.js performance?
Track HTML response times in Nginx logs, Core Web Vitals from real users, and load test key routes.
Which EPYC plan suits Next.js?
2 vCores / 8 GB for mostly static sites, 4 vCores / 16 GB for e-commerce with ISR, 8 vCores / 32 GB for heavy server rendering.
Instant UPI • ₹649/mo
Fast KVM Cloud Provisioning