ASP.NET startup Performance profiling web

前端 未结 4 1587
情深已故
情深已故 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 17:47

    Your DLL references are loaded as needed, not all at once.

    Do external references slow down my ASP.NET application? (VS: Add Reference dialog)

    If startup is taking 2-5 minutes, I would look at what happens in Application_Start, and at what the DLLs do once loaded. Are they trying to connect to a remote service that is very slow? Is the machine far too small for what it's doing (e.g. running a DB with large amounts of data plus the web server on an AWS micro instance or similar)?

    Since the load time is probably not the IIS worker process resolving references, I would turn to traditional application profilers (e.g. Jetbrains, Antz, dotTrace) to see where the time is being spent as the DLLs initialize, and in your Application_Start method.

提交回复
热议问题