468,133 Members | 1,265 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,133 developers. It's quick & easy.

Speed up the first call

Hi.

We have developed a .NET web service. The service executes a SQL on the SQL
server. The first call of the webservice takes very long but the other calls
dont.

Why is that and how can we speed that up?

Regards,

Marko
Nov 23 '05 #1
2 5265
Hi Marko,

Welcome to MSDN newsgroup.
Regarding on the ASP.NET Webservice, it is just the same as asp.net
webpages which use on-demand dynamic compilation(cause slow response at the
first method call). In the current version, we haven't buildin options to
make the dynamic compilation auto completed, if you'd like you can manually
use some script code which always automatically request the webservice
after the application/server process restart..... Also, if you're using
IIS6, you can specify the process's recycle timeout after idle time in IIS
manager so as to prevent the webservice asp.net process being
recycled(avoid service being dynamically compiled after restart).

In addition, in ASP.NET2.0 it provide precompiled deployment model which
can help us precompiled the whole asp.net web site as to make startup time
improvement.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


--------------------
Thread-Topic: Speed up the first call
thread-index: AcXb2uVFMy+zjl66QYufHEPq+SHFcQ==
X-WBNR-Posting-Host: 213.161.9.11
From: =?Utf-8?B?bWFya29a?= <Ma****@community.nospam>
Subject: Speed up the first call
Date: Fri, 28 Oct 2005 09:16:04 -0700
Lines: 11
Message-ID: <1C**********************************@microsoft.co m>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.framework.webservices
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA02.phx.gbl!TK2MSF TNGXA03.phx.gbl
microsoft.public.dotnet.framework.webservices:8404
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices

Hi.

We have developed a .NET web service. The service executes a SQL on the SQL
server. The first call of the webservice takes very long but the other
calls
dont.

Why is that and how can we speed that up?

Regards,

Marko

Nov 23 '05 #2
thanks Steven. I do have a simillar problem. In my case the Web Service is
not getting the "OnMesssageReceived" method called when the incoming message
is at 90+ seconds intervel. Ie. if i send messages well within 90 seconds
the web service receivs the messages. If the message interval is morethan 90
seconds, it never receiv the message...

thanks for any help.
-Guna Govind
"Steven Cheng[MSFT]" wrote:
Hi Marko,

Welcome to MSDN newsgroup.
Regarding on the ASP.NET Webservice, it is just the same as asp.net
webpages which use on-demand dynamic compilation(cause slow response at the
first method call). In the current version, we haven't buildin options to
make the dynamic compilation auto completed, if you'd like you can manually
use some script code which always automatically request the webservice
after the application/server process restart..... Also, if you're using
IIS6, you can specify the process's recycle timeout after idle time in IIS
manager so as to prevent the webservice asp.net process being
recycled(avoid service being dynamically compiled after restart).

In addition, in ASP.NET2.0 it provide precompiled deployment model which
can help us precompiled the whole asp.net web site as to make startup time
improvement.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


--------------------
Thread-Topic: Speed up the first call
thread-index: AcXb2uVFMy+zjl66QYufHEPq+SHFcQ==
X-WBNR-Posting-Host: 213.161.9.11
From: =?Utf-8?B?bWFya29a?= <Ma****@community.nospam>
Subject: Speed up the first call
Date: Fri, 28 Oct 2005 09:16:04 -0700
Lines: 11
Message-ID: <1C**********************************@microsoft.co m>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.framework.webservices
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA02.phx.gbl!TK2MSF TNGXA03.phx.gbl
Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.webservices:8404
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices

Hi.

We have developed a .NET web service. The service executes a SQL on the SQL
server. The first call of the webservice takes very long but the other
calls
dont.

Why is that and how can we speed that up?

Regards,

Marko
Oct 12 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by Rob Ristroph | last post: by
25 posts views Thread by Stijn Oude Brunink | last post: by
4 posts views Thread by David Siroky | last post: by
6 posts views Thread by lawrence k | last post: by
20 posts views Thread by Frank-O | last post: by
27 posts views Thread by didacticone | last post: by
1 post views Thread by gcdp | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.