Solved

Keep Web Application in Server's Memory

Posted on 2008-06-19
4
148 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
Comment Utility
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:tedbilly
Comment Utility
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
Comment Utility
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:
tedbilly earned 250 total points
Comment Utility
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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Introduction A frequently used term in Object-Oriented design is "SOLID" which is a mnemonic acronym that covers five principles of OO design.  These principles do not stand alone; there is interplay among them.  And they are not laws, merely princ…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Wufoo.com provides powerful tools for surveying targeted groups, and utilizing data from completed surveys to find trends, discover areas of demand or customer expectation, and make business decisions on products or services.
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.

762 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now