JayCeeCreates/earlygame

RAM consumption high on server

Opened this issue · 26 comments

java.lang.NoSuchMethodError: net.minecraft.class_1856.method_8105()[Lnet/minecraft/class_1799;
at jayceecreates.earlygame.utils.RecipeRemover.lambda$removePlankRecipes$3(RecipeRemover.java:86) ~[earlygame-1.16.x-1.0.1.jar:?]
at jayceecreates.earlygame.utils.RecipeRemover.lambda$removeRecipes$4(RecipeRemover.java:121) ~[earlygame-1.16.x-1.0.1.jar:?]
at java.util.stream.ReferencePipeline$2$1.accept(Unknown Source) ~[?:1.8.0_281]
at java.util.Spliterators$ArraySpliterator.forEachRemaining(Unknown Source) ~[?:1.8.0_281]
at java.util.stream.AbstractPipeline.copyInto(Unknown Source) ~[?:1.8.0_281]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source) ~[?:1.8.0_281]
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Unknown Source) ~[?:1.8.0_281]
at java.util.stream.AbstractPipeline.evaluate(Unknown Source) ~[?:1.8.0_281]
at java.util.stream.ReferencePipeline.collect(Unknown Source) ~[?:1.8.0_281]
at jayceecreates.earlygame.utils.RecipeRemover.lambda$removeRecipes$5(RecipeRemover.java:122) ~[earlygame-1.16.x-1.0.1.jar:?]
at com.google.common.collect.RegularImmutableMap.forEach(RegularImmutableMap.java:146) ~[fabric-server-launch.jar:?]
at jayceecreates.earlygame.utils.RecipeRemover.removeRecipes(RecipeRemover.java:117) ~[earlygame-1.16.x-1.0.1.jar:?]
at jayceecreates.earlygame.utils.RecipeRemover.removePlankRecipes(RecipeRemover.java:83) ~[earlygame-1.16.x-1.0.1.jar:?]
at jayceecreates.earlygame.utils.RecipeRemover.lambda$removeRecipe$0(RecipeRemover.java:39) ~[earlygame-1.16.x-1.0.1.jar:?]
at net.fabricmc.fabric.api.event.lifecycle.v1.ServerLifecycleEvents.lambda$static$2(ServerLifecycleEvents.java:48) ~[872199d5-c25b-4680-8a0e-3157f774f8bc.jar:?]
at net.minecraft.server.MinecraftServer.handler$cbd000$afterSetupServer(MinecraftServer.java:6243) ~[intermediary-server.jar:?]
at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:651) ~[intermediary-server.jar:?]
at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:257) ~[intermediary-server.jar:?]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_281]

works fine on client

YA BE

This is a big concern right there. I'll get into it-

Any progress on this? I really want to use this in an SMP with a friend but it crashes on the server as stated here

Quoted from @Merith-TK:
Any progress on this? I really want to use this in an SMP with a friend but it crashes on the server as stated here

Hello! Thanks for following up on this issue!

Fret not, for this fix is already done. You can download the mod from here. Lemme know if you have any further inquiries, and I'll reopen the issue.
https://github.com/JayCeeCreates/earlygame/releases/tag/1.16.x-1.0.2

EDIT: Updated the link

I saw "fix was already done" in my notifications and immediately went "Oh cool! Time to build from source!"

But an official release that fixes it! Hell yes!

Quoted from @Merith-TK:
"Oh cool! Time to build from source!"

You need not build from source, for a binary is provided every release. You're welcome. :D

Yeah new issue
It eats all the ram on the server

Oof, I'll look into it-

image
@Merith-TK something like this?

Care to share how it consumes a lot of RAM? @Merith-TK

This is server-side only, I launch th server, and then at world Gen (or some startup near world Gen) the ram starts increasing in usage. Almost like a fork bomb or something.
The server usually runs at about 1.5-2gb ram idle,

With earlygame, it starts consuming more and more ram, going to 2.5, to 2.7, tp 3.2, 4, 5.4 (here is where j have to hardkill my entire server by manually pulling the plug because of a kernel panic from running out of ram.

https://cdn.merith.tk/assets/smp-boop-mekrath.zip

This is the server with the server.jar, fabric.jar,the mods, and configs. The earlygame mod is within the disabled folder inside of the mods folder

Sorry I took a long time! I had to really focus on college and stuff so I had to take a break on modding ;;

Anyway, care to share the file again? Seems to have been deleted-

Thank you! Gonna look into it-

image
Does something like this happen to you or something? @Merith-TK

Yes, but after the third spike it just CONSUMES ALL THE RAM, like Kirby at an all you can eat buffet

I actually left the server running and it doesn't seem to crash on me...

Probably from multiple players? Because right now I tested it on just one instance?

I launched it normally like an executable so I assume anything default? I have like 16 gigs

Tried with and without the mod installed, I kinda barely don't see any difference at all? 🤔

Odd... what the fuck?

I have no clue why

set the server with these args
java -Xms1024M -Xmx3072M -jar fabric-server.jar

Check if the ram usage (using task manager) peaks over 4gb
the menu that shows up has a tendency of reporting falsely due to not polling often enough

This is the result 🤔
image
It goes like above 2GB.

and woah did this happen to you?
image