OrchardCore icon indicating copy to clipboard operation
OrchardCore copied to clipboard

Sitemap - memory allocation

Open MikeKry opened this issue 6 months ago • 3 comments

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: image

After sitemap cache clean: image (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

image

2

image

MikeKry avatar Aug 26 '24 08:08 MikeKry