?
Solved

Speed up site on IIS7

Posted on 2011-03-11
4
Medium Priority
?
1,797 Views
Last Modified: 2012-05-11
Hi,
I have several sites all with low volume (at the moment).
I understand that is a site is not accessed in 20 minutes then IIS7 effectivly puts that application to sleep untill it is requested again. On start up this then has a detrimental effect to the user.
As with most people I want to keep my site as quick as possible.
I have two main type of sites to look after 1 site is a price comparison site (built from scratch) and so has many many pages (1 for each product). The other style of sites are many CMS sites built using Mojoportal framework.
looking in the documentation for mojoportal, they recomend to resolve the slow issue to include the following lines to the config file
<add key="UseAppKeepAlive" value="true" />
<add key="AppKeepAliveUrl" value="" />
where you specify the url that you want to keep alive.
I may be able to do this for a few pages on the mojoportal site, but does this work for none mojoportal sites, I cannot see much documentation for this.
if this does apply to all IIS7 then my next issue is the price comparison site has too many pages to put a line in for each.
Is there a way that I can keep an application alive all the time and if so are there any detrimental effects.



0
Comment
Question by:Simon Cripps
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 30

Expert Comment

by:Brad Howe
ID: 35108409
UseAppKeepAlive is only a mojoportal config item.

To keep you app alive you can configure the app pools.

Idle-timeout
IIS Manager > Expand the tree control > application pools > right click on your application pool, select Advanced Settings > Process Model. Set Idle Time-out (minutes) to "0". The default is 20 minutes.

Disable recycle options
IIS Manager > Expand the tree control > application pools > right click on your application pool, select Advanced Settings > Select Recycling. Set Regular Time Interval to "0". The default is 1740 minutes (29 hours).

If you have other apps/websites in teh same pool, i would advised spliting them up. If this is not possible, you can always build a simple service.   If you have any sort of monitoring enabled, it should alway keep the workprocess awake. What i have done in the past is create a very simple Windows Service that makes an HTTP request to a site page (keepalive.aspx) every 3 minutes to keep it primed.

Hope it helps,
Hades666
0
 

Author Comment

by:Simon Cripps
ID: 35109309
Are there any detrimental effects of setting the idle time from 20 minutes to say 6 hours,
Likewise how will disableing the recycle affect my sites performance.

Thats for the responce
0
 
LVL 30

Accepted Solution

by:
Brad Howe earned 2000 total points
ID: 35109437
Not really.

If needed, you can still keep recycling and enable it to execute on a specific schedule. You just need to make sure that the recycling interval is set to 0.

Right click on the app Pool, select Recycling... Check the box specific time(s). and assign a time.

It might just be better to set the idle-time to "0" and set the recycle to say 3:15 am as an example.

Cheers,
Hades666

0
 

Author Closing Comment

by:Simon Cripps
ID: 35110751
Great help many thanks
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Running classic asp applications under Windows Server 2008 R2 (x64) and IIS 7 is not as easy as one may think. It took me a while to figure it out while getting error 8002801d a few times. After you install the OS you will need to install the fol…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question