473,405 Members | 2,310 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,405 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 5564
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.