[BDS-1134] Server appears not to honour max-threads (1.12.0.28) Created: 16/Jul/19  Updated: 21/Jun/20  Resolved: 21/Jun/20

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

Type: Bug
Reporter: Rob Griffiths Assignee: Unassigned
Resolution: Cannot Reproduce Votes: 1
Labels: None
Environment:

lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 1
On-line CPU(s) list: 0
Thread(s) per core: 1
Core(s) per socket: 1
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 15
Model: 6
Model name: Common KVM processor
Stepping: 1
CPU MHz: 1899.999
BogoMIPS: 3799.99
Hypervisor vendor: KVM
Virtualization type: full
L1d cache: 32K
L1i cache: 32K
L2 cache: 4096K
L3 cache: 16384K
NUMA node0 CPU(s): 0
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx lm constant_tsc nopl xtopology cpuid pni cx16 x2apic hypervisor lahf_lm cpuid_fault pti

lsmem
RANGE SIZE STATE REMOVABLE BLOCK
0x0000000000000000-0x000000007fffffff 2G online no 0-15

Memory block size: 128M
Total online memory: 2G
Total offline memory: 0B

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.2 LTS
Release: 18.04
Codename: bionic


Attachments: PNG File 1 thread running.png     PNG File 1 thread.png     PNG File 25 thread running.png     PNG File 25 thread.png     PNG File 4 thread running.png     PNG File 4 thread.png     PNG File Screen Shot 2019-07-16 at 16.04.26.png     PNG File Screen Shot 2019-07-16 at 16.05.47.png     PNG File Screen Shot 2020-03-30 at 11.39.43.png     File server.properties    

 Description   

This issue affects 1.12.0.28 of bedrock_server

Despite setting max-threads, bedrock_server still uses 11 threads



 Comments   
Comment by Rob Griffiths [ 30/Mar/20 ]

Update:

1 socket, 4 cores, 1 thread. Things do change in terms of initial threads. max-threads=1 or 2 I get 11 threads, 3 gets 12, >=4 13 threads.

I'm unable to test how it affects gameplay as I only have a low spec tablet with the game currently.

Perhaps go ahead and close this since I'm the only one affected in over 8 months

Comment by Rob Griffiths [ 30/Mar/20 ]

No, it was still 1 socket 1 core 1 thread but I will test on higher specs and report back.

Comment by IonicEcko [ 30/Mar/20 ]

One last question before I go back and test it, are you still running on a 1 core virtual?

Like I mentioned I tested it and saw a significant difference in threads when changing that setting so we’ll likely need to narrow it as much as we can before I can confirm it.

On first glance (and I’m on my phone thanks to an internet outage so can’t really see the screenshots) the only difference I can see is that I would have been running on a 4-6 core ESXi 18.04.3 virtual whereas your environment notes from your initial report have a 1 socket, 1 core, 1 thread virtual.

I can imagine a scenario where the app won’t accept a setting that would be deleterious to normal operation, that’s obviously pure speculation though and completely debunked if your new tests are on a higher spec VM

Ionic

Comment by Rob Griffiths [ 30/Mar/20 ]

You can see in my screenshots that the number of threads did not change.

I'm pretty convinced this is a bug.

Comment by IonicEcko [ 30/Mar/20 ]

I honestly couldn't tell you if thats expected or not, I don't really understand the relationship between how many threads BDS needs to run and what the max-threads option should entail.

My testing just involved testing it with 1, then upping that number and checking if the number of active threads changed.

If you know how this stuff should work and you're confident this is a bug I'm happy to raise it for you.

Ionic

Comment by Rob Griffiths [ 30/Mar/20 ]

Heres another display of active threads for a process. In this instance, Max Threads was 1. I would expect to see the main process, IO thread, REST thread, Level DB thread MC server thread, and one bedrock_server thread.

Or am I incorrect?

Comment by Rob Griffiths [ 30/Mar/20 ]

No, It's still not fixed, It appears now it spins up 14 treads.

Comment by IonicEcko [ 28/Mar/20 ]

I've not heard back from you in a while.

In order to keep the Bedrock Dedicated Server project running smoothly I'm going to request this issue be closed as Awaiting Response.

Never fear though! If this is still affecting you in the latest version (and is related to Bedrock Dedicated Server and not the Minecraft Bedrock game) all you have to do is comment and it will reopen.

If your issue does still exist but is related to the game and not the server software please head over to the Minecraft (Bedrock codebase) project.

Ionic

Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – 📖 BDS Wiki – 📖 FAQs

Comment by IonicEcko [ 04/Mar/20 ]

Hi Rob,

Is this still an issue in 1.14.32.1?

I've messed with the max-threads option and it appears to have a significant impact on load distribution for me when generating chunks.

Ionic

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