Re: How to eliminate delay making first call to a webservice?
- From: "Page Brooks" <NOSPAMpagebrooks@xxxxxxxxx>
- Date: Mon, 30 Apr 2007 15:21:16 -0400
Andy,
I think your problem actually stems from the JIT compiling process that
occurs upon the first request to the web service. You could use Ngen to
pre-compile your assembly to native code.
PRB: Delay on First Method Invocation on Web Services
http://support.microsoft.com/kb/323577
--
Page Brooks
www.explosivedog.com
"Andy" <andyj@xxxxxxxxxxxxxxxxxx> wrote in message
news:1177960041.648825.276730@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Apr 30, 2:57 pm, DaveOnSEN <anonym...@xxxxxxxxxx> wrote:
Every time I make any .NET framework based webservice consumer I have
the same problem: The first call my application makes to consume a
webservice takes about 15 seconds. Subsequent calls are very fast.
What is happening during this initial delay, and is there anything I can
do to fix this so my applications start up quickly?
For example, typically the first call to consuming a webservice is some
sort of 'login / authenticate' function. The user puts in a username
and password and clicks ok. 15 seconds go by, now user is logged in and
gets a screen populated with data. The call for the data is instant,
whereas the call to login is slow. This is the same no matter what
applications I use, all .net framework applications that consume
webservices that I have seen so far have this problem.
Is there a fix / workaround?
You might want to ask this in an asp.net forum, you may get better
answers. Basically, you're running into how IIS recycles the asp.net
worker process. You may need to adjust this so that process isn't
recycled as often.
.
- Follow-Ups:
- References:
- Prev by Date: Re: Is there a debug.print in CSharp?
- Next by Date: Re: Is there a debug.print in CSharp?
- Previous by thread: Re: How to eliminate delay making first call to a webservice?
- Next by thread: Re: How to eliminate delay making first call to a webservice?
- Index(es):
Relevant Pages
|