In short
A Palworld dedicated server uses more and more memory the longer it stays up; this is the game's known memory leak behavior. The fix has three parts: save and run a scheduled restart once or twice a day, balance loads such as dropped items, base workers and raids in PalWorldSettings.ini, and run a server with enough RAM for your player count.
In this guide
If your Palworld server starts with reasonable memory usage, then fills up its RAM after a few hours and starts lagging, kicking players or crashing outright, you are not alone. This behavior comes mostly from the game's own memory management, and no single setting makes it go away completely. The lasting fix is a combination of three things: scheduled restarts, PalWorldSettings.ini optimization and enough RAM for your player count. This guide walks through all three with steps you can apply right away.
Why does a Palworld server eat up RAM?
A memory leak happens when a program fails to release memory it no longer needs, so usage keeps climbing over time. The Palworld dedicated server (PalServer) shows this pattern often when it runs for long stretches without a restart. On top of the leak, there are legitimate loads that grow RAM usage:
- Explored map areas: As players spread out across the map, the server keeps more areas loaded in memory at the same time.
- Pals at bases: Every base worker runs AI, pathfinding and work-cycle calculations. Lots of bases and a high worker cap strain both memory and CPU.
- Items on the ground: Dropped items that nobody picks up are kept as world objects.
- Raids and events: Attacks on bases create sudden spikes of objects and AI load.
- Save file size: As the world grows, so does Level.sav and the memory used during each save.
So you are dealing with two separate problems: a leak that builds up over time and the world's natural growth. Restarts handle the first; settings optimization and the right plan handle the second.
Diagnose first: memory leak or not enough RAM?
Read the symptoms correctly before picking a fix. The table below helps you tell the common scenarios apart.
| Symptom | Likely cause | First fix to try |
|---|---|---|
| Normal at startup, climbs steadily for hours, back to normal after a restart | Memory leak | Scheduled restarts |
| Hits the RAM limit shortly after startup | Not enough RAM for the world size and player count | A plan with more RAM |
| Sudden spikes and lag as more players join | Base and Pal load, raids | PalWorldSettings.ini optimization |
| Freezes and crashes while saving | Large save file and memory at its limit | Restart and leave RAM headroom |
If you have access to a Linux-based server or VDS, you can monitor memory usage with these commands:
free -h
ps -eo pid,rss,etime,cmd --sort=-rss | grep -i pal | headThe rss column shows the physical memory the process is using (in KB), and etime shows how long it has been running. Repeat the measurement a few hours apart; if usage rises steadily along with uptime, it is a leak. If you use a web panel, you can follow the same trend on the panel's resource graph.
Fix 1: Scheduled restarts
The most effective and safest defense against the leak is restarting the server regularly at off-peak hours. One restart a day is a good starting point for a busy server, and two a day for a very crowded one. The key is to always save before shutting down.
Manual restart from in game
Once you have admin rights (see the Palworld admin commands guide), type the following in chat:
/Save
/ShutDown 60 Sunucu_1_dakika_sonra_yeniden_baslatilacak/Savewrites the world to disk./ShutDown 60 messageshows players a message and shuts the server down after 60 seconds.- Once the server is down, start it again from the panel.
Automatic restarts with the REST API
The Palworld server has a built-in REST API. With RESTAPIEnabled=True and RESTAPIPort=8212 set, you authenticate with the username admin and your AdminPassword value as the password. Here is an example of a controlled daily restart at 6:00 AM using cron on Linux:
# crontab -e
50 5 * * * curl -s -u admin:ADMIN_SIFRENIZ -X POST http://127.0.0.1:8212/v1/api/announce -H "Content-Type: application/json" -d '{"message":"Sunucu 10 dakika sonra yeniden baslatilacak"}'
58 5 * * * curl -s -u admin:ADMIN_SIFRENIZ -X POST http://127.0.0.1:8212/v1/api/save
0 6 * * * curl -s -u admin:ADMIN_SIFRENIZ -X POST http://127.0.0.1:8212/v1/api/shutdown -H "Content-Type: application/json" -d '{"waittime":30,"message":"Yeniden baslatiliyor"}'This method only shuts the server down; to bring it back up you need something that manages the process (for example, a systemd service with Restart=always). If your web panel has a scheduled task option, setting up the same flow there is more practical. Do not expose the REST API port to the internet; allow access only from the server itself or from an address you trust. For the full list of endpoints, see the official Palworld server documentation.
Do not forget a backup before restarting. A server that has gone a long time without a restart and has run out of RAM crashing mid-save is the most common way worlds get corrupted.
Fix 2: Optimize PalWorldSettings.ini
The settings file lives at Pal/Saved/Config/LinuxServer/PalWorldSettings.ini on a Linux server and Pal/Saved/Config/WindowsServer/PalWorldSettings.ini on a Windows server. All settings sit inside a single-line OptionSettings=(...) block. These are the lines with the biggest impact on memory and load:
BaseCampWorkerMaxNum=12,
BaseCampMaxNumInGuild=3,
DropItemMaxNum=1500,
DropItemAliveMaxHours=0.5,
bEnableInvaderEnemy=True,
bAutoResetGuildNoOnlinePlayers=True,
AutoResetGuildTimeNoOnlinePlayers=168.0,
ServerPlayerMaxNum=16,- BaseCampWorkerMaxNum: How many Pals can work at one base. Raising it makes players happy, but every Pal adds AI load. On multiplayer servers, not going above the default is a good balance.
- BaseCampMaxNumInGuild: Bases per guild. Fewer bases means fewer parts of the map being simulated all the time.
- DropItemMaxNum and DropItemAliveMaxHours: How many items can stay on the ground and for how long. Lowering them reduces world object buildup.
- bEnableInvaderEnemy: Turns base raids on or off. If you have performance issues, setting it to
Falsetemporarily cuts down sudden load spikes. - bAutoResetGuildNoOnlinePlayers: Clears out bases of guilds nobody has logged into for a long time, so abandoned bases stop adding load. The value is in hours.
- ServerPlayerMaxNum: Do not open more slots than your plan can handle.
Make changes while the server is stopped. To see what each setting does one by one, check the PalWorldSettings.ini settings explained guide. Note: if you uploaded a co-op world, the WorldOption.sav file in the save folder can override your ini settings; if your settings are not applying, back up and remove that file.
Fix 3: Launch parameters
The official documentation recommends these parameters to make better use of multi-core CPUs:
./PalServer.sh -useperfthreads -NoAsyncLoadingThread -UseMultithreadForDSThese parameters do not fix the leak directly, but they help the CPU spread the load better, which eases the stutters that start once memory begins to fill up.
How much RAM you need by player count
Restarts and settings limit the impact of the leak, but none of them is enough on its own if there is not enough memory for your world and player load. The table below is not an exact measurement; it is a practical guideline that varies with save size and restart interval:
| Concurrent players | Recommended RAM | Suitable plan |
|---|---|---|
| Group of 2-6 friends | 8-12 GB | Entry and mid-tier plans |
| 8-16 players, world with many bases | 16 GB | OB-WORLD-5 Palworld server (16 GB RAM, 6 CPU) |
| 16-32 players, community server | 24 GB and up | OB-WORLD-6 Palworld server (24 GB RAM, 8 CPU) |
Keep the rule simple: if RAM usage right after a restart is already above half of your plan, there is no room left for the leak before the next restart. In that case, moving up a plan gives players a better experience than cutting back settings.
Common mistakes
- Restarting without saving: Any progress since the last save is lost.
- Raising the slot count regardless of your plan: Running a 32-slot server on low RAM is a guaranteed crash.
- Relying on swap: Memory that spills to disk (swap) when RAM runs out can keep the server from crashing, but it slows the game loop down badly. If swap usage has started, treat it as a capacity warning, not a fix.
- Blaming only the player count: A world with few players that has been growing for months with dozens of bases can need more memory than a freshly started crowded world. Factor in the age of the world when planning RAM.
- Editing settings while the server is running: The server may overwrite the file when it shuts down, and your changes are lost.
- Experimenting without a backup: Copy the save folder before trying settings or restarts. For automatic backup scheduling, see the game panel backup guide.
Next step: start with a properly sized server
If you have applied restarts and settings optimization on your current server and still hit the RAM limit in the evenings, the problem is capacity, not configuration. OyunBulut Palworld server plans are hosted in Istanbul with NVMe SSD storage, DDoS protection, automatic setup and a web panel. For mid-size communities, OB-WORLD-5 with 16 GB RAM, and for servers with more than 16 players and many bases, OB-WORLD-6 with 24 GB RAM leave comfortable headroom between restarts despite the leak. If you get stuck with a migration or settings, you can open a support ticket.
Frequently asked questions
Why does a Palworld server use more RAM over time?
The game's dedicated server does not fully release memory when it runs for long periods, and the load from Pals at bases, items on the ground and explored areas adds on top. That is why usage grows with uptime.
How often should I restart my Palworld server?
Once a day is a good starting point for busy servers and twice a day for crowded community servers. Save before every restart with /Save or the REST API save call.
How much RAM does a Palworld server need?
As a practical guideline: 8-12 GB for small friend groups, 16 GB for 8-16 players, and 24 GB or more for 16-32 players. The exact need depends on world size and restart interval.
Why are my PalWorldSettings.ini changes not applying?
If you edited the file while the server was running, it may have been overwritten at shutdown. In worlds moved over from co-op, the WorldOption.sav file overrides the ini settings, so you need to back it up and remove it.
Does turning off raids improve performance?
Setting bEnableInvaderEnemy=False removes the sudden AI and object load that base raids create. Since it changes the gameplay, try the other settings first.