How To Make Minecraft Use More Cores, Force Minecraft To Use All My Cpu Cores

I am working on setting up a Minecraft server on a machine I have at home. This particular machine has two quad-core CPUs running at 2.0Ghz so I would like to take advantage of the number of cores and run a server with 4 or 6 of the cores. My server of choice is CraftBukkit, the latest version of which is craftbukkit-1.4.7-R1.0 and launched with a start-up script of:

“C:Program FilesJavajre7injava.exe” -Xms1G -Xmx8G -jar craftbukkit-1.4.7-R1.0.jar”The Minecraft Wiki says:

Minecraft servers, as of 1.1.0, can use multiple cores, so now they will not sit idle.

Đang xem: How to make minecraft use more cores

but does not really expand on this.

My questions, then:

Is it possible to set the number of cores the server uses?How do I do it – via start-up options, or other methods?Is it really worth it and would it make that much of a difference with a lot of players?
minecraft-java-edition minecraft-java-edition-server minecraft-bukkit hosting
Share
Improve this question
Follow
edited Dec 29 “19 at 16:36

*

Ola Ström
35011 gold badge22 silver badges77 bronze badges
asked Feb 12 “13 at 22:52

*

tombull89tombull89
7,6201414 gold badges5959 silver badges8282 bronze badges
1
Add a comment |

2 Answers 2

Active Oldest Votes
16
If you use the JDK instead of the JRE then you can use the following command line to force the JDK to use all available cores for optimising Java itself (source):

-server -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalPacing -XX:ParallelGCThreads=7 -XX:+AggressiveOpts -Xms1G -Xmx8G -jar craftbukkit-1.4.7-R1.0.jar

As you are clearly using Windows, have you considered YAMS? (Full disclosure: I made it). YAMS will do all this for you.

Read more: How To Get To Ironhorn Enclave Wow, Ronos Ironhorn

Share
Improve this answer
Follow
edited Jun 17 “20 at 10:32

*

galacticninja
42.2k8787 gold badges265265 silver badges489489 bronze badges
answered Feb 14 “13 at 12:05

*

Richard BensonRichard Benson
1,48188 silver badges88 bronze badges
5
Add a comment |
3
Thanks for trying man, but a process in java needs specific triggers for a thread to split – it has to be coded that way.

You can get some practical examples here : https://beginnersbook.com/2013/03/multithreading-in-java/

While Minecraft has a decently robust developed multicore support on the client side, it lacks it on the serverside. Anything above 3 cores won”t be used, unless new itterations introduces a command blockchain with automatical threadsplitting – making the dedicated server code more scalable than it”s been since release.

Read more: Spirestone Battle Lord Of The Spire Wow, Lord Nathraxas

Share
Improve this answer
Follow
edited Feb 4 “18 at 6:26

*

Felix Zetterlund
322 bronze badges
answered Feb 13 “13 at 16:53
EvanEvan
17444 bronze badges
4
Add a comment |
Highly active question. Earn 10 reputation in order to answer this question. The reputation requirement helps protect this question from spam and non-answer activity.

Not the answer you're looking for? Browse other questions tagged minecraft-java-edition minecraft-java-edition-server minecraft-bukkit hosting or ask your own question.

Screenshot of the Week
Overlooking a Frozen Dam in Horizon Zero Dawn by arghtype
Submit your photo Hall of fame
Featured on Meta
Linked
0
How can I run a Minecraft Server on multiple CPU cores? Mac
1
Does minecraft servers scale well on multi thread CPU?
Related
5
Minecraft server using way too much CPU
1
Severe system lag spike when running Minecraft server with more than 1 user?
0
How do I run a multicraft Minecraft server backup locally on my desktop?
2
Minecraft – Multiple PlotMe Worlds On One Server
2
Can't access server when with more than 2 GB of RAM available
0
Can I run a Minecraft server and play on the same computer? (with my specs, 15+ players)
0
How do I run multiple Minecraft server instances on a single physical server?
Hot Network Questions more hot questions
Question feed
Subscribe to RSS
Question feed To subscribe to this RSS feed, copy and paste this URL into your RSS reader.

Arqade
Company
Stack Exchange Network
site design / logo © 2021 Stack Exchange Inc; user contributions licensed under cc by-sa. rev2021.3.25.38898

Leave a Comment