Hurry Up, Ends March 14!
Open Closed

Slow-start-in-debug-mode #8942


User avatar
0
brauerj@gc.adventist.org created
  • ABP Framework version: v9.09

  • UI Type: Blazor Server

  • Database System: EF Core (SQL Server)

  • Steps to reproduce the issue:

  1. Start or restart application in Visual Studio using the Project (rather than IIS Express)

  2. The command line runs but hangs or delays for a long time at:

[14:13:53 DBG] Started background worker: Volo.Abp.BackgroundJobs.BackgroundJobWorker
[14:13:53 DBG] Started background worker: Volo.Abp.Identity.Session.IdentitySessionCleanupBackgroundWorker
[14:13:53 DBG] Started background worker: Volo.Abp.OpenIddict.Tokens.TokenCleanupBackgroundWorker
[14:13:54 DBG] Started background worker: Volo.Abp.AuditLogging.ExpiredAuditLogDeleterWorker

Restarting AGAIN (sometimes several times) can fix it.


1 Answer(s)
  • User Avatar
    0
    enisn created
    Support Team .NET Developer

    Hi,

    The application and also your code behaviour can be different in the debug mode and they won't be optimized for the best performance.

    You can try disabling BackgroundWorkers in debug mode if you don't need at your work and make the starting process faster

    #if DEBUG
            Configure<AbpBackgroundWorkerOptions>(options =>{
                options.IsEnabled = false;
            });
    #endif
    
Learn More, Pay Less
33% OFF
All Trainings!
Get Your Deal
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.2.0-preview. Updated on March 13, 2025, 04:08