473,237 Members | 1,087 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,237 software developers and data experts.

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 1810

"Georgy Malyshev" <i.******@like.spamwrote in message
news:Ok**************@TK2MSFTNGP03.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**************@TK2MSFTNGP03.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.Create("http://georgy/rm/default.asp");
request.UnsafeAuthenticatedConnectionSharing = true;
request.Credentials = System.Net.CredentialCache.DefaultCredentials;
request.ContentType="application/x-www-form-urlencoded";
request.ContentLength = 0;
request.Method = "POST";
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
System.IO.Stream receiveStream = response.GetResponseStream();
System.IO.StreamReader readStream = new System.IO.StreamReader( receiveStream);
string result = readStream.ReadToEnd().Replace("<br>", "\n");
Console.WriteLine(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
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...
2
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...
1
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...
0
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...
4
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...
3
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...
2
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
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...
0
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 ...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
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"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

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.