Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Rotem Orbach 121 posts 607 karma points
    Aug 29, 2021 @ 10:37
    Rotem Orbach
    0

    Umbraco BackgroundTaskRunner killing my website

    Hi,

    This happens erratically only once in a while, and has been like this for months.

    We are running Umbraco version 8.2.2

    Umbraco seems to run successfully thru its list of: Scheduling.BackgroundTaskRunner

    and ends with:

        2021-08-27 19:13:18,437 [P5908/D2/T1] FATAL  Umbraco.Web.PublishedCache.NuCache.PublishedSnapshotService - Panic, exception while loading cache data.
    System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
    

    and then the site is down...

    Here is a copy from the IIS log:

    2021-08-27 19:12:48,510 [P6948/D2/T93] INFO   Umbraco.Web.Scheduling.BackgroundTaskRunner - [KeepAlive]  Terminating 
    2021-08-27 19:12:48,510 [P6948/D2/T93] INFO   Umbraco.Web.Scheduling.BackgroundTaskRunner - [KeepAlive]  Waiting for tasks to complete
    2021-08-27 19:12:48,510 [P6948/D2/T93] INFO   Umbraco.Web.Scheduling.BackgroundTaskRunner - [RebuildIndexesOnStartup]  Terminating 
    2021-08-27 19:12:48,510 [P6948/D2/T93] INFO   Umbraco.Web.Scheduling.BackgroundTaskRunner - [RebuildIndexesOnStartup]  Waiting for tasks to complete
    2021-08-27 19:12:48,510 [P6948/D2/T93] INFO   Umbraco.Web.Scheduling.BackgroundTaskRunner - [RebuildIndexesOnStartup]  Tasks completed, terminated
    2021-08-27 19:12:48,510 [P6948/D2/T93] INFO   Umbraco.Web.Scheduling.BackgroundTaskRunner - [LogScrubber]  Terminating 
    2021-08-27 19:12:48,510 [P6948/D2/T93] INFO   Umbraco.Web.Scheduling.BackgroundTaskRunner - [LogScrubber]  Waiting for tasks to complete
    2021-08-27 19:12:48,510 [P6948/D2/T93] INFO   Umbraco.Web.Scheduling.BackgroundTaskRunner - [ScheduledPublishing]  Terminating 
    2021-08-27 19:12:48,510 [P6948/D2/T93] INFO   Umbraco.Web.Scheduling.BackgroundTaskRunner - [ScheduledPublishing]  Waiting for tasks to complete
    2021-08-27 19:12:48,510 [P6948/D2/T93] INFO   Umbraco.Web.Scheduling.BackgroundTaskRunner - [HealthCheckNotifier]  Terminating 
    2021-08-27 19:12:48,510 [P6948/D2/T93] INFO   Umbraco.Web.Scheduling.BackgroundTaskRunner - [HealthCheckNotifier]  Waiting for tasks to complete
    2021-08-27 19:12:48,510 [P6948/D2/T93] INFO   Umbraco.Web.Scheduling.BackgroundTaskRunner - [ServerRegistration]  Terminating 
    2021-08-27 19:12:48,510 [P6948/D2/T93] INFO   Umbraco.Web.Scheduling.BackgroundTaskRunner - [ServerRegistration]  Waiting for tasks to complete
    2021-08-27 19:12:48,510 [P6948/D2/T93] INFO   Umbraco.Web.Scheduling.BackgroundTaskRunner - [TempFileCleanup]  Terminating 
    2021-08-27 19:12:48,510 [P6948/D2/T93] INFO   Umbraco.Web.Scheduling.BackgroundTaskRunner - [TempFileCleanup]  Waiting for tasks to complete
    2021-08-27 19:12:48,510 [P6948/D2/T93] INFO   Umbraco.Web.Scheduling.BackgroundTaskRunner - [ServerInstProcess]  Terminating 
    2021-08-27 19:12:48,510 [P6948/D2/T93] INFO   Umbraco.Web.Scheduling.BackgroundTaskRunner - [ServerInstProcess]  Waiting for tasks to complete
    2021-08-27 19:12:48,510 [P6948/D2/T137] INFO   Umbraco.Web.Scheduling.BackgroundTaskRunner - [KeepAlive]  Tasks completed, terminated
    2021-08-27 19:12:48,510 [P6948/D2/T137] INFO   Umbraco.Web.Scheduling.BackgroundTaskRunner - [ScheduledPublishing]  Tasks completed, terminated
    2021-08-27 19:12:48,510 [P6948/D2/T137] INFO   Umbraco.Web.Scheduling.BackgroundTaskRunner - [TempFileCleanup]  Tasks completed, terminated
    2021-08-27 19:12:48,510 [P6948/D2/T137] INFO   Umbraco.Web.Scheduling.BackgroundTaskRunner - [ServerRegistration]  Tasks completed, terminated
    2021-08-27 19:12:48,510 [P6948/D2/T137] INFO   Umbraco.Web.Scheduling.BackgroundTaskRunner - [ServerInstProcess]  Tasks completed, terminated
    2021-08-27 19:12:48,510 [P6948/D2/T225] INFO   Umbraco.Web.Scheduling.BackgroundTaskRunner - [LogScrubber]  Tasks completed, terminated
    2021-08-27 19:12:48,510 [P6948/D2/T95] INFO   Umbraco.Web.Scheduling.BackgroundTaskRunner - [HealthCheckNotifier]  Tasks completed, terminated
    2021-08-27 19:12:48,510 [P6948/D2/T93] INFO   Umbraco.Core.MainDom - Stopping (environment)
    2021-08-27 19:12:48,571 [P6948/D2/T93] INFO   Umbraco.Web.PublishedCache.NuCache.PublishedSnapshotService - Released from MainDom
    2021-08-27 19:12:48,571 [P6948/D2/T93] INFO   Umbraco.Web.Search.ExamineComponent - Examine shutting down [Timing 1ef96e2]
    2021-08-27 19:12:48,597 [P6948/D2/T93] INFO   Umbraco.Web.Search.ExamineComponent - Completed. (25ms) [Timing 1ef96e2]
    2021-08-27 19:12:48,598 [P6948/D2/T93] INFO   Umbraco.Core.MainDom - Released (environment)
    2021-08-27 19:12:48,598 [P6948/D2/T93] INFO   Umbraco.Web.Scheduling.BackgroundTaskRunner - [ScheduledTasks]  Terminating 
    2021-08-27 19:12:48,598 [P6948/D2/T93] INFO   Umbraco.Web.Scheduling.BackgroundTaskRunner - [ScheduledTasks]  Waiting for tasks to complete
    2021-08-27 19:12:48,598 [P6948/D2/T93] INFO   Umbraco.Web.Scheduling.BackgroundTaskRunner - [ScheduledTasks]  Tasks completed, terminated
    2021-08-27 19:12:49,510 [P5908/D2/T1] INFO   Umbraco.Core.Runtime.CoreRuntime - Booting Umbraco 8.2.2. [Timing 3bc8952]
    2021-08-27 19:12:49,560 [P5908/D2/T1] INFO   Umbraco.Core.Runtime.CoreRuntime - Booting site 'tbo', app '/LM/W3SVC/18/ROOT', path 'D:\wwwroot\tbo\TestsBackOffice\', server 'WEB01'.
    2021-08-27 19:12:49,632 [P5908/D2/T1] INFO   Umbraco.Core.MainDom - Acquiring.
    2021-08-27 19:12:49,635 [P5908/D2/T1] INFO   Umbraco.Core.MainDom - Acquired.
    2021-08-27 19:12:50,426 [P5908/D2/T1] INFO   Umbraco.Core.Runtime.CoreRuntime - Resolving composer types. [Timing 2c38e0a]
    2021-08-27 19:12:50,479 [P5908/D2/T1] INFO   Umbraco.Core.Runtime.CoreRuntime - Resolved. (51ms) [Timing 2c38e0a]
    2021-08-27 19:12:51,734 [P5908/D2/T1] INFO   Umbraco.Web.PublishedCache.NuCache.PublishedSnapshotService - Registered with MainDom, localContentDbExists? true, localMediaDbExists? true
    2021-08-27 19:12:51,734 [P5908/D2/T1] INFO   Umbraco.Web.PublishedCache.NuCache.PublishedSnapshotService - Creating the content store, localContentDbExists? true
    2021-08-27 19:12:51,734 [P5908/D2/T1] INFO   Umbraco.Web.PublishedCache.NuCache.PublishedSnapshotService - Creating the media store, localMediaDbExists? true
    2021-08-27 19:12:52,032 [P5908/D2/T1] INFO   Umbraco.Web.PublishedCache.NuCache.PublishedSnapshotService - Loading content from local cache file [Timing 8e0669e]
    2021-08-27 19:13:18,424 [P5908/D2/T1] INFO   Umbraco.Web.PublishedCache.NuCache.PublishedSnapshotService - Completed. (26377ms) [Timing 8e0669e]
    2021-08-27 19:13:18,437 [P5908/D2/T1] FATAL  Umbraco.Web.PublishedCache.NuCache.PublishedSnapshotService - Panic, exception while loading cache data.
    System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
    

    It says: Panic, exception while loading cache data.

    I am panicking...

    BTW, a search for 'BackgroundTaskRunner' in my code finds nothing, if that helps.

    Any help is appreciated :)

    Many thanks

    Rotem

  • Nik 1614 posts 7260 karma points MVP 7x c-trib
    Aug 29, 2021 @ 17:59
    Nik
    0

    Hi Rotem,

    How many content nodes and media nodes exist in your site?

    The Background Task Runner is part of Umbraco and features such as scheduled health checks and scheduled publishing utilise it.

    Also, have a look in your website's dB at the server table and the ones relating to cache instructions (sorry on my phone and can't remember their exact names). See how big they are.

    Nik

  • Rotem Orbach 121 posts 607 karma points
    Aug 30, 2021 @ 11:57
    Rotem Orbach
    0

    I have 5,800 folders under my media folder, under the physical directory in IIS.

    How can I find or calculate the number of content nodes? I would estimate my content nodes at around 1,500 very approximately.

    Edit

    However, I did take a look under:

    Examine Management >> InternalIndex >> 'FieldCount' and the total count was 390,000

    Not sure if that's even relevant though...


    I would gladly check in the DB, I did look there but not sure what tables you mean.

    BTW, it's a relatively new Umbraco installation, about 1.5 years only.

    Many thanks :)

Please Sign in or register to post replies

Write your reply to:

Draft