Very long first cold startup problem

L

Lloyd Dupont

A cold start of my application takes about 15 seconds. Further startup takes
only 1 seconds.

After a reboot other cold start takes less than 15 seconds, perhaps 3~4s.

I tried to improve cold start by NGEN everything in the installer.
Now I don't know if I make an error or something in the installer but my
first cold start time didn't improve (after I tested it).

Any ideas on what I could do to improve my 1st cold start?
 
V

Vadym Stetsyak

Hello, Lloyd!

LD> After a reboot other cold start takes less than 15 seconds, perhaps
LD> 3~4s.

LD> I tried to improve cold start by NGEN everything in the installer.
LD> Now I don't know if I make an error or something in the installer but
LD> my first cold start time didn't improve (after I tested it).

Then you should find out what takes most time during startup and try to optimize it.
Take a look at for more information about the issue
( http://msdn.microsoft.com/msdnmag/issues/06/02/CLRInsideOut/ )

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
 
A

Alan Pretre

Lloyd Dupont said:
Any ideas on what I could do to improve my 1st cold start?

Besides NGEN, it may also be other DLL's your application needs to load in.
Windows has its file cache filled on successive startups.

If fast startup time is necessary you could try a secondary application to
preload your DLL's, ala Acrobat (Adobe Reader Speed Launch) and others.
These go in Startup or a Windows Service and load the modules in at startup
or login.

-- Alan
 
L

Lloyd Dupont

Clever hey!
Thanks for the tip.

Alan Pretre said:
Besides NGEN, it may also be other DLL's your application needs to load
in. Windows has its file cache filled on successive startups.

If fast startup time is necessary you could try a secondary application to
preload your DLL's, ala Acrobat (Adobe Reader Speed Launch) and others.
These go in Startup or a Windows Service and load the modules in at
startup or login.

-- Alan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top