Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-86108

Memory increases, doesn't decrease with high entity count

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Awaiting Response
    • None
    • Minecraft 1.8.8
    • None
    • Windows 8.1 JVM 1.8 x84
    • Unconfirmed

      Just upgraded v1.7.9 world to 1.8.8. Increased memory allocation to min/max = 1.5G/2G out of 8 total. System is not maxed on memory. I have a farm/village where about 800 entities are active at any one time. Start game facing animals or villagers and just leave it. Memory usage gradually goes up to max with no other activity at all. Seems like GC isn't kicking in.

      Sure, I'm not moving from the entities so why would it GC? But if it starts and only consumes 1.5G, why does it go up gradually? If it needs the memory wouldn't it allocate as soon as the entity objects instantiate?

      The log shows "Memory: 130691400 bytes (124 MB) / 2121269248 bytes (2023 MB)" That's not right. The F3 mode shows memory usage gradually increasing in percentage up to 100% then lag starts. Could be that the memory usage was captured after crash for log as memory was being released. Windows also shows gradual memory usage.

      Unusually high villager count is an experiment in breeding gone wild.

      This is similar to when v1.7.10 came out and everyone complained about lag.

      As memory us used the common "Can't keep up" messages display. That starts even at 20+% memory consumption. This is a fast system, I don't expect timing issues.

      I started with lower memory but increased it when I was getting those messages and lagging - it just makes it take longer to lag.

      Reducing view distance to 5 doesn't help. Moving into the nether doesn't help, memory pegs at max and stays there.

      Moving from the high population area to an area with less than 100 entities does not help. Memory usage continues to go up. That might be due to simple chunk loading but that doesn't seem right when I'm underground and can't see the chunks anyway.

      I can probably avoid this problem by reducing the population or moving to a different area. But is that really the right answer? Do we expect this given the data? If not, I have a 100% reproducible environment here that I'll be happy to share with Support.

      Sorry if this is a duplicate report, I looked, didn't see anything recent that looked exactly like this.

            Unassigned Unassigned
            CaptainStarbuck CaptainStarbuck
            Votes:
            3 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: