BIMserver icon indicating copy to clipboard operation
BIMserver copied to clipboard

Another memory leak)

Open PavelWhiteTiger opened this issue 1 year ago • 2 comments

Image

PavelWhiteTiger avatar Feb 04 '25 13:02 PavelWhiteTiger

Image

PavelWhiteTiger avatar Feb 04 '25 13:02 PavelWhiteTiger

Service maps are cached because there are many of them created otherwise and they use less memory this way, accepting that GC cannot kick in then. Authorizations are cached to save CPU otherwise spent on cryptography. You are right, there is no cache eviction whatsoever on these two caches. See #884 for the logout considerations.

There is no priority on optimization currently. I put this on the backlog. Also, GeometryAccellerator would need cache eviction implemented - there is a TODO in the code. The only cache that is cleaned up regularly (CompareCache) is apparently not used and could be removed. Meanwhile, you may periodically restart the server or when using BIMserver as an embedded server, you can clear the caches to your liking.

hlg avatar Feb 07 '25 16:02 hlg