Lodestone Knowledgebase
Go to websiteCreate a ticket
  • Introduction
  • FAQ
  • Price Comparison
  • Account & Billing
    • Open a support ticket
  • Upgrade a service
  • Cancel an active service
  • Request a refund
  • Resolve pending status
  • Game Panel
    • Change server name
    • Change server version
    • Install plugins
    • Install modpacks
    • Create a subdomain
    • Create server backups
    • Invite subusers
    • Create MySQL databases
    • View assigned ports
    • Create schedules
    • Enable health monitoring
    • Use SFTP with FileZilla
  • Minecraft Java
    • Make a player an operator
    • Add a player to the whitelist
    • Change server world seed
    • Add a server icon
    • Customise server properties
    • Connect a custom domain
    • Reduce memory usage
    • Configure GeyserMC
    • Analyse timings with Spark
    • Using Minehut external
    • Configure Dynmap
    • Delete player data
  • Minecraft Bedrock
  • Connect to a server on PS4/5
  • Connect to a server on XBOX
  • Connect to a server on Switch
  • Add a player to the allowlist
  • Grant operator privileges
  • Enable cheats
  • Enable experimental mode
  • Dedicated Hosting
    • Connect through SSH
    • Change default SSH port
    • Connect through FTP
    • Configure Fail2Ban
Powered by GitBook
On this page
  • Reducing chunk loading
  • Changing startup flags
  • Removing unhelpful plugins
  • Advanced optimisation
  1. Minecraft Java

Reduce memory usage

How to optimise your Minecraft server's memory usage.

Minecraft servers can experience memory issues, and reducing memory usage can help prevent these problems and optimise server performance effectively.

We recommend using Spark to analyse performance before attempting optimisation.

Reducing chunk loading

The most common cause for memory issues is too many chunks being loaded at one time.

The easiest way to change this is by changing the view-distance value in your server.properties file. This setting will reduce the number of chunks that are loaded by your server, which will in turn reduce the amount of RAM your server is using.

Changing startup flags

You can try using Aikar's Flags to tune how the JVM does garbage collection, specifically how often a GC sweep runs, how long it's allowed to run, how old objects are allowed to be before getting garbage collected, number of cores used for GC sweeps, etc.

Removing unhelpful plugins

We recommend removing plugins, such as ClearLagg, that clear server entities. They tend to use more resources scanning and removing items than not removing the items at all.

You should also remove mob stacker plugins unless strictly required, as stacking naturally spawned entities causes more lag than not stacking them at all due to the server constantly trying to spawn more mobs.

Advanced optimisation

You can try following an optimisation guide to configure server settings and improve performance. It's important to remember that you'll need to tune this to your server's requirements.

PreviousConnect a custom domainNextConfigure GeyserMC

Last updated 3 months ago