[BDS-9286] Bedrock Server will start consuming exponentially much RAM when using high slot amounts Created: 07/Oct/20  Updated: 14/Dec/21  Resolved: 18/Nov/20

Status: Resolved
Project: Bedrock Dedicated Server
Affects Version/s: 1.16.40
Fix Version/s: None

Type: Bug
Reporter: ChosenFate Assignee: Unassigned
Resolution: Invalid Votes: 0
Labels: awaiting-response
Environment:

Windows 10, latest consumer release


Attachments: PNG File image-2020-10-07-19-05-04-743.png    
Issue Links:
Duplicate
is duplicated by BDS-14890 Server crashes on start when max play... Resolved
is duplicated by BDS-16521 As you set a larger number of player ... Resolved
Confirmation Status: Unconfirmed
ADO: 421451

 Description   

This was with a slot limit of 700000. 5.7GB ram usage. Crashes are rather random at these high numbers, and I managed to get it to crash at even only 600000 too, so yea. It should definitely be fixed and made so slot amount really is just a number and not a performance indicator.



 Comments   
Comment by IonicEcko [ 13/Oct/20 ]

Hi Jorge,

Based on the how-to document this would appear to be expected behavior, excerpt below.

max-players Any integer 10 Always The maximum numbers of players that should be able to play on the server. Higher values have performance impact.

Comment by ChosenFate [ 13/Oct/20 ]

Summary

The server uses tons of RAM when using high slots

Steps to reproduce...

  1. Set slots to 600000 (or any other high value, maybe lower / higher) in server.properties
  2. Run server
  3. Check RAM usage

What I expected to happen...

Server uses same RAM amount independent on slot amount (like in java)

What actually happened...

Server RAM either depends on slot amount, or it simply can't handle the slots and freaks out, using way too much RAM compared to normal slot amounts like 50

Comment by IonicEcko [ 13/Oct/20 ]

Can you please elaborate on the problem and include steps to reproduce.

Are you saying that merely adding high slots and starting the server will immediately result in high RAM utilisation?

Please use the template below which helps include the information volunteers need to reproduce your issue:

Summary

This is a brief summary of what happens

Steps to reproduce...

  1. Set X in server.properties
  2. Run server
  3. Connect to server and chop tree
  4. GUI goes rainbow

What I expected to happen...

What did you expect to happen when performing said steps (sometimes this is obvious as it may be in this case)

What actually happened...

What did you see/experience

Generated at Sat Jan 11 07:47:34 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.