High CPU Usage on FTB Presents Direwolf20 1.7.10

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord
M

Moonblaze

Guest
Hello All,

I have been running a Direwolf20 Server for some time, and I have noticed that the CPU Usage averages ~120% on a daily basis. I was just wondering if there is anything I can do to help get the CPU Usage down, and keep it down. One thing I have done, is limited the number of Mystcraft Ages that are created.
Other than that I am unsure.

What OS are you running?
I am running Ubuntu 14.04 LTS, hosted from Linode.com, which gives me full access to a virtual machine.
Are you using Minecraft hosting provider or a dedicated/local server not designed for minecraft?
I am using a Virtual Machine from Linode.​

What version of FTB are you using? (Dont just say latest tell us the version)
I am running the FTB Presents Direwolf20 (v1.10.0) Minecraft Version 1.7.10
Did you add any mods to the server pack?
The only mod that I added to the server is forge essentials. I have disabled it's save feature, as I am pretty sure FTBUtil has one, that it uses.
What are your server specs?
I believe the machine the VM runs on, has a Ivy Bridge E5-2680 v2, which I believe is a 10 core (20 threads) processor. My VM is given 6 threads to use, with 8GB of ram, 500GB/s of outbound network​


Any help would be appreciated.
Thanks,
Moonblaze
http://www.boundlessknights.com
 

Erola

New Member
Jul 29, 2019
49
0
1
One of the easiest fixes I use for that is set server restarts. The issue you have is mainly the direwolf pack is a heafty one. I would also suggest you add some more cpu to your server, you can also try and have people put some distance in-between them on the world, as well as remove chunk loaders. Now I know people want stuff to run while they are offline, so what I suggest for that is make a an age that is for auto production and have them cut down on wast processes. For example put in a server power source for powering machines in this relm. This way you are not running many different power sources for each person. Now by removing the chunk loaders in the normal world they can still build how they want and the extra cpu load will only happen when they are a lot of people online at the same time. Those are some tips to cut down on your server load if you are still having issues just post on here again and I am sure we can find some more steps. But they become more unfavorable as you move on.
 

Erola

New Member
Jul 29, 2019
49
0
1
almost forgot the server restart intervel I would suggest about once every 5 hours. really depends on how long it takes to start up and how long it takes to overload the cpu.
 

Henry Link

Forum Addict
Dec 23, 2012
2,601
553
153
USA - East Coast
I also run a Ubutnu 14.04 server hosted out of OVH. One of the things I do to check the CPU is open a terminal to the server and type in top. Once you list the of processes running press the 1 key. The top part of the screen will now show you what each core is doing real time. I have a feeling that the ~120 is sort of lying to you about the actual CPU usage. The top command will show which CPU is running the pack and you will see if jump from CPU to CPU every so often. But the main thing is you don't want the CPU pegging to 100%. That is when you tick lag on the server because it can't keep up with the java/minecraft game anymore.

Oh and I'll second the minecraft service restart. On the larger kitchen sink packs like DW20 I usually script it restart twice a day using cron. Even the lighter weight packs get restart once a day.

Also, I don't use any type of web based control panel either. Everything is done via command line, scripts and cron. They even backup the minecraft saves to dropbox 4 times a day.
 
M

Moonblaze

Guest
I appreciate all of the feedback you guys have given me. I seem to have gotten the CPU Usage to stabilize, as well the server's TPS. I created a CronJob to restart the server every 6 hours I believe, but I also included a mod called TickDynamic.