talamortis / OregonCore

World of Warcraft 2.4.3 Server Emulator
GNU General Public License v2.0
69 stars 51 forks source link

Huge Memory Leak #246

Closed PadreWoW closed 3 years ago

PadreWoW commented 3 years ago

Describe the bug Huge Memory Leak 1,5Gb Ram every 8 hours (4-7 players)

To Reproduce Steps to reproduce the behavior: Just start the core and add 4-7 players After 1 day there will be about 4Gb Ram consumed

Branch master

Eluna

HASH/COMMIT: https://github.com/talamortis/OregonCore/commit/cb0b1e3b0eaa0c079a6ef77a348127284a1703fe

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/97843335-huge-memory-leak?utm_campaign=plugin&utm_content=tracker%2F91676571&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F91676571&utm_medium=issues&utm_source=github).
PadreWoW commented 3 years ago

Problem in GridUnload = 0 I'm shure 100%

With GridUnload = 1 there are leak about 40-50MB RAM per hour and with GridUnload = 0 leak about 300-500MB RAM per hour

milestorme commented 3 years ago

Grid unload 0 allows all maps to stay loaded so you will see memory rise to an extent , as it is not unloading any maps , it should level out once all maps are loaded , I was unable to keep the server up long enough to test due to random crashes with 6-8 player .

talamortis commented 3 years ago

Looks like the issue is todo with stairs of destiny event

talamortis commented 3 years ago

hopefully fixed in https://github.com/talamortis/OregonCore/commit/ad9bf61eb45a4905de88e69b3558e82b19d124fa

Will close issue please comment if still happens then will re-open