473,804 Members | 3,163 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP POST perfomance problem

Hello, All!

I have a simplistic ASP application, only default.asp file without
any scripts just HTML to say "Hello world!". It is running under
IIS 5.1 on XP SP2 machine. I also have some simplistic ISAPI
extension DLL as reference point for my performance measurements.

My client is a console application using WinInet API. Later I also
wrote C# console application just to sure I made no mistakes in
WinInet calls but it didn't change performance results I'm going
to describe.

I have four test cases:
- measure total access time to ASP page using GET verb;
- measure total access time to ASP page using POST verb;
- measure total access time to ISAPI DLL using GET verb;
- measure total access time to ISAPI DLL using POST verb;

In my measurements I do first call and then do a number of
calls with some delay between them (changing delay in the
range 0-2000 mSec doesn't change the entire picture). Timing
for the first call I just disregard.

When I run the client on my local machine I have total access
time about 2-3 mSec for all four test cases.

When I run the clinet on abother machine on our LAN I have
the same 2-4 mSec except ASP POST test case. I takes about
200 mSec and in tcpdump I see something like this:

ISAPI POST:
client POST -serever
.... less than 1 mSec
client <- server 100 continue
... about 1 mSec
client <- server 200 OK

ASP POST:
client POST -serever
.... less than 1 mSec
client <- server 100 continue
... about 200 mSec
client <- server 200 OK

So delay is clearly on the server side. I'm a newbie to ASP
and can only suspect that for remote request IIS does some
kind of authorization work.

I've tried to play with anonymous/NTLM athentication and
low/med/high isolation but it doesn't change the picture.

Any advises?

With best regards, Georgy Malyshev.
Jan 25 '07 #1
2 1857

"Georgy Malyshev" <i.******@like. spamwrote in message
news:Ok******** ******@TK2MSFTN GP03.phx.gbl...
Hello, All!

I have a simplistic ASP application, only default.asp file without
any scripts just HTML to say "Hello world!". It is running under
IIS 5.1 on XP SP2 machine. I also have some simplistic ISAPI
extension DLL as reference point for my performance measurements.

My client is a console application using WinInet API. Later I also
wrote C# console application just to sure I made no mistakes in
WinInet calls but it didn't change performance results I'm going
to describe.

I have four test cases:
- measure total access time to ASP page using GET verb;
- measure total access time to ASP page using POST verb;
- measure total access time to ISAPI DLL using GET verb;
- measure total access time to ISAPI DLL using POST verb;

In my measurements I do first call and then do a number of
calls with some delay between them (changing delay in the
range 0-2000 mSec doesn't change the entire picture). Timing
for the first call I just disregard.

When I run the client on my local machine I have total access
time about 2-3 mSec for all four test cases.

When I run the clinet on abother machine on our LAN I have
the same 2-4 mSec except ASP POST test case. I takes about
200 mSec and in tcpdump I see something like this:

ISAPI POST:
client POST -serever
... less than 1 mSec
client <- server 100 continue
.. about 1 mSec
client <- server 200 OK

ASP POST:
client POST -serever
... less than 1 mSec
client <- server 100 continue
.. about 200 mSec
client <- server 200 OK

So delay is clearly on the server side. I'm a newbie to ASP
and can only suspect that for remote request IIS does some
kind of authorization work.

I've tried to play with anonymous/NTLM athentication and
low/med/high isolation but it doesn't change the picture.

Any advises?
I can't see how authentication would have anything to do with this. You
would see a lot more client<->server communication if authentication were
taking place and there is no reason why a POST would require it and a GET
not.

In the POST are you actually sending an entity body?
If so what do the ASP and ISAPI filter do with the recieved body and how big
is it?

Can you show a little of the code?

>
With best regards, Georgy Malyshev.


Jan 26 '07 #2
Hello, Anthony Jones!
You wrote on Fri, 26 Jan 2007 22:46:24 -0000:
AJ"Georgy Malyshev" <i.******@like. spamwrote in message
AJnews:Ok****** ********@TK2MSF TNGP03.phx.gbl. ..
>Hello, All!
>I have a simplistic ASP application, only default.asp file without
any scripts just HTML to say "Hello world!". It is running under
IIS 5.1 on XP SP2 machine. I also have some simplistic ISAPI
extension DLL as reference point for my performance measurements.
>My client is a console application using WinInet API. Later I also
wrote C# console application just to sure I made no mistakes in
WinInet calls but it didn't change performance results I'm going
to describe.
>I have four test cases:
- measure total access time to ASP page using GET verb;
- measure total access time to ASP page using POST verb;
- measure total access time to ISAPI DLL using GET verb;
- measure total access time to ISAPI DLL using POST verb;
>In my measurements I do first call and then do a number of
calls with some delay between them (changing delay in the
range 0-2000 mSec doesn't change the entire picture). Timing
for the first call I just disregard.
>When I run the client on my local machine I have total access
time about 2-3 mSec for all four test cases.
>When I run the clinet on abother machine on our LAN I have
the same 2-4 mSec except ASP POST test case. I takes about
200 mSec and in tcpdump I see something like this:
>ISAPI POST:
client POST -serever
... less than 1 mSec
client <- server 100 continue
.. about 1 mSec
client <- server 200 OK
>ASP POST:
client POST -serever
... less than 1 mSec
client <- server 100 continue
.. about 200 mSec
client <- server 200 OK
>So delay is clearly on the server side. I'm a newbie to ASP
and can only suspect that for remote request IIS does some
kind of authorization work.
>I've tried to play with anonymous/NTLM athentication and
low/med/high isolation but it doesn't change the picture.
>Any advises?
AJI can't see how authentication would have anything to do with this.
Me neither. I just put this satement to eliminate possible questions
about test conditions.

AJ You would see a lot more client<->server communication if authentication were
AJtaking place and there is no reason why a POST would require it and a GET
AJnot.

Me neither. I just put this

AJIn the POST are you actually sending an entity body?

Actually I'm not, except of HTTP headers. Do you think it's the root of the problem?

AJIf so what do the ASP and ISAPI filter do with the recieved body and how big
AJis it?

They just send back client headers as HTPP response.

AJCan you show a little of the code?

HttpWebRequest request = (HttpWebRequest )WebRequest.Cre ate("http://georgy/rm/default.asp");
request.UnsafeA uthenticatedCon nectionSharing = true;
request.Credent ials = System.Net.Cred entialCache.Def aultCredentials ;
request.Content Type="applicati on/x-www-form-urlencoded";
request.Content Length = 0;
request.Method = "POST";
HttpWebResponse response = (HttpWebRespons e)request.GetRe sponse();
System.IO.Strea m receiveStream = response.GetRes ponseStream();
System.IO.Strea mReader readStream = new System.IO.Strea mReader( receiveStream);
string result = readStream.Read ToEnd().Replace ("<br>", "\n");
Console.WriteLi ne(result);

Georgy Malyshev
Jan 28 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
5099
by: news.onet.pl | last post by:
I've launched some perfomance test for some program measuring number of operations, net messages processed per second, etc. Why is my point, is the question how Java initial and maximal heap is connected with the swap space of Operating System. Those Java utilize both memory and swap space for purpose of its heap? TIA,
2
1059
by: James T. | last post by:
Hello! Let's say I have 2 functions, both return data from the database. Now I would like to compare perfomance of these two functions. I would like to know how long it takes to execute these functions. How can I do that? Thank you! James
1
1974
by: =?Utf-8?B?RG91Zw==?= | last post by:
We have a very large code base and use the partitioned solution model for development and deployment. The problem is that in .NET 2005 the setup projects cause severe performance problems when working with the master build solution in the .NET IDE. Currently we have about 300 projects with another 150+ going to production in the coming months. The build server we use is a Windows 2003 server with quad Intel Xeon processors and 2GB...
0
1029
by: jambalapamba | last post by:
Hi I am removing node from a document depending on the style property and this is taking 7 seconds for checking complete document is there any ideas how can i improve the perfomance. Here is my part of code foreach (IHTMLElement tempElement in document.all) { if (tempElement.style.visibility == "hidden" ) { IHTMLDOMNode node = tempElement as...
4
1553
by: =?Utf-8?B?VmVlcmFiaGFkcmFpYWggTCBN?= | last post by:
Hi, I have two databases D1 with 6 million records and D2 with 95 thousand records. I need to check Common records from these two databases based on UserID and need to insert into other database D3 and also need to create XML files. For this i followed below approach. I have used two threads. -->one thread to Pick the users from D1, filter out against D2 and will be inserting into D3.
3
3259
by: damodharan | last post by:
Hello and thanks in advance. I have two table in DB2 (ver 8). table details are table one(Cust_det) has two fields (Cust_cin and cust_name). table two(cust_add_det) has cust_cin and cust_address fields. To join above two table which sql is better on perfomance point of view? and how conditional where clause works?
2
1156
by: MickJ | last post by:
Hi, I would like to write High perfomance server using C#. It would be desirable to hear offers and advices on this subject.
4
1186
by: Alexander Adam | last post by:
Hi! I've got a pretty complex data structure that keeps instances of structs allocated with the new operator. Now my issue is that those structures are required to be allocated / deallocated pretty often resulting in a huge perfomance issue. Usually what I am doing is to create arrays and initialize their sizes a few times bigger than originally required to avoid another allocation on the next run. Then I do simply reset them
0
1197
by: ferozanna | last post by:
I am using Asp.net 1.3 with C# My application used by call center people My applicaton is a three tier arch I have create data layer as class ibrary which goint to talke Ssqlserver 205 db At time 2000 to 3000 user are using How can i improve my application perfomance, Give me tips
0
9707
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9585
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10586
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10338
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10323
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9161
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5658
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3823
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2997
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.