GregTech CE Unofficial

GregTech CE Unofficial

620k Downloads

Large amounts of memory being taken up by long[]s of CachedGridEntry.CachedChunkData on servers

bruberu opened this issue ยท 0 comments

commented

GregTech CEu Version

v2.8.10

Modpack Used

Supersymmetry v0.1.14 beta (similar to v0.1.13.6)

Addons Installed

SuSyCore v0.1.42

Environment

Forge Server

New Worlds

Yes

Cross-Mod Interaction

Unsure

Expected Behavior

Exploring the world in a server (in multiple dimensions) would not create large amounts of long (haha) long[]s that were referred to by CachedGridEntry.CachedChunkData that would stick around in memory.

Actual Behavior

Here is an actual example of a heap dump generated from one of these:
https://drive.google.com/file/d/1dMmioS3zh8X-yzCa35Cfi3Y_lM7vfqQ-/view?usp=drive_link

Note that most memory is taken up by long[]s, and halfway down, we start seeing these:
Image

Steps to Reproduce

Load a Supersymmetry server (maybe a client instance)
Move around a while
Perform heap dump
Analyze using VisualVM

Additional Information

This may require a refactor of world generation, which already was in need of one.