ASP.NET startup Performance profiling web

前端 未结 4 1588
情深已故
情深已故 2021-02-09 17:39

I\'m trying to determine the cause of a very long (imho) initial start up of an ASP.NET application.

The application uses various third party libraries, and lots of refe

4条回答
  •  滥情空心
    2021-02-09 18:12

    Despite a large number of dlls I'm almost sure that for a reasonable application it cannot be a cause of problem. Most of the time it is static objects initialization is causing slow startup.

    In C# static variables are initialized when a type is first time accessed. I would recommend to use a sql profiler and see what are the queries that are performed during the start time of the application and from there see what are the objects that are expensive to initialized.

提交回复
热议问题