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

Increased memory usage when loading old chunks #7094

Closed
pop4959 opened this issue Dec 12, 2021 · 3 comments · Fixed by #7097
Closed

Increased memory usage when loading old chunks #7094

pop4959 opened this issue Dec 12, 2021 · 3 comments · Fixed by #7097
Labels
priority: high This issue is either a gamebreaking bug or crash and needs to be addressed soon. status: accepted Disputed bug is accepted as valid or Feature accepted as desired to be added. type: performance upstream: vanilla Issue exists in vanilla Minecraft. version: 1.18 Game version 1.18

Comments

@pop4959
Copy link
Member

pop4959 commented Dec 12, 2021

Timings or Profile link

N/A

Description of issue

For chunks generated in the latest version of Paper-1.17.1-399 and subsequently loaded using Paper-1.18.1-69, memory usage rapidly increases until the server crashes. This only happens the first time these chunks are loaded.

It is possible to reproduce this issue easily without any plugins installed, but it occurs much more quickly when using a plugin to load the chunks.

To reproduce (without any plugins):

  • Create a world in 1.17.1 and generate some chunks. For my testing I loaded between -1000, -1000 and 1000, 1000.
  • Load the world in 1.18.1 and get in-game. Using spectator mode, fly through all of the chunks.
  • Memory usage increases until the server crashes. This will happen after just a few minutes with a 4GB heap allocated.

It's also convenient to have the server GUI open to view the memory graph as this is occurring:

40a3bc6a-3c94-4cef-9d13-8f2e96b63706

Plugin and Datapack List

> plugins
[18:22:25 INFO]: Plugins (0):
> datapack list
[18:22:33 INFO]: There are 2 data packs enabled: [vanilla (built-in)], [file/bukkit (world)]
[18:22:33 INFO]: There are no more data packs available

Server config files

Default configuration for everything, except for level-seed (mentioned below).

Paper version

> version
[18:26:18 INFO]: Checking version, please wait...
[18:26:19 INFO]: This server is running Paper version git-Paper-69 (MC: 1.18.1) (Implementing API version 1.18.1-R0.1-SNAPSHOT) (Git: 29bd57b)
You are running the latest version
Previous version: git-Paper-68 (MC: 1.18.1)

Other

Used level-seed=8190275241236263855 for consistent results while testing.

@electronicboy
Copy link
Member

electronicboy commented Dec 12, 2021 via email

@Uharn
Copy link

Uharn commented Dec 12, 2021

i've been trying to alert the community for days about that issue! so YEAH i can confirm it!

@kennytv kennytv added priority: high This issue is either a gamebreaking bug or crash and needs to be addressed soon. version: 1.18 Game version 1.18 and removed status: needs triage labels Dec 12, 2021
@jpenilla jpenilla added the upstream: vanilla Issue exists in vanilla Minecraft. label Dec 12, 2021
@Chew Chew added the status: accepted Disputed bug is accepted as valid or Feature accepted as desired to be added. label Dec 13, 2021
@KaspianDev
Copy link

fixed in 22w03a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: high This issue is either a gamebreaking bug or crash and needs to be addressed soon. status: accepted Disputed bug is accepted as valid or Feature accepted as desired to be added. type: performance upstream: vanilla Issue exists in vanilla Minecraft. version: 1.18 Game version 1.18
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants