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

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

Open
bruberu opened this issue Jan 18, 2025 · 0 comments
Labels
status: unverified Issue is unverified

Comments

@bruberu
Copy link
Member

bruberu commented Jan 18, 2025

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.

@bruberu bruberu added the status: unverified Issue is unverified label Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: unverified Issue is unverified
Projects
None yet
Development

No branches or pull requests

1 participant