High CPU Usage

Discussion in 'Server Tech Support' started by Saryec, Sep 13, 2013.

  1. Saryec

    Saryec Member

    Hi,

    I'm hosting the lastest Unleashed server, but it uses quite a bit from the CPU.
    I have my server running on a Linux VPS.
    The server doesnt have any other mods installed beside the modpack itself.
    It uses 80-100% of the CPU, with 3 people on the server.

    I use this as startup line:
    Code:
    java -Xms2048M -Xmx2048M -jar ftbserver.jar nogui
    Specs:
    2x Dual Core AMD Opteron 8218
    4GB RAM
    Ubuntu 12.04 64bit

    Many thanks.
     
  2. Henry Link

    Henry Link Popular Member

  3. IlliniJeeper

    IlliniJeeper Active Member

    I have a similar setup for my personal server and had the same problem regarding CPU load.

    Installing Tick Threading and tweaking the JVM arguments from Eyamaz solved my problems. I suggest looking into them. You may need to adjust the JVM arguments to suit your hardware if your server fails to start with a copy-paste into your ServerStart.sh file
     
  4. Saryec

    Saryec Member

    Hmm, it says it requires a minimum of 5GBs of RAM, I only have 4GBs :(
     
  5. Henry Link

    Henry Link Popular Member

    Read the whole thing. I would try tweaking settings from that thread 1st with the memory you have. With only 3 players it should be fine. Then if it is still needed bump up the RAM.

    The example he has hidden only used 2G.

    Code:
    -Xms2048m -Xmx2048m -Xmn512m -XX:TargetSurvivorRatio=80 -XX:MaxTenuringThreshold=31 -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+DisableExplicitGC -XX:MaxGCPauseMillis=40 -XX:GCPauseIntervalMillis=400 -XX:+AggressiveOpts -XX:permSize=1024m -XX:+TieredCompilation -XX:ReservedCodeCacheSize=2048m -XX:+UseCodeCacheFlushing -XX:CompileThreshold=1000 -jar “put your server jar name here” nogui
     
  6. Eyamaz

    Eyamaz nope.jpg Retired Staff

    Read the whole thing. The example requires 5GB. Go through the posts and I explain how to use them for lower RAM, but I don't guarantee a great performance increase.
     
  7. Saryec

    Saryec Member

    Hmm, I tried to install TickThreading but the server crashes right after started it up.

    Edit: TickThreading isnt really updated for 1.5.2

    Code:
    ---- Minecraft Crash Report ----
    // I just don't know what went wrong :(
     
    Time: 9/13/13 8:19 PM
    Description: Exception in server tick loop
     
    cpw.mods.fml.common.WrongMinecraftVersionException
        at cpw.mods.fml.common.Loader.sortModList(Loader.java:216)
        at cpw.mods.fml.common.Loader.loadMods(Loader.java:486)
        at cpw.mods.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:85)
        at cpw.mods.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:350)
        at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:94)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:586)
        at net.minecraft.server.ThreadMinecraftServer.run(SourceFile:573)
     
     
    A detailed walkthrough of the error, its code path and all known details is as follows:
    ---------------------------------------------------------------------------------------
     
    -- System Details --
    Details:
        Minecraft Version: 1.5.2
        Operating System: Linux (amd64) version 2.6.32-042stab078.28
        Java Version: 1.6.0_27, Sun Microsystems Inc.
        Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Sun Microsystems Inc.
        Memory: 1913505848 bytes (1824 MB) / 2058027008 bytes (1962 MB) up to 2058027008 bytes (1962 MB)
        JVM Flags: 2 total; -Xms2048M -Xmx2048M
        AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
        Suspicious classes: FML and Forge are installed
        IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
        CraftBukkit Information:
      Running:
      Failed to handle CraftCrashReport:
    java.lang.NullPointerException
        at org.bukkit.Bukkit.getName(Bukkit.java:72)
        at org.bukkit.craftbukkit.v1_5_R3.CraftCrashReport.call(CraftCrashReport.java:19)
        at net.minecraft.crash.CrashReportCategory.func_71500_a(CrashReportCategory.java:106)
        at net.minecraft.crash.CrashReport.func_71504_g(CrashReport.java:59)
        at net.minecraft.crash.CrashReport.<init>(CrashReport.java:41)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:642)
        at net.minecraft.server.ThreadMinecraftServer.run(SourceFile:573)
     
        FML: MCP v7.51 FML v5.2.23.738 Minecraft Forge 7.8.1.738 116 mods loaded, 116 mods active
        mcp{7.51} [Minecraft Coder Pack] (minecraft.jar) Unloaded
        FML{5.2.23.738} [Forge Mod Loader] (coremods) Unloaded
        Forge{7.8.1.738} [Minecraft Forge] (coremods) Unloaded
        CoFHFramework{1.5.2.5} [CoFH Framework] (coremods) Unloaded
        CodeChickenCore{0.8.7.3} [CodeChicken Core] (coremods) Unloaded
        NotEnoughItems{1.5.2.28} [Not Enough Items] (coremods) Unloaded
        OmniumCore{Beta-84} [CCM Core] (coremods) Unloaded
        PowerCrystalsCore{1.1.6} [PowerCrystals Core] (coremods) Unloaded
        InfiniBows{1.0.0 build 10} [Infinity Bow Fix] (coremods) Unloaded
        CoFHCore{1.5.2.5} [CoFHCore] (CoFHCore-1.5.2.5.jar) Unloaded
        CoFHWorld{1.5.2.5} [CoFHWorld] (CoFHCore-1.5.2.5.jar) Unloaded
        CreeperCollateral{2.0.3} [CreeperCollateral] (CreeperCollateral-1.5.2-2.0.3.jar) Unloaded
        nucleum_omnium{Beta-84} [Nucleum Omnium] (Nucleum-Omnium-Beta-84.jar) Unloaded
        nucleum_world{Beta-84} [Nucleum World] (Nucleum-Omnium-Beta-84.jar) Unloaded
        denLib{3.0.14} [denLib] (denLib-1.5.2-3.0.14.jar) Unloaded
        AdvancedPowerManagement{1.2.68-IC2-1.115} [Advanced Power Management] (AdvancedPowerManagement-1.2.68.jar) Unloaded
        AdvancedSolarPanel{3.3.7} [Advanced Solar Panels] (AdvancedSolarPanels-3.3.7.zip) Unloaded
        BiblioCraft{1.3.3} [BiblioCraft] (BiblioCraft-1.3.3.zip) Unloaded
        BiblioWoodsBoP{0.1} [BiblioWoods Biomes O'Plenty Edition] (BiblioWoods-BOP-1.0.zip) Unloaded
        BiblioWoodsForestry{0.1} [BiblioWoods Forestry Edition] (BiblioWoods-Forestry-1.0.zip) Unloaded
        BiomesOPlenty{0.5.9.2} [Biomes O' Plenty] (Biomes-O-Plenty-0.5.9.2-1.5.2.jar) Unloaded
        ChargePads{2.7.0} [Charge Pads] (ChargePads-2.7.0.86.jar) Unloaded
        ChickenChunks{1.3.2.14} [ChickenChunks] (ChickenChunks 1.3.2.14.jar) Unloaded
        CCTurtle{1.53} [ComputerCraft Turtles] (ComputerCraft-1.53.zip) Unloaded
        ComputerCraft{1.53} [ComputerCraft] (ComputerCraft-1.53.zip) Unloaded
        DamageIndicatorsMod{2.7.0.1} [Damage Indicators] (DamageIndicators-2.7.0.1.zip) Unloaded
        DartCraft{Beta 0.1.18} [DartCraft] (DartCraft Beta 0.1.18.jar) Unloaded
        DenPipes{2.0.7} [DenPipes] (DenPipes-2.0.7.jar) Unloaded
        DenPipes-Emerald{1.0.2} [DenPipes-Emerald] (DenPipes-Emerald-1.5.2-1.0.2.jar) Unloaded
        DenPipes-Forestry{1.0.4} [DenPipes-Forestry] (DenPipes-Forestry-1.5.2-1.0.4.jar) Unloaded
        EnderStorage{1.4.2.16} [EnderStorage] (EnderStorage 1.4.2.16.jar) Unloaded
        EE3{pre1h (build 16)} [Equivalent Exchange 3] (EquivalentExchange3-pre1h-16.jar) Unloaded
        factorization.misc{0.8.01} [Factorization Miscellaneous Nonsense] (Factorization-0.8.01.jar) Unloaded
        factorization{0.8.01} [Factorization] (Factorization-0.8.01.jar) Unloaded
        factorization.dimensionalSlice{0.8.01} [Factorization Dimensional Slices] (Factorization-0.8.01.jar) Unloaded
        CCMicroblock{1.0.0.114} [Forge Microblocks] (ForgeMultipart-universal-1.5.2-1.0.0.114.jar) Unloaded
        CCMultipart{1.0.0.114} [Forge Multipart] (ForgeMultipart-universal-1.5.2-1.0.0.114.jar) Unloaded
        McMultipart{1.0.0.114} [Minecraft Multipart Plugin] (ForgeMultipart-universal-1.5.2-1.0.0.114.jar) Unloaded
        GateCopy{3.0.2} [GateCopy] (GateCopy-3.0.2.jar) Unloaded
        GraviSuite{1.9.3} [Gravitation Suite] (GraviSuite-1.9.3.zip) Unloaded
        GraviGun{1.5.1} [GraviGun] (GravityGun-1.5.1.zip) Unloaded
        IC2NuclearControl{1.5.1c} [Nuclear Control] (IC2NuclearControl-1.5.1c.zip) Unloaded
        inventorytweaks{1.54b} [Inventory Tweaks] (InventoryTweaks-1.54b.jar) Unloaded
        LogisticsPipes|Main{0.7.3.ftb.631} [Logistics Pipes] (LogisticsPipes-MC1.5.2-0.7.3.ftb.631.jar) Unloaded
        MFFS{3.1.0} [Modular Force Field System] (MFFS_Cal_v3.1.0.175.jar) Unloaded
        PowersuitAddons{0.2.3-165} [Andrew2448's Modular Powersuits Addon] (MPSA-0.2.3-165_MPS-531+.jar) Unloaded
        MineFactoryReloaded{1.5.1R2.6.4} [MineFactory Reloaded] (MineFactoryReloaded-2.6.4-975.jar) Unloaded
        MineFactoryReloaded|CompatAppliedEnergistics{1.5.1R2.6.4} [MFR Compat: Applied Energistics] (MineFactoryReloaded-2.6.4-975.jar) Unloaded
        MineFactoryReloaded|CompatAtum{1.5.1R2.6.4} [MFR Compat: Atum] (MineFactoryReloaded-2.6.4-975.jar) Unloaded
        MineFactoryReloaded|CompatBackTools{1.5.1R2.6.4} [MFR Compat: BackTools] (MineFactoryReloaded-2.6.4-975.jar) Unloaded
        MineFactoryReloaded|CompatBiomesOPlenty{1.5.1R2.6.4} [MFR Compat: Biomes O' Plenty] (MineFactoryReloaded-2.6.4-975.jar) Unloaded
        MineFactoryReloaded|CompatChococraft{1.5.1R2.6.4} [MFR Compat: Chococraft] (MineFactoryReloaded-2.6.4-975.jar) Unloaded
        MineFactoryReloaded|CompatExtraBiomes{1.5.1R2.6.4} [MFR Compat: ExtraBiomes] (MineFactoryReloaded-2.6.4-975.jar) Unloaded
        MineFactoryReloaded|CompatForestry{1.5.1R2.6.4} [MFR Compat: Forestry] (MineFactoryReloaded-2.6.4-975.jar) Unloaded
        MineFactoryReloaded|CompatForestryPre{1.5.1R2.6.4} [MFR Compat: Forestry (2)] (MineFactoryReloaded-2.6.4-975.jar) Unloaded
        MineFactoryReloaded|CompatIC2{1.5.1R2.6.4} [MFR Compat: IC2] (MineFactoryReloaded-2.6.4-975.jar) Unloaded
        MineFactoryReloaded|CompatMagicalCrops{1.5.1R2.6.4} [MFR Compat: Magical Crops] (MineFactoryReloaded-2.6.4-975.jar) Unloaded
        MineFactoryReloaded|CompatMystcraft{1.5.1R2.6.4} [MFR Compat: Mystcraft] (MineFactoryReloaded-2.6.4-975.jar) Unloaded
        MineFactoryReloaded|CompatPams{1.5.1R2.6.4} [MFR Compat: Pam's Mods] (MineFactoryReloaded-2.6.4-975.jar) Unloaded
        MineFactoryReloaded|CompatRP2{1.5.1R2.6.4} [MFR Compat: RP2] (MineFactoryReloaded-2.6.4-975.jar) Unloaded
        MineFactoryReloaded|CompatSoulShards{1.5.1R2.6.4} [MFR Compat: SoulShards] (MineFactoryReloaded-2.6.4-975.jar) Unloaded
        MineFactoryReloaded|CompatSufficientBiomes{1.5.1R2.6.4} [MFR Compat: Sufficient Biomes] (MineFactoryReloaded-2.6.4-975.jar) Unloaded
        MFReloaded|CompatThaumcraft{1.5.1R2.6.4} [MFR Compat: Thaumcraft] (MineFactoryReloaded-2.6.4-975.jar) Unloaded
        MineFactoryReloaded|CompatThermalExpansion{1.5.1R2.6.4} [MFR Compat: Thermal Expansion] (MineFactoryReloaded-2.6.4-975.jar) Unloaded
        MineFactoryReloaded|CompatTwilightForest{1.5.1R2.6.4} [MFR Compat: TwilightForest] (MineFactoryReloaded-2.6.4-975.jar) Unloaded
        MineFactoryReloaded|CompatVanilla{1.5.1R2.6.4} [MFR Compat: Vanilla] (MineFactoryReloaded-2.6.4-975.jar) Unloaded
        MineFactoryReloaded|CompatXyCraft{1.5.1R2.6.4} [MFR Compat: XyCraft] (MineFactoryReloaded-2.6.4-975.jar) Unloaded
        ModularForceFieldSystem{2.3.0.1.28} [Modular ForceField System V2] (ModularForceFieldSystem-2.3.0.1.28.jar) Unloaded
        mmmPowersuits{0.7.0-534} [MachineMuse's Modular Powersuits] (ModularPowersuits-0.7.0-534.jar) Unloaded
        NEIPlugins{1.0.9.3} [NEI Plugins] (NEIPlugins-1.0.9.3.jar) Unloaded
        Natura{2.1.4} [Natura] (Natura_1.5.1_2.1.4.jar) Unloaded
        Natura|CompatMineFactoryReloaded{0.1} [Natura compat: MFR] (Natura_1.5.1_2.1.4.jar) Unloaded
        OmniTools{3.1.6.0} [OmniTools] (OmniTools-3.1.6.0.jar) Unloaded
        OpenPeripheral{0.1.9} [OpenPeripheral] (OpenPeripheral-0.1.9.jar) Unloaded
        PluginsforForestry{3.0.17} [PluginsforForestry] (PluginsforForestry-1.5.2-3.0.17.jar) Unloaded
        PortalGun{1.5.2} [PortalGun] (PortalGun1.5.2.zip) Unloaded
        Railcraft{7.3.0.0} [Railcraft] (Railcraft_1.5.2-7.3.0.0.jar) Unloaded
        SoulShards{1.0.16} [Soul Shards] (SoulShards-1.0.36-universal-srg.jar) Unloaded
        StevesCarts{2.0.0.a122} [Steve's Carts] (StevesCarts2.0.0.a122.zip) Unloaded
        TConstruct|CompatMineFactoryReloaded{0.1} [TConstruct Compat: MFR] (TConstruct_1.5.2_1.4.2.1.jar) Unloaded
        TConstruct{1.5.2_1.4.2.1} [Tinkers' Construct] (TConstruct_1.5.2_1.4.2.1.jar) Unloaded
        Thaumcraft{3.0.5h1} [Thaumcraft] (Thaumcraft3.0.5h.zip) Unloaded
        ThaumicTinkerer{1.0.8} [Thaumic Tinkerer] (Thaumic Tinkerer [1.0.8].zip) Unloaded
        ThermalExpansion{2.4.6.0} [Thermal Expansion] (ThermalExpansion-2.4.6.0.jar) Unloaded
        TickThreading{1.0.0.2104} [TickThreading] (TickThreading.jar) Unloaded
        WR-CBE|Addons{1.4} [WR-CBE Addons] (WR-CBE Addons 1.4.jar) Unloaded
        WR-CBE|Core{1.4} [WR-CBE Core] (WR-CBE Core 1.4.jar) Unloaded
        WR-CBE|Logic{1.4.0.2} [WR-CBE Logic] (WR-CBE Logic 1.4.0.2.jar) Unloaded
        AppliedEnergistics{rv12.a} [Applied Energistics] (appeng-rv12-a-mc15x.zip) Unloaded
        BinnieCore{1.7.0b} [Binnie Core] (binnie-mods-1.7.0b.jar) Unloaded
        ExtraBees{1.7.0b} [Extra Bees] (binnie-mods-1.7.0b.jar) Unloaded
        ExtraTrees{1.7.0b} [Extra Trees] (binnie-mods-1.7.0b.jar) Unloaded
        BuildCraft|Builders{3.7.2} [BC Builders] (buildcraft-A-3.7.2.jar) Unloaded
        BuildCraft|Core{3.7.2} [BuildCraft] (buildcraft-A-3.7.2.jar) Unloaded
        BuildCraft|Energy{3.7.2} [BC Energy] (buildcraft-A-3.7.2.jar) Unloaded
        BuildCraft|Factory{3.7.2} [BC Factory] (buildcraft-A-3.7.2.jar) Unloaded
        BuildCraft|Silicon{3.7.2} [BC Silicon] (buildcraft-A-3.7.2.jar) Unloaded
        BuildCraft|Transport{3.7.2} [BC Transport] (buildcraft-A-3.7.2.jar) Unloaded
        CompactSolars{4.2.0.52} [Compact Solar Arrays] (compactsolars-universal-1.5.2-4.2.0.52.zip) Unloaded
        ExtraUtilities{0.2.4e} [Extra Utilities] (extrautils - 0.2.4f.zip) Unloaded
        flatsigns{1.3.1} [Flat Signs] (flatsigns-1.5.2-universal-1.3.2.14.jar) Unloaded
        Forestry{2.2.8.4} [Forestry for Minecraft] (forestry-A-2.2.8.4.jar) Unloaded
        iChunUtil{1.0.1} [iChunUtil] (iChunUtil-1.0.1.zip) Unloaded
        IC2{1.116.364-lf} [IndustrialCraft 2] (industrialcraft-2_1.116.364-lf.jar) Unloaded
        IronChest{5.2.8.446} [Iron Chest] (ironchest-universal-1.5.2-5.2.8.446.zip) Unloaded
        MagicBees{2.1.1} [Magic Bees] (magicbees-2.1.1.jar) Unloaded
        MiscPeripherals{3.3} [MiscPeripherals] (miscperipherals-3.3e.jar) Unloaded
        Mystcraft{0.10.5.00} [Mystcraft] (mystcraft-uni-1.5.2-0.10.5.00.zip) Unloaded
        NEIAddons{1.8.1.r27} [NEI Addons] (neiaddons-1.5.2-1.8.1.r27.jar) Unloaded
        NEIAddons|AE{1.8.1.r27} [NEI Addons: Applied Energistics] (neiaddons-1.5.2-1.8.1.r27.jar) Unloaded
        NEIAddons|CraftingTables{1.8.1.r27} [NEI Addons: Crafting Tables] (neiaddons-1.5.2-1.8.1.r27.jar) Unloaded
        NEIAddons|ExtraBees{1.8.1.r27} [NEI Addons: Extra Bees] (neiaddons-1.5.2-1.8.1.r27.jar) Unloaded
        NEIAddons|Forestry{1.8.1.r27} [NEI Addons: Forestry] (neiaddons-1.5.2-1.8.1.r27.jar) Unloaded
        NEIAddons|MiscPeripherals{1.8.1.r27} [NEI Addons: Misc Peripherals] (neiaddons-1.5.2-1.8.1.r27.jar) Unloaded
        ObsidiPlates{1.5.0} [Obsidian Pressure Plates] (obsidiplates-1.5.2-universal-1.5.0.13.jar) Unloaded
        TwilightForest{1.18.2} [The Twilight Forest] (twilightforest-1.18.2.zip) Unloaded
        Profiler Position: N/A (disabled)
        Is Modded: Definitely; Server brand changed to 'mcpc,craftbukkit,fml,forge'
        Type: Dedicated Server (map_server.txt)
     
  8. Saryec

    Saryec Member

    Ok, I have put in the tweak setting line, and it works!
    The usage have been lowered.
    Thank you guys! :)
     

Share This Page