Memory clean up for mobs and entities does not seem to occur.
name tag a mob (or spawn a unique mob of any type). execute the following command
- /tp @s ~+1000 ~ ~+1000
- Wait for several minutes or hours at that location.
- run the following command:
/execute @e [name="nametagedname"] ~~~ say hi
You get a red message saying "No targets matched selector"
Jim says "hi."
The root issue is that over time CPU and RAM usage creep up over time causing large amounts of lag on busy servers. Right now this causes a forced reboot of the BDS software frequently to empty the memory.
This may be reduced with mob despawning however it still is a memory leak that causes things to go way up over time. In small quantities it is not a problem, however with a world spawning thousands of blocks and has many players, this becomes a major issue.