AltivoraAltivora
Back to Blog Overview

Update: our game, bot and database hosting plans are closed for now. A VPS is the better way to run them.

The workloads in this guide run great on an Altivora Cloud VPS. You get full root access, so you can host any game server, Discord bot, Lavalink node or database yourself, with fast NVMe storage, DDoS protection, instant setup and no per-slot limits. Choose the location closest to your players: India, Singapore, USA, Germany or Canada. Pay in INR with UPI or by card.

See VPS Plans
LavalinkJapanTokyoAudioAsiaJava 21Music Bot

Best Lavalink 4 Hosting in Japan & East Asia (2026 Performance Benchmark)

Altivora Audio Lab
13 min read

Real-time audio streaming over Discord voice protocol is one of the most resource-intensive workloads in server hosting. Unlike text messages which tolerate minor network fluctuations, audio streaming relies on continuous 48kHz Opus UDP packets transmitted every 20 milliseconds. A single dropped packet or 50ms jitter spike results in audible distortion, robotic voices, and audio stutter.

Tokyo, Japan is universally recognized as the prime telecommunications gateway for East Asia, offering direct fiber interconnects and Internet Exchange peering via BBIX and JPNAP.


Why Tokyo, Japan Leads Asia for Lavalink Nodes

  1. Direct Fiber Peering (BBIX, JPNAP, Equinix TY): Tokyo nodes connect directly to NTT, KDDI, and SoftBank backbones, ensuring sub-20ms round-trip latency to Seoul (South Korea), Taipei (Taiwan), Hong Kong, and sub-45ms to Singapore and Southeast Asia.
  2. Java 21 Virtual Threads (Project Loom): Lavalink 4 harnesses Java 21 virtual threads, enabling thousands of concurrent audio streams per node with minimal RAM footprint and zero thread contention.
  3. Dedicated Voice UDP Ports: Pre-allocated high-throughput UDP sockets prevent operating system network stack buffer exhaustion during peak playback concurrency.
  4. Third-Party Plugin Architecture: Seamlessly load Spotify, Apple Music, YouTube Source (v2), and Yandex Music plugins directly inside application.yml.

Production Lavalink 4 Configuration (application.yml)

server:
  port: 2333
  address: 0.0.0.0
  http2:
    enabled: true

lavalink:
  plugins:
    - dependency: "dev.arbjerg.lavalink.libraries.v4:youtube-plugin:1.5.2"
      repository: "https://maven.lavalink.dev/releases"
    - dependency: "com.github.topi314.lavasrc:lavasrc-plugin:4.2.0"
      repository: "https://maven.lavalink.dev/releases"
  server:
    password: "YourStrongSecurePassword123!"
    playerUpdateInterval: 5
    bufferDurationMs: 400
    frameBufferDurationMs: 5000
    opusEncodingQuality: 10
    resamplingQuality: HIGH
    trackStuckThresholdMs: 10000
    useSeekGhosting: true
    youtubeSearchEnabled: true
    sources:
      youtube: false # Handled by youtube-plugin
      bandcamp: true
      soundcloud: true
      twitch: true
      vimeo: true
      http: true
      local: false

plugins:
  youtube:
    enabled: true
    allowSearch: true
    allowDirectVideoIds: true
    allowDirectPlaylistIds: true
  lavasrc:
    providers:
      - "ytsearch:"%ISRC%""
      - "ytsearch:%QUERY%"
    spotify:
      clientId: "YOUR_SPOTIFY_CLIENT_ID"
      clientSecret: "YOUR_SPOTIFY_CLIENT_SECRET"
      countryCode: "JP"

metrics:
  prometheus:
    enabled: false

logging:
  file:
    path: ./logs/lavalink.log
  level:
    root: INFO
    lavalink: INFO

JVM Garbage Collection Flags for High-Concurrency Lavalink Nodes

java -Xms2G -Xmx2G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=100 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1ReservePercent=20 -jar Lavalink.jar

Lavalink Node Sizing & Concurrency Capacity

High-Performance Infrastructure

Deploy Dedicated NVMe Cloud VPS

Deploy high-IOPS Gen4 NVMe compute across USA, Germany (Frankfurt), India (Mumbai & Noida), and Singapore. Instant setup & enterprise DDoS protection.

Explore VPS Plans

Related Technical Guides

Ready to upgrade your infrastructure?

Experience the Altivora difference with a 99.9% uptime SLA and 60-second setup.