Indexing operation fails on startup due to out of ...
# help-with-umbraco
t
On startup, indexing operations will fail and throw out of memory errors. If i manually trigger index rebuilds once the site is up and running... I have no issue. Memory usage logs dont indicate any sort of memory leak (no staircases/sharp dropoffs). Using v14.3. I have set :
Copy code
"Indexing": {
  "ExplicitlyIndexEachNestedProperty": false
}
in the appsettings because we do use alot of blockgrid editors and they contain images (sometimes several MB or more in size, but not sure how this would affect indexing...). Has anyone encountered anything like this before. We aren't doing anything crazy, we do have a good amount of content (~30kish nodes), but I have ran other sites on the same plan (standard) with way more nodes and have never had this issue before.
Copy code
{
  "@t": "2024-10-10T01:02:51.0773248Z",
  "@mt": "Index populating failed for populator {Populator}",
  "@l": "Error",
  "@x": "System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.\r\n at System.Collections.Generic.Dictionary`2.Initialize(Int32 capacity)\r\n at System.Collections.Generic.Dictionary`2..ctor(Int32 capacity, IEqualityComparer`1 comparer)\r\n at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)\r\n at Examine.ValueSet..ctor(String id, String category, String itemType, IReadOnlyDictionary`2 values)\r\n at Umbraco.Cms.Infrastructure.Examine.ContentValueSetBuilder.GetValueSetsEnumerable(IContent[] content, Dictionary`2 creatorIds, Dictionary`2 writerIds)+MoveNext()\r\n at System.Collections.Generic.LargeArrayBuilder`1.AddRange(IEnumerable`1 items)\r\n at System.Collections.Generic.EnumerableHelpers.ToArray[T](IEnumerable`1 source)\r\n at Umbraco.Cms.Infrastructure.Examine.ContentIndexPopulator.IndexPublishedContent(Int32 contentParentId, Int32 pageIndex, Int32 pageSize, IReadOnlyList`1 indexes)\r\n at Umbraco.Cms.Infrastructure.Examine.ContentIndexPopulator.PopulateIndexes(IReadOnlyList`1 indexes)\r\n at Umbraco.Cms.Infrastructure.Examine.IndexPopulator.Populate(IIndex[] indexes)\r\n at Umbraco.Cms.Infrastructure.Examine.ExamineIndexRebuilder.RebuildIndexes(Boolean onlyEmptyIndexes, TimeSpan delay, CancellationToken cancellationToken)",
  "Populator": "Umbraco.Cms.Infrastructure.Examine.PublishedContentIndexPopulator",
  "SourceContext": "Umbraco.Cms.Infrastructure.Examine.ExamineIndexRebuilder",
  "ProcessId": 2880,
  "ProcessName": "w3wp",
  "ThreadId": 10,
  "ApplicationId": "ea6c9907b5dfb977abd279e5dd977d85f29f78cb",
  "MachineName": "WN1SDWK0003DI",
  "Log4NetLevel": "ERROR"
}
19 Views