Hello All,
I am seeing a slow memory leak occurring in RavenDB 2908. After a couple of days the memory builds until the server runs out of memory (16 GB available).
There are lots of tenant databases that are loaded and unloaded on demand. But the memory is not fully released afterwards.
I recently restarted RavenDB and at the end of the day it is now using over 2GB when there is only two very small databases loaded.
From the Admin Stats endpoint:
Memory
Database Cache Size In MB: 240.58
Managed Memory Size In MB: 1786.24
Total Process Memory Size In MB: 2197.27
Where there is only two databases loaded:
Single Tenant (17.74 MBytes)
System database (1.01 MBytes)
When I analysed a dump with DebugDiag and it shows that the vast majority of the Heap is taken up by System.LocalDataStoreElement[]
The server is running on Windows Server 2008 R2.