mirror of
https://github.com/evennia/evennia.git
synced 2026-03-20 23:06:31 +01:00
Added settings.IDMAPPER_CACHE_MAXSIZE and a new default global script to check if the cache should be flushed. Tested with dummyrunner to maintain the memory usage at a much more stable level.
This commit is contained in:
parent
f2c75bd0f6
commit
4e14f46d54
2 changed files with 15 additions and 8 deletions
|
|
@ -54,7 +54,7 @@ if __name__ == "__main__":
|
|||
|
||||
fig = pp.figure()
|
||||
ax1 = fig.add_subplot(111)
|
||||
ax1.set_title("Memory usage (200 bots, auto-flush at RMEM ~ 200MB)")
|
||||
ax1.set_title("200 bots, ~400 obj/min, IDMAPPER_CACHE_MAXSIZE=200")
|
||||
ax1.set_xlabel("Time (mins)")
|
||||
ax1.set_ylabel("Memory usage (MB)")
|
||||
ax1.plot(secs, rmem, "r", label="RMEM", lw=2)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue