Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Asp.net website first start is very slow

Tags:

asp.net

The first time I load the website in the production web server, it start very slow, subsequent pages load very quickly (included the home page).

I precompiled the site, but nothing changes.

I don't have any code at Application start. I don't have cached items.

Any ideas? How can I find out what is happening?

like image 684
Eduardo Molteni Avatar asked Aug 25 '08 15:08

Eduardo Molteni


People also ask

Why is my website loading slow only for the first time?

A large volume of unoptimized images is usually the most common reason behind website slowness. High-resolution images can consume lots of bandwidth while loading. Uploading larger sized images and then scaling them down can unnecessarily increase the size of your web page – causing your website to load slowly.

Why is my asp net site so slow?

There can be numerous reasons why . NET applications can be slow. These include incorrect memory sizing, GC pauses, code-level errors, excessive logging of exceptions, high usage of synchronized blocks, IIS server bottlenecks, and so on.

Why are ASP Net Applications slightly slower on first load?

There are several factors that influence the first load time of a web page. The first time you load a page, its files are compiled. Thus, if you have complex server-side logic, the first compilation may take a while - it's so the called warm-up period. Currently, it looks like the problem might be related to this.


1 Answers

It's just your app domain loading up and loading any binaries into memory. Also, it's initializing static variables, so if you have a static variable that loads up a lot of data from the db, it might take a bit.

like image 132
Darren Kopp Avatar answered Sep 28 '22 06:09

Darren Kopp