Solved

Keep Web Application in Server's Memory

Posted on 2008-06-19
4
150 Views
Last Modified: 2010-04-06
When running on Asp.Net app at an ISP in a shared application pool, I notice quite predictably that there is quite a lot of latency when you make a first request but once the servers get going the performance increases considerably. I don't know if it is considered underhand to encourage the ISP's application server to keep your application in memory by having an aspx page constantly open which makes periodic/pulse requests (perhaps for itself?)

Does anyone else do this? How frequent would you make the pulses to get the right balance between keeping the servers alert and not overloading your application? Is IIS clever enough to realise that the same page is being requested, so it wouldn't keep the whole application in memory so you would need to pulse pages randomly?
0
Comment
Question by:Silas2
  • 2
  • 2
4 Comments
 

Author Comment

by:Silas2
ID: 21826500
Just talking Asp.Net, from what I've read of IIS's treatment of an Asp.Net request it has to first load the HTTPApplication object for the Asp.net's application so I guess it has to load the whole thing to service any page within the website.
0
 
LVL 51

Expert Comment

by:Ted Bouskill
ID: 21836445
If you don't have fully control of IIS the host system might reset the application pool memory in the early hours anyway.

The web application itself won't be able to keep refreshing the page.  IIS sits passively waiting for requests for web pages.  If you don't have direct access to the system to run a scheduled application or webservice you can't trigger page loads.  You'd have to do it with an external application.
0
 

Author Comment

by:Silas2
ID: 21837522
Sorry, I meant having an aspx constantly in a client browser somewhere in the world periodically (on a timer say 5-10 seconds) poking a request at a specific aspx file within the site which wouldn't do any work but would make IIS keep the site/app in memory.
0
 
LVL 51

Accepted Solution

by:
Ted Bouskill earned 250 total points
ID: 21838021
Yes that will work but don't overdo it.  I'd only do the most popular pages to save system memory for other purposes (like sessions)

Have you read many articles like this on tuning caching?
http://aspnet.4guysfromrolla.com/articles/022802-1.aspx

Without see your pages as well, make sure you minimize the number of .NET server controls you use.  Use standard HTML unless you have to use a .NET server control.  It's a common mistake I see and it adds a LOT of overhead to the site.

If you want to analyze your pages use Firefox with the Firebug and YSlow plug-ins.  They are great for performance tuning a page.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Thoughout my experience working on eCommerce web applications I have seen applications succumbing to increased user demand and throughput. With increased loads the response times started to spike, which leads to user frustration and lost sales. I ha…
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…
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…
Learn how to set-up custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.

777 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