delvr / Farseek

A Scala API for Minecraft mods.
https://minecraft.curseforge.com/projects/farseek
20 stars 4 forks source link

[1.7.10] GC Crash when using pregen #18

Open Zethalion opened 7 years ago

Zethalion commented 7 years ago

Server crash: http://pastebin.com/MjebXSuH

The good folks of FE told me to drop unused mods but I consider yours as essential :)

delvr commented 7 years ago

Farseek/Streams does consume a lot of memory and even more so with pregen (if that mod does what I think it does) and I've been looking at possible leaks as per https://github.com/delvr/Farseek/issues/8. Meanwhile the best you could do is increase memory (google "minecraft GC overhead limit exceeded").

Zethalion commented 7 years ago

Thanks for replying. This crash did happen with -Xms20G -Xmx20G -XX:+UseG1GC while having 24 GB RAM, I can't increase it any further. When pregen is not running and world is generated by flying around, the jvm only use about 6 GB max before a full gc runs. I can only guess generated objects survive too long before being destructed.

delvr commented 7 years ago

8 was recently fixed - could you verify if that fix resolves this issue as well? Thanks!

Zethalion commented 7 years ago

I will look into it this week.

delvr commented 7 years ago

Hi Zethalion, were you able to confirm if this still occurs? There's a new Streams 0.3 update that might also have helped.

If this still occurs, could you provide more details on which pregen tool and commands you were using?

Note that this might be related to another pre-gen issue: https://github.com/delvr/Streams/issues/24

Zethalion commented 7 years ago

I haven't been using pregen recently but I'll give it a go soon.

The pregen tool I use is integrated in ForgeEssentials. I tried other pregen tools but FE is compatible with nearly every mod.

I use it setting a worldborder and then pregen the dimension.