Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RAM consumption high on server #19

Open
PalgamingHD opened this issue Mar 23, 2021 · 26 comments
Open

RAM consumption high on server #19

PalgamingHD opened this issue Mar 23, 2021 · 26 comments
Assignees
Labels
bug There is something in the code that does not work properly.

Comments

@PalgamingHD
Copy link

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]

@PalgamingHD
Copy link
Author

works fine on client

@JayCeeCreates JayCeeCreates self-assigned this Mar 25, 2021
@JayCeeCreates JayCeeCreates added bug There is something in the code that does not work properly. priority Prioritized because it is causing a major issue. labels Mar 25, 2021
@JayCeeCreates
Copy link
Owner

YA BE

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

@Merith-TK
Copy link

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

@JayCeeCreates
Copy link
Owner

JayCeeCreates commented Apr 3, 2021

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

@JayCeeCreates
Copy link
Owner

EDIT: Updated the link

@Merith-TK
Copy 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!

@JayCeeCreates
Copy link
Owner

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

@Merith-TK
Copy link

Yeah new issue
It eats all the ram on the server

@JayCeeCreates
Copy link
Owner

Oof, I'll look into it-

@JayCeeCreates JayCeeCreates reopened this Apr 4, 2021
@JayCeeCreates JayCeeCreates changed the title Crash when running mod on Server RAM consumption high on server Apr 4, 2021
@JayCeeCreates
Copy link
Owner

image
@Merith-TK something like this?

@JayCeeCreates JayCeeCreates added the question Further information is requested. label Apr 4, 2021
@JayCeeCreates
Copy link
Owner

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

@Merith-TK
Copy link

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

@Merith-TK
Copy link

Merith-TK commented Apr 9, 2021 via email

@JayCeeCreates JayCeeCreates removed the question Further information is requested. label May 10, 2021
@JayCeeCreates
Copy link
Owner

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-

@Merith-TK
Copy link

Merith-TK commented May 10, 2021 via email

@JayCeeCreates
Copy link
Owner

Thank you! Gonna look into it-

@JayCeeCreates
Copy link
Owner

JayCeeCreates commented May 10, 2021

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

@Merith-TK
Copy link

Merith-TK commented May 10, 2021

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

@JayCeeCreates
Copy link
Owner

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?

@Merith-TK
Copy link

Merith-TK commented May 10, 2021 via email

@JayCeeCreates
Copy link
Owner

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

@JayCeeCreates
Copy link
Owner

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

@JayCeeCreates JayCeeCreates removed the priority Prioritized because it is causing a major issue. label May 10, 2021
@Merith-TK
Copy link

Odd... what the fuck?

@Merith-TK
Copy link

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

@JayCeeCreates
Copy link
Owner

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

@JayCeeCreates
Copy link
Owner

and woah did this happen to you?
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug There is something in the code that does not work properly.
Projects
None yet
Development

No branches or pull requests

3 participants