Examine high CPU/memory usage

We have a site running on 13.3.2, every so often it’ll have a huge spike in CPU usage and also memory usage which causes it to crash. I believe I have found, roughly, the cause of the performance issues which is the “News” page where it lists 12 news articles at a time, retrieved from examine from a total number of around 2880 news articles. The page itself is extremely speedy, but after doing a CPU profiler while it had crashed I saw that the Execute function on the index was using >50% CPU. More specifically it was System.IO.UnmanagedMemoryAccessor.ReadByte, called by Lucene.Net.Codecs.Compressing.CompressingStoredFieldsReader.VisitDocument, called by Examine.Lucene.Search.LuceneSearchExecutor.Execute, called by Examine.Lucene.Search.LuceneSearchQuery.Search.

It’s a difficult one to diagnose since I can’t recreate the issue on my local environment, I have to wait until it crashes in the live environment and remotely debug the process.

Has anyone seen this before or have any ideas?


This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/114314-examine-high-cpumemory-usage