Groups | Blog | Home
all groups > inetserver asp components > august 2003 >

inetserver asp components : Component very slow the first time...



Adrian Forbes - MVP
8/21/2003 9:27:41 AM
[quoted text, click to view]

It wouldn't say it was designed to work like that...but
that is how it works :) When you first access the object
COM+ has to create the Application and load your object
and this initialisation does take a while, maybe as much
as a second or 2. Once the COM+ app is loaded then it
stays in memory until it idles out so subsequent requests
are much quicker.

What you could do is adjust the duration that your COM+
Application runs for, or you could make it so that the
COM+ App never shuts down no matter how long it has been
left idle.

Right-click on the COM+ Application in Component Services
and select the Advanced tab. Look at the top box "Server
Process Shutdown"
Michael D. Kersey
8/21/2003 9:35:32 AM
[quoted text, click to view]

Possible causes of delay include initialization code in:
- Application_OnStart code in global.asa,
- Session_OnStart event code in global.asa,
- the script,
- the COM+ component.

The first time an ASP script is executed it must be compiled to
bytecode: the bytecode is cached in IIS and on subsequent requests
fetched and executed without any compilation. Compilation is *very*
CPU-intensive: if the script is large, compilation may cause a
perceptible time delay.

A possible solution is to establish a procedure to execute the page
immediately after IIS startup, thereby reducing the likelihood that a
user would experience the delay.

Good Luck,
vivek
8/21/2003 1:34:55 PM
Hi all,
I have developed a component in VB which basically interacts with Acrobat
and saves the stuff into the database and loads up the form with the
existing data. I designed this to be a COM+ application, but everytime the
user acceses this application for the first time(this is happening every
day), it take lot of time to load and it gets better after that. But i am
wondering why this happens the first time? any thoughts? is COM+ designed to
work like this? Thanks for all your thoughts in advance.

Vivek

AddThis Social Bookmark Button