OrchardCore
OrchardCore copied to clipboard
Sitemap - memory allocation
Describe the bug
Sitemaps with over 20.000 items consume too much memory and do not release it. We have currently added few more content types into sitemap and it grew up to 20k items. When we generate sitemap (with cache), it takes about 5 minutes to build and it allocates and holds around 6 GB of memory.
Orchard Core version
1.8.2
Expected behavior
As the generated sitemap itself has only 4 MB, I wouldn't expect that cache/memory usage is 1,500x bigger
Logs and screenshots
After sitemap build:
After sitemap cache clean:
(seems memory is still not released, not even through tenant restart and it needs hard reset.)
Standard allocation is around 500-800 MB
Even more interesting is, that the sitemap cache is stored at FS, so it should not be in memory. I guess there is a memory leak somewhere. I tried to disable our custom modules but result is the same.
1
2