Problem FTB:Unleashed MCPC+ CPU load saver tweaks?

  • 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

Mittell Buurman

New Member
Jul 29, 2019
7
0
0

0


I'm looking to host a public Unleashed server and went ahead looking for good plugins (craftbukkit, MCPC+, spigot) I have tested them and all are working fine, but here's the issue.

I run a 16GB dedicated server with an Intel Xeon L3426 1.86Ghz - 3.2Ghz Turbo processor and it's not dedicated for JUST minecraft. I have been looking for certain tweaks to reduce CPU load. The tweaks work fine on the standard FTB server, but not on any other modded jar file (creating a shortcut from the jar and put the console tweaks in there). The server loads for a bit and then shuts down. I tried looking for error logs but there are none.

Here's my question: I want to run MCPC+ and use either Spigot (since i've seen it using only what it needs to use but the CPU load was over %30 when idle) or craftbukkit. How can I tweak the launcher in such a way that it doesn't load my CPU when it's idle. Keep in mind that I'm not going to use a batfile since .exe will always consume your CPU when it feels like it.

MC version: 1.5.2
Forgemod: 7.8.1.738
OS: Windows server 2008 R2

I have tried things like -Xingc, -Xms, -Xmx etc but for some reason it doesn't load the server and shuts down.
 

Wagon153

New Member
Jul 29, 2019
3,148
-3
1
As far as I'm aware, MCPC+ is integrated with spigot already. As far as CPU load, there isn't a whole lot you can do about this due to the nature of mods. Running MCPC may get that number down to 20%, however.
 

Mittell Buurman

New Member
Jul 29, 2019
7
0
0
The server shouldnt be occupying 20% of my CPU when there's no one on the server. I was able to use some commandlines to get the vanilla FTB Unleashed to 1-3% when there's no one in the server. I'd really like to have the same when running a public server since my other servers are experiencing lag issues due to the CPU load
 

Mittell Buurman

New Member
Jul 29, 2019
7
0
0
ss (2014-03-24 at 03.26.47).png


The top server is the normal server running with a shortcut. no one in the server, 0 CPU load

Highlighted one is the public server using mcpc-plus. I've opened it using the batch file. all arguments are the same except for the max ram usage (4GB) no one in the server, server is loaded, running and the CPU load is 13% while no one is in the server.
 

Connor Gavitt

New Member
Jul 29, 2019
1,091
-1
0
There are no .exe files in minecraft and I don't understand how your starting the server if it's not with a batch file. What are the java arguments you use as those do matter. You have a server.log it's one of the first things the server makes also a forge log too which can provide more information then "my server is lagging what do I do" also using a shortcut to start it makes no difference in CPU load.

Please provide your server.log when it shuts down along with your forge log which is located in the same folder as the server.jar which I still don't understand what your doing since there is a .exe also your startup arguments will be needed and just the emphasize it we need that server.log you just posted a picture of ftb unleashed running from a .exe with less then 2MB of ram so I can't be the only one here completely confused.

Side note that processor shouldn't be used for minecraft id estimate a max of 15-25 players for FTB unleashed on it before TPS drops below 10.
 

Mittell Buurman

New Member
Jul 29, 2019
7
0
0
There are no .exe files in minecraft and I don't understand how your starting the server if it's not with a batch file. What are the java arguments you use as those do matter. You have a server.log it's one of the first things the server makes also a forge log too which can provide more information then "my server is lagging what do I do" also using a shortcut to start it makes no difference in CPU load.

Please provide your server.log when it shuts down along with your forge log which is located in the same folder as the server.jar which I still don't understand what your doing since there is a .exe also your startup arguments will be needed and just the emphasize it we need that server.log you just posted a picture of ftb unleashed running from a .exe with less then 2MB of ram so I can't be the only one here completely confused.

Side note that processor shouldn't be used for minecraft id estimate a max of 15-25 players for FTB unleashed on it before TPS drops below 10.

I actually managed to find a fix for the cpu load. When you run it through a batchfile usually loads it through cmd.exe. In the batchfile you can write it like this:
java -Xms1024m -Xmx2048 -PermSize1G -jar server.jar

This loads the server through the jarfile and keeps cpu at it's minimum when idle (Use java and not javaw since javaw keeps a constant cpu load). But now I have another issue in which the mod files are not loading properly. It's just vanilla while I run FTB Unleashed.
 

Wagon153

New Member
Jul 29, 2019
3,148
-3
1
I actually managed to find a fix for the cpu load. When you run it through a batchfile usually loads it through cmd.exe. In the batchfile you can write it like this:
java -Xms1024m -Xmx2048 -PermSize1G -jar server.jar

This loads the server through the jarfile and keeps cpu at it's minimum when idle (Use java and not javaw since javaw keeps a constant cpu load). But now I have another issue in which the mod files are not loading properly. It's just vanilla while I run FTB Unleashed.
Make sure to specify the forge jar in the .bat, not just server.jar. Otherwise you will end up with vanilla.
 

Mittell Buurman

New Member
Jul 29, 2019
7
0
0
Make sure to specify the forge jar in the .bat, not just server.jar. Otherwise you will end up with vanilla.
I thought I had it fixed, but then I realized It was running FTB without spigot.
My commandline:

Code:
start ftbserver.jar -Xms2048m -Xmx4096m -XX:PermSize=2048m -XX:TargetSurvivorRatio=80 -XX:MaxTenuringThreshold=31 -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+DisableExplicitGC -XX:MaxGCPauseMillis=4 -Xincgc -jar spigot.jar nogui

Server is running fine, but spigot is not loaded at all. Worldedit/bukkit etc isn't loading at all. I tried using -cp at some point aswell with the same results. The batchfile and these jar files are located in the server root.
 

Wagon153

New Member
Jul 29, 2019
3,148
-3
1
If you mean MCPC, then that is ANOTHER jar file that can be run. So once again, change the bat file to reflect towards the MCPC jar, then that problem should be fixed.
 

Mittell Buurman

New Member
Jul 29, 2019
7
0
0
I mean... ftbunleashed is running, but the spigot.jar isn't loaded at all with this command line. How can I resolve this?
 

Connor Gavitt

New Member
Jul 29, 2019
1,091
-1
0
You don't use spigot with mods, never have most likely never will as bukkit doesn't like us and md_5 is going to stick with whatever bukkit does to sum it up.


Use MCPC as stated above. Also what is Javaw?
 

Wagon153

New Member
Jul 29, 2019
3,148
-3
1
You don't use spigot with mods, never have most likely never will as bukkit doesn't like us and md_5 is going to stick with whatever bukkit does to sum it up.


Use MCPC as stated above. Also what is Javaw?
I did a quick google search, and it's apparently Java without a console window. Which doesn't make much sense since a console DOES show up, but I'm not a programmer, so I don't know what I'm talking about.
 

Mittell Buurman

New Member
Jul 29, 2019
7
0
0
It doesn't matter, using mcpc plus now, my cpu load is minimum and not using anything now when idle. Only worldedit doesnt seem to grab any custom blocks, but it is working.
Spigot doesnt work unfortunately, but now my server is working the way I want it for now.

Thanks for the heads up
 

Connor Gavitt

New Member
Jul 29, 2019
1,091
-1
0
It doesn't matter, using mcpc plus now, my cpu load is minimum and not using anything now when idle. Only worldedit doesnt seem to grab any custom blocks, but it is working.
Spigot doesnt work unfortunately, but now my server is working the way I want it for now.

Thanks for the heads up
You can't use spigot for FTB, use mcpc+ and as it is the "spigot" for FTB.
 

DZCreeper

New Member
Jul 29, 2019
1,469
0
1
I thought I had it fixed, but then I realized It was running FTB without spigot.
My commandline:

Code:
start ftbserver.jar -Xms2048m -Xmx4096m -XX:PermSize=2048m -XX:TargetSurvivorRatio=80 -XX:MaxTenuringThreshold=31 -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+DisableExplicitGC -XX:MaxGCPauseMillis=4 -Xincgc -jar spigot.jar nogui

Server is running fine, but spigot is not loaded at all. Worldedit/bukkit etc isn't loading at all. I tried using -cp at some point aswell with the same results. The batchfile and these jar files are located in the server root.

HOLY CRAP. Drop the PermSize to 256m. Even the most intensive packs with 200+ mods don't go over 256m.