• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

TFS 0.X Does the RAM increase while the server is online?

bury

Active Member
Joined
Jul 27, 2008
Messages
421
Solutions
7
Reaction score
25
Hello! Im using tfs 0.4.

Just after starting my server I calculated that I could open more than one server in my hosting because when it had some days online it was using around 16% of my hosting RAM with around 140 players online (I have 32 GB on my dedicated server). I checked it with top command in Debian.

Now, two months later, it says it's using 64.6% of the RAM lol when I have less players playing during the day (around 60~70, 80 max). Do you know why this is happening? With that ram bussy I could not open a second server, the dedicated maybe crashes or something if it has not enough RAM.

Uptime of my server: 04:09 Uptime: 1699 hours and 8 minutes.

(Server is still working fine, smooth and 0 lag).

Thanks!
 
Every time a player logs in, or a monster is created, or an item is created (among other things) memory from your RAM has to be allocated to hold them. If you're not properly deallocating memory for these objects when they are no longer needed then that memory cannot be freed back to the pool which is what we call a memory leak. It's either that, or maybe it's because a lot of items are being created; when you kill a monster its memory should be freed, but an object is created for each item it drops in its loot, which means killing a monster can potentially cause more memory to be used than the actual monster itself. For example, a single stack of 100 gold coins takes up the same amount of memory as 1 gold coin, which means 100 individual gold coins on the map takes up 100x the memory of a single stack of gold coins.

So to answer your question, yes the RAM usage increases as your server stays online.
 
You would be much better off using the latest TFS version available since it easy to keep up with git hub fixes and you can be sure it is maintainted.
Also the help you can get with your server dramatically increases due to many others using TFS 1.3.
 
Back
Top