Umbraco can take upwards of 20 minutes to load when I run the application then it works perfectly

Umbraco can take upwards of 20 minutes to load when I run the application then it works perfectly and I want to know if there is any way I can avoid that or fix it

Are you running locally or in Azure?

I am running it locally

What version? Are we talking a fresh install or existing project?

Umbraco does a lot of cache building when it boots up, which can result in database chatter. Whenever I have this issue running locally it’s usually down to the fact I’m running low on RAM and SQL is running super slow.

If you have more information about your complete setup then people will be able to help better.

I’ve seen this before. It was when I had many GBs of files in the wwwroot folder.
Check in there and remove what you can.

It’s an existing project, but still early in development. I’m running Umbraco 16 locally with SQL Server. My machine has 16 GB of RAM, and I’ve checked during startup. RAM and CPU usage seem fine, so I don’t think it’s a resource issue.

Still, the app takes around 20 minutes to start the first time after a rebuild or restart. Once it’s up, everything works smoothly. No errors in the logs, it just hangs for a long time during startup.

Is there anything I should check to speed this up?

Have you tried putting the logs in verbose mode and looking at the logs? I’ve not seen this issue with a 16 build before!

Locally, I never had any issue with any version of Umbraco booting that slow. The only moment I saw such a slow boot times was in Azure web apps when the media cache is not configured correctly, but I doubt that is an issue in this case.