Does .NET 2.0 fix the slow webservice first-time loadup?

E

edzehoo

Hi
There was this annoying problem with .NET 1.1 where a web service
would take 15 secs or more to get loaded into memory upon first access.
After that, subsequent accesses are fast, UNTIL the webservice is left
idle for about 15-20 minutes, then somehow it takes 15 seconds to load
again on the next access (I'm guessing the session gets flushed after a
specific idle time period)

I was told to write a hack that would keep 'hitting' the webservices
every 15 minutes in order to keep the session alive.
But this still somehow feels like a hack.

Does .NET 2.0 fix this? I heard there's this precompile option, but how
does it actually work? I'm using VS 2005 Beta 2 at the moment. Can
anyone give me detailed instructions to 'precompile' a web service?

Thanks to all you guys out there who bothered reading my post :)

Regards,
Ed Zehoo,
Lead Software Architect
United Software Labs
 
C

CESAR DE LA TORRE [MVP]

ASP.NET 2.0 (and Web Services) developed with .NET 2.0 have better
performance, but, the issue you're talking about I think is because of .NET
JIT compilation.
With ASP.NET 2.0 you can get rid of this issue. If you want to pre-compile
your webservice, I think you can do it exactly like you'd do with a ASP.NET
2.0 Web. Look at the follwing URL where you can see how to pre-compile a
ASP.NET Web. Within this article read about "Deployment precompilation /
Precompilation for Deployment":
http://aspalliance.com/717
Basically (with .NET 2.0 BETA 2.0) you do something like:
Aspnet_compiler –p “C:\Dev\WebSite1†–v / C:\Staging
--
CESAR DE LA TORRE
Software Architect
[Microsoft MVP - XML Web Services]
[MCSE] [MCT]
Renacimiento
[Microsoft GOLD Certified Partner]
 

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

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,565
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top