Skip to content

Weird memory usage #693

Open
Open
@Cheezer1656

Description

@Cheezer1656

Valence Version

commit 2e4bc6e04db1f56a694498af5d38681405ff03e8

What You Did

Method 1:

  1. Start bench_players example
  2. Use stresser on the bench_players server with 1000 players
  3. Quit stresser

What Went Wrong

The memory usage of bench_players should have went back to around the same level as when it first started, but it does not. At startup, bench_players used a bit less than 19 MiB of memory. After all the stresser players connected, it used 300 MiB. When I quit the stresser, the bench_players process still uses 300 MiB of memory.

Additional Information

  • The player count printed by bench_players is accurate
  • This works if you use a regular Minecraft client and just rejoin a bunch of times, but it's really slow so I didn't test much (I might be wrong about this one)
  • Subsequent player joins seems to have a decreasing effect on the memory usage (But the memory still doesn't go down after quitting)
  • Happens in both debug and release builds

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageBug has not been confirmed as real issue yet

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions