I am not sure if this is the right forum, but this is my question.
I have an Azure project, which is working fine and already in production. What we want to do is run the website in our local IIS for testing purposes. We are having a performance issue where the first page (Login) takes up to 20 seconds to appear. I have
researched on the issue and some mention a compiling issue where the IIS server has to compile the webpage; however, if that is the case, it seems like IIS is compiling the webpage every time IE is closed/opened as this only happens when closing the web browser
and reopening it. If we keep IE opened and open the page in a new tab, it loads instantaneously.
My question is: Does the project being an Azure project have something to do with this?
There are a couple of things that can help. Firstly, making sure if you are using a Website Application instead of a Website, as this will stop the website compiling each time due to being pre-compiled.
Turn off the Debug statement in the web.config file.
Lastly, I think it is a good idea to understand what is happening when the IIS Service starts up.
IIS starts the metabase listener and listens for change notifications.
Initializes the IIS thread pool.
Obtains the application pool, which was specified in the command-line parameters, and then sets up the communication mechanism that it will use to receive requests from HTTP.sys.
Sets up communication with the WWW service to enable pinging and recycling.
Initializes other internal caches and structures that are used to process HTTP requests.
Initializes the Web service extension restriction list.
admdev
Member
27 Points
29 Posts
Website In local IIS
Apr 11, 2012 01:31 PM|LINK
Hi all,
I am not sure if this is the right forum, but this is my question.
I have an Azure project, which is working fine and already in production. What we want to do is run the website in our local IIS for testing purposes. We are having a performance issue where the first page (Login) takes up to 20 seconds to appear. I have researched on the issue and some mention a compiling issue where the IIS server has to compile the webpage; however, if that is the case, it seems like IIS is compiling the webpage every time IE is closed/opened as this only happens when closing the web browser and reopening it. If we keep IE opened and open the page in a new tab, it loads instantaneously.
My question is: Does the project being an Azure project have something to do with this?
Any ideas why this could be happening?
Thanks in advance.
Neil_Knight
Member
260 Points
59 Posts
Re: Website In local IIS
Apr 11, 2012 01:38 PM|LINK
There are a couple of things that can help. Firstly, making sure if you are using a Website Application instead of a Website, as this will stop the website compiling each time due to being pre-compiled.
Turn off the Debug statement in the web.config file.
Lastly, I think it is a good idea to understand what is happening when the IIS Service starts up.
IIS starts the metabase listener and listens for change notifications.
Hope this helps.
admdev
Member
27 Points
29 Posts
Re: Website In local IIS
Apr 11, 2012 01:46 PM|LINK
Neil_Knight,
Thanks for your reply.
Debug is already turned off. Additionally, we have a couple other webapps(not as big) on the same IIS and those load quick.
Thanks.
giop
Member
378 Points
81 Posts
Re: Website In local IIS
Apr 11, 2012 07:20 PM|LINK
Do you have any bootstrapper on your website without a test on the roleenvironnement ?
Do you have check the eventviewer for any errors ?
Please Mark as Answer if it helps :)
admdev
Member
27 Points
29 Posts
Re: Website In local IIS
Apr 11, 2012 07:58 PM|LINK
giop,
Bootstrapper on your website? How can I check this?
Eventviewer - No errors.