Closed puhnastik closed 3 years ago
Thank you so much for the best bug report I've ever received in my many years of doing OSS on GitHub!!!!
Thanks for picking this up and turning it around so quickly @madskristensen! We plan on picking up the fix and verifying it in our DEV environment tomorrow.
Thanks!
Just confirming that the fix looks good in both our DEV and PERF environments @madskristensen. Sorry for late reply (I was out for few days) and thanks for quick fix here!
@mshiveral awesome, thanks for the follow-up!!!
We are observing memory leak in WebOptimizer code. Memory usage graphs with WebOptimizer in place starting from 04/17 show significant increase in memory that doesn't get released and application eventually runs out of memory.
I can reproduce the same issue on WebOptimizer demo sample
Steps to reproduce:
The snapshot from dotMemory profiler shows increasing number of WebOptimizerConfig objects that don't get garbage collected. There is one new WebOptimizerConfig object get's created for each call to static content file.
The issue seems to be in the ConfigurationReloadToken that doesn't get disposed (link to the code)[https://github.com/ligershark/WebOptimizer/blob/master/src/WebOptimizer.Core/WebOptimizerConfig.cs#L24]
Attached dotMemory workspace for the demo sample WebOptimizer.Core.Sample.dmw.zip