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

Fast Response in Visual Studio, slow response under IIS 6.0

I'm pulling my hair out over this one. I wrote a simple web app that
requests a comma delimited list of IP addresses from another system's
web service. It then splits the list into a very big array, iterates
the array and sends a 250k UDP packet to each IP address. For my
testing I'm hitting near a thousand IPs, eventually the app could hit
up to 15 thousand IPs.

On my laptop running Visual Studio's web server I complete my test
broadcast in 3 seconds. When I run the app on my Win 2k3 server with
IIS 6.0, it takes a little over 8 minutes.

The system monitor, network monitor, and task manager all show
absolutely no stress on the server during this test.

I'm not sure what to try. I appreciate any ideas you may give me.

Jul 24 '06 #1
4 1650
It could be that you could be forcing a security check. IIS could be set up
incorrectly. You might have the proxy set up correctly on your machine and
not on the server. Etc.

Set up trace statements around the loop and output which iteration and where
you are. You will notice one statement (or a set) that takes a long time.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************************************************
Think Outside the Box!
*************************************************
<tj*******@hotmail.comwrote in message
news:11*********************@m79g2000cwm.googlegro ups.com...
I'm pulling my hair out over this one. I wrote a simple web app that
requests a comma delimited list of IP addresses from another system's
web service. It then splits the list into a very big array, iterates
the array and sends a 250k UDP packet to each IP address. For my
testing I'm hitting near a thousand IPs, eventually the app could hit
up to 15 thousand IPs.

On my laptop running Visual Studio's web server I complete my test
broadcast in 3 seconds. When I run the app on my Win 2k3 server with
IIS 6.0, it takes a little over 8 minutes.

The system monitor, network monitor, and task manager all show
absolutely no stress on the server during this test.

I'm not sure what to try. I appreciate any ideas you may give me.

Jul 24 '06 #2
msnews.microsoft.com wrote:
It could be that you could be forcing a security check. IIS could be set up
incorrectly. You might have the proxy set up correctly on your machine and
not on the server. Etc.

Set up trace statements around the loop and output which iteration and where
you are. You will notice one statement (or a set) that takes a long time.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************************************************
Think Outside the Box!
*************************************************
IIS is set to allow anonymous at this point. I'll check the proxy when
I get to work tomorrow, the intranet is supposed to bypass it. I'll
see if I've got it configured correctly.

Before I left work, I did output to a log file the date/time of each
iteration of the loop and at various positions in the preceding logic.
The pattern I noticed was 5 second pauses between bursts of UDP packet
sends, around 25-30 per second with a little fluctuation. On my laptop
it was a constant flow of sends without the 5 second interruption.

Jul 25 '06 #3
Before I left work, I did output to a log file the date/time of each
iteration of the loop and at various positions in the preceding logic.
The pattern I noticed was 5 second pauses between bursts of UDP packet
sends, around 25-30 per second with a little fluctuation. On my laptop
it was a constant flow of sends without the 5 second interruption.
Just a thought, maybe it could have something to do with the application
pool used? e.g. IIS pings each workerthread every 30 seconds by default.
Changing that number might help?

HTH,

Bastiaan de Rijber
Jul 25 '06 #4
Just a thought, maybe it could have something to do with the application
pool used? e.g. IIS pings each workerthread every 30 seconds by default.
Changing that number might help?

HTH,

Bastiaan de Rijber
I created a new app pool and turned off the health monitoring
yesterday. That made no difference.

However, we finally fixed it today. My partner found a beta version of
..Net 2.0 installed, that neither him nor I installed. We uninstalled
it and installed the correct version of .Net 2.0. It does all 15
thousand workstations in 8 seconds now.

Thanks to both of you for your responses!

Jul 25 '06 #5

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

Similar topics

7
by: Bob L. | last post by:
Hi everyone, I am working on converting a VB6 project to .NET, and I am astounded at how amazingly slow Visual Studio is when loading a solution. For example, I have a solution with 11 class...
3
by: spidey | last post by:
Something weird is happening here... when I run my code from the Visual C++ environment it is 3 to 4x faster than running the same code from the DOS command line. Any explanation why is this...
20
by: GS | last post by:
The stdint.h header definition mentions five integer categories, 1) exact width, eg., int32_t 2) at least as wide as, eg., int_least32_t 3) as fast as possible but at least as wide as, eg.,...
26
by: Bruno Jouhier [MVP] | last post by:
I'm currently experiencing a strange phenomenon: At my Office, Visual Studio takes a very long time to compile our solution (more than 1 minute for the first project). At home, Visual Studio...
4
by: Vito DeCarlo | last post by:
Over the past week, I've been noticing that any websites (on this one particular web server) built with ASP.NET have unusually slow (5 second) response times when moving through the site. There...
3
by: Robert Dailey | last post by:
Hi, I've gone through tons of XML editors: - XML Spy - Oxygen - UltraEdit - PSPad - Many others I can't think of...
3
by: John | last post by:
Hi I have replaced an ms access app with its vb.net version at a client site. Now the clients keeps complaining about how slow the app response is. The complains they have are for example when...
10
by: erokar | last post by:
Which tools would you use? I want the interface design to be as easy and fast as possible, all ideology aside. I'm considering either IronPython+Visual Studio or Python+Qt -- but I'm open for other...
0
jwwicks
by: jwwicks | last post by:
Introduction This tutorial describes how to use Visual Studio to create a new C++ program, compile/run a program, resume work on an existing program and debug a program. It is aimed at the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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:
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...
0
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,...
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...

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.