GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — High RAM usage when 10,000 entities are loaded. · Issue #441 · feather-rs/feather

High RAM usage when 10,000 entities are loaded. #441

New issue
Copy link
New issue
Copy link
Open
Open
High RAM usage when 10,000 entities are loaded.#441
Copy link

Description

@ELginas
ELginas
opened on Jul 3, 2021
Issue body actions

Description

Feather uses way too much RAM for handling entities. When spawning 10 000 piglin brutes 1 in between each other, game uses 2 GB+ RAM and usage changes rapidly. RAM spike only happens when you are connected to the server.

Reproduction Steps

  1. Modify query_entities plugin so that piglin brutes spawn every 1 block instead of every 12 blocks.
  2. Add modified query_entities plugin
  3. Launch feather server
  4. Login to feather server and see RAM go up A LOT

What You Expected to Happen

I expected maybe increased CPU usage when joining server with a lot of entities and I also expected RAM to go up slightly because of loaded chunks.

What Actually Happened

After I joined the server CPU usage went up by 20% and RAM usage went up by ~2 GB and fluctuated uncontrollably (by about ~400 MB every second).

Screenshots and Logs

Your Environment

  • Operating System: Windows 10
  • Operating System Version: 21H1
  • Feather Version: latest

Additional Context

System RAM: 8 GB
Minecraft client: Lunar
View distance: 8 chunks (but Lunar tends to load chunks more slowly to maintain good FPS)

When no one is on the server, CPU usage stays around ~20% and RAM usage is ~6 MB.
Also when I joined server, my CPU reached 100% and server printed Tick took too long once in a while and my RAM stayed around ~95% usage.

Activity

  1. ambeeeeee
    changed the title [-]Insanely large RAM usage when spawning a lot of entities[/-] [+]High RAM usage when 10,000 entities are loaded.[/+] on Jul 3, 2021
  2. ambeeeeee commented on Jul 4, 2021

    @ambeeeeee
    ambeeeeee
    on Jul 4, 2021
    Contributor
    More actions

    Can't reproduce, this might be an issue with debug mode or something. (Or maybe I did something wrong hehe)

    image

    Ignore CPU usage that's just because I have a garbage CPU right now.

    Memory Usage Information (Generated with VMMap

    As shown by the above, it only got to 100-80 MB of memory use.

  3. ELginas commented on Jul 4, 2021

    @ELginas
    ELginas
    on Jul 4, 2021
    Author
    More actions

    I tried with Vanilla 1.16.4 client, RAM and CPU still rises by a lot, but RAM usage is lower because client is having hard time loading chunks and handling entities. Also, did you join the server once you started the server? Added plugin for testing.
    query-entities.zip

  4. caelunshun commented on Jul 4, 2021

    @caelunshun
    caelunshun
    on Jul 4, 2021
    Member
    More actions

    I tried with Vanilla 1.16.4 client, RAM and CPU still rises by a lot, but RAM usage is lower because client is having hard time loading chunks and handling entities. Also, did you join the server once you started the server? Added plugin for testing.
    query-entities.zip

    Are you measuring the RAM usage of the server itself or on your whole system? It makes sense for the client to use that much RAM with 10,000 entities, and the "fluctuating" pattern sounds like the Java GC.

  5. ELginas commented on Jul 4, 2021

    @ELginas
    ELginas
    on Jul 4, 2021
    Author
    More actions

    No, I'm talking about the Feather server. Of course client will have awful time near 10,000 entities😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.