c# - Calling a web application from another web application hosted on the same IIS have latency? -


i have 2 web applications built on 2.0 , 4.0 frameworks. , have link 2.0 fw site 4.0 fm site. both hosted on same iis, different application pools. calling site2.0 site4.0 using iframe. when click button load site2.0, taking time load first time. afterwards loads usual. please suggest me if have suggestions. thinking use global.asax file , use application_start event load site first time of site4.0 loads. not sure how it.

thanks

there few reasons have latency on requests:

if it's first request, site merely jiting (known in time compilation). happens first invocation any .net application; running on iis manifests longer normal first request. normal.

there 2 ways combat it:

  • "pre warm" site initiating request right after deploy cause jiting (and view compilation) occur.
  • use product ngen pre-jit site.

if have latency on subsequent requests, need profile application. ensure built in 'release' mode.

when app pool recycled, site have re-jit; this normal. keep alive task - automated http request utility (like script wget every often) keep app pool recycling due inactivity.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -