Jump to content

Cpu Lag Spikes


34486

Recommended Posts

Minecraft Forge version  12.18.3.2185  (RECOMMENDED) on server side, seems to lag as I add more mods to it.

With little to no mods, it does not lag as much, but as I add more mods the spiking gets worse. It has about a 1.5 second delay when I run (Not play on) the server! 

I also try other versions of forge, same issue.

Computer Specs: I5 4690k Overclocked to 4.27 Ghz and it runs nice n' cool with fairly low voltage, about 100-105*F.  I also have 14 GB of DDR3 Ram. Asus Maximuss VII Hero. 

 

I used to run 8 other regular bukkit/spigot and vanilla servers, It worked all fine and when at idle, 1.5% CPU usage as if they didn't exist. I now wish to host a modded server.

Now, Here is an Image with client running, server and this webpage along with speed fan so I can see my temps.

Note: I am just about unable to use the console window or the one that is open in CMD. I have set the priority to high on all 4 cores and it didn't help. I am running around 1200 ticks behind. :/

Note: I run the SAME world in single player with the same mods n' all, and I get NO lag what so ever.

 

Here is a picture of Cpu usage.

 

Now with none of the mods, 

Now with no mods, and client is not running. . . (Spike was from snipping tool)

Now without the server or client running...

 

One last time, Something is wrong with the versions of forge (1.10) idk about 1.11 but they have this lag spike issue, and with more mods it just gets worse!! I have about 73 mods! I used to be able to run 212 with my old pack on 1.7, and when I wasnt playing or anything it would idle at about 15% cpu usage, so whats up here? 

The world is not causing the problem, because it works fine on the client while playing, but on the server, no. With a fresh world on the server, same issue.

 

A while ago I tested to see if it was one particular mod, but I failed because I tested all of them individually (with their respective core mods) 

 

Anybody able to help out here??? (Also, I don't have the /timings command, thought that was built in though but whatever)

Img1all.PNG

img2none.PNG

noclient.PNG

nothinboi.PNG

Gregtech FOR THE WIN! (I miss GT from 1.4)

Link to comment
Share on other sites

Since I am on my Windows 10 PC tablet, The small buttons like edit do not work. :(

I try running the forge server on this tablet, and it had the same issue, so It can't be a cpu compatibility problem like there used to be back in 1.2 or something with Xeons. 

Gregtech FOR THE WIN! (I miss GT from 1.4)

Link to comment
Share on other sites

The java process(app)is using all of the cpu right? I don't know your problem, but something is up... restarting your pc doesn't help?

Apparently I'm addicted to these forums and can't help but read all the posts. So if I somehow help you, please click the "Like This" button, it helps.

Link to comment
Share on other sites

Yea. I try every version of forge that works with my pack. They have PLENTY of information here to look at and try to even guess, if not, have a solution. I have now updated java, still, no fix. Updated all drivers. No. Fix. 

Gregtech FOR THE WIN! (I miss GT from 1.4)

Link to comment
Share on other sites

For the server, Its -Xmx6g -Xms6g along with the client. 6 Gb of ram for the server, but without mods, it still lags, withthe spike too but as I add more it spikes constantly more and the lag intensifies... :( 

Gregtech FOR THE WIN! (I miss GT from 1.4)

Link to comment
Share on other sites

Must be a bug with forge itself. I wonder if anyone else has this problem? If so, then problem must be forge's.

 

EDIT: Do you have any log output?

Edited by Leomelonseeds

Apparently I'm addicted to these forums and can't help but read all the posts. So if I somehow help you, please click the "Like This" button, it helps.

Link to comment
Share on other sites

1 hour ago, diesieben07 said:

Please post the complete JVM arguments.

 

8 hours ago, Leomelonseeds said:

Must be a bug with forge itself. I wonder if anyone else has this problem? If so, then problem must be forge's.

 

EDIT: Do you have any log output?

 

 

There is no errors in console accept for the can't keep up one..

 

And here are your JVM Arguments for the server, which is the only lagy thing on it or not on it. 

 

title HHSModded - Console - 1.10.2
E:
cd Servers
cd HHS10Modded
cls
java -Xmx6G -Xms6G -jar Forge.jar -o true
pause;

 

Thats it. "-Xmx6g -Xms6g" for the ram amount. I tried with -o true and without it, no change. 

Gregtech FOR THE WIN! (I miss GT from 1.4)

Link to comment
Share on other sites

On 4/17/2017 at 10:34 AM, diesieben07 said:

And you 100% sure that it's the server lagging, not the client?

I am 101% sure that this is server lagg. As I show in one of the pictures, or two I forget but the client is closed, with the server running, causing the lag spikes. (And terrible TPS I would assume, because it can take about 5 seconds to open an interface) 

Gregtech FOR THE WIN! (I miss GT from 1.4)

Link to comment
Share on other sites

17 minutes ago, diesieben07 said:

Next step would be to use a profiler (VisualVM is free) to see what is taking up all the CPU.

I'll try that.

I looked in Task Manager, and it said the server "Javac . . . " or something similar to that was taking up the usage, I set it to two cores and then the two cores (1 and 2) were maxed, stopped server, no longer maxed. 

Gregtech FOR THE WIN! (I miss GT from 1.4)

Link to comment
Share on other sites

10 minutes ago, MoeBoy76 said:

i would first try using -noguii to disable the server GUI

Alright I will try that too. I was looking how to disable that anyways, thanks! 

 

EDIT: Worked! That was something I guessed would be last resort, and well, disabling the UI helped a lot! Thanks! Wonder why it was like that, probably trying to live update the ram/tps information. 

Hey, Also the VisualVM Program will come in handy someday, Thanks again! :) #lyfesaverz

 

Edited by 34486
Saying thx m8!

Gregtech FOR THE WIN! (I miss GT from 1.4)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • They were already updated, and just to double check I even did a cleanup and fresh update from that same page. I'm quite sure drivers are not the problem here. 
    • i tried downloading the drivers but it says no AMD graphics hardware has been detected    
    • Update your AMD/ATI drivers - get the drivers from their website - do not update via system  
    • As the title says i keep on crashing on forge 1.20.1 even without any mods downloaded, i have the latest drivers (nvidia) and vanilla minecraft works perfectly fine for me logs: https://pastebin.com/5UR01yG9
    • Hello everyone, I'm making this post to seek help for my modded block, It's a special block called FrozenBlock supposed to take the place of an old block, then after a set amount of ticks, it's supposed to revert its Block State, Entity, data... to the old block like this :  The problem I have is that the system breaks when handling multi blocks (I tried some fix but none of them worked) :  The bug I have identified is that the function "setOldBlockFields" in the item's "setFrozenBlock" function gets called once for the 1st block of multiblock getting frozen (as it should), but gets called a second time BEFORE creating the first FrozenBlock with the data of the 1st block, hence giving the same data to the two FrozenBlock :   Old Block Fields set BlockState : Block{minecraft:black_bed}[facing=east,occupied=false,part=head] BlockEntity : net.minecraft.world.level.block.entity.BedBlockEntity@73681674 BlockEntityData : id:"minecraft:bed",x:3,y:-60,z:-6} Old Block Fields set BlockState : Block{minecraft:black_bed}[facing=east,occupied=false,part=foot] BlockEntity : net.minecraft.world.level.block.entity.BedBlockEntity@6d1aa3da BlockEntityData : {id:"minecraft:bed",x:2,y:-60,z:-6} Frozen Block Entity set BlockState : Block{minecraft:black_bed}[facing=east,occupied=false,part=foot] BlockPos{x=3, y=-60, z=-6} BlockEntity : net.minecraft.world.level.block.entity.BedBlockEntity@6d1aa3da BlockEntityData : {id:"minecraft:bed",x:2,y:-60,z:-6} Frozen Block Entity set BlockState : Block{minecraft:black_bed}[facing=east,occupied=false,part=foot] BlockPos{x=2, y=-60, z=-6} BlockEntity : net.minecraft.world.level.block.entity.BedBlockEntity@6d1aa3da BlockEntityData : {id:"minecraft:bed",x:2,y:-60,z:-6} here is the code inside my custom "freeze" item :    @Override     public @NotNull InteractionResult useOn(@NotNull UseOnContext pContext) {         if (!pContext.getLevel().isClientSide() && pContext.getHand() == InteractionHand.MAIN_HAND) {             BlockPos blockPos = pContext.getClickedPos();             BlockPos secondBlockPos = getMultiblockPos(blockPos, pContext.getLevel().getBlockState(blockPos));             if (secondBlockPos != null) {                 createFrozenBlock(pContext, secondBlockPos);             }             createFrozenBlock(pContext, blockPos);             return InteractionResult.SUCCESS;         }         return super.useOn(pContext);     }     public static void createFrozenBlock(UseOnContext pContext, BlockPos blockPos) {         BlockState oldState = pContext.getLevel().getBlockState(blockPos);         BlockEntity oldBlockEntity = oldState.hasBlockEntity() ? pContext.getLevel().getBlockEntity(blockPos) : null;         CompoundTag oldBlockEntityData = oldState.hasBlockEntity() ? oldBlockEntity.serializeNBT() : null;         if (oldBlockEntity != null) {             pContext.getLevel().removeBlockEntity(blockPos);         }         BlockState FrozenBlock = setFrozenBlock(oldState, oldBlockEntity, oldBlockEntityData);         pContext.getLevel().setBlockAndUpdate(blockPos, FrozenBlock);     }     public static BlockState setFrozenBlock(BlockState blockState, @Nullable BlockEntity blockEntity, @Nullable CompoundTag blockEntityData) {         BlockState FrozenBlock = BlockRegister.FROZEN_BLOCK.get().defaultBlockState();         ((FrozenBlock) FrozenBlock.getBlock()).setOldBlockFields(blockState, blockEntity, blockEntityData);         return FrozenBlock;     }  
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.