473,216 Members | 1,292 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,216 software developers and data experts.

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 5554
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Rob Ristroph | last post by:
I have tried out PHP 5 for the first time (with assistance from this group -- thanks!). The people I was working with have a site that uses lots of php objects. They are having problems with...
12
by: MikeT | last post by:
I have a page that produces little thumbnails of the 3D models it finds in a specified directory (and iterates down through any sub directories). It basically scans each directory for 3D Studio...
25
by: Stijn Oude Brunink | last post by:
Hello, I have the following trade off to make: A base class with 2 virtual functions would be realy helpfull for the problem I'm working on. Still though the functions that my program will use...
4
by: David Siroky | last post by:
Hi! I need to enlighten myself in Python unicode speed and implementation. My platform is AMD Athlon@1300 (x86-32), Debian, Python 2.4. First a simple example (and time results): x =...
13
by: Snis Pilbor | last post by:
Hello, Here is an idea I've been toying with to speed up programs but still keep them portable. It's just a very handwavey rough description right now since I haven't worked out details. The...
6
by: lawrence k | last post by:
The following function is way too slow. If anyone has any suggestions about how to speed it up, I'd be grateful for them. We have to call this function 36 times on one page, and I think each time...
20
by: Frank-O | last post by:
Hi , Recently I have been commited to the task of "translating" some complex statistical algorithms from Matlab to C++. The goal is to be three times as fast as matlab ( the latest) . I've...
0
by: anthon | last post by:
Hi all - first post! anywho; I need to create a function for speeding up and down a looping clip. imagine a rotating object, triggered by an action, and slowly decreasing in speed, till it...
8
by: SaltyBoat | last post by:
Needing to import and parse data from a large PDF file into an Access 2002 table: I start by converted the PDF file to a html file. Then I read this html text file, line by line, into a table...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.