Mojira Archive
BDS-1134

Server appears not to honour max-threads (1.12.0.28)

This issue affects 1.12.0.28 of bedrock_server

Despite setting max-threads, bedrock_server still uses 11 threads

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

Attachments10

1 thread.png
1 thread.png

Rob Griffiths

1 thread running.png
1 thread running.png

Rob Griffiths

25 thread.png
25 thread.png

Rob Griffiths

25 thread running.png
25 thread running.png

Rob Griffiths

4 thread.png
4 thread.png

Rob Griffiths

4 thread running.png
4 thread running.png

Rob Griffiths

server.properties

Rob Griffiths

Comments9

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

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

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

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?

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

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

I'm pretty convinced this is a bug.

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

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

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

History7

IonicEcko

Added labels: awaiting-response

Removed labels:

[Mod] OcelotOnesie
Rob Griffiths

Added attachment:

Added attachment:

Added attachment:

Added attachment:

Added attachment:

Added attachment:

[Bot] Arisa
Rob Griffiths
IonicEcko

Added labels:

Removed labels: awaiting-response

IonicEcko
Cannot Reproduce
Rob Griffiths
1
0
1.9.0.15