.NETGURU
Performance Problems with Probing
Messages   Related Types
This message was discovered on microsoft.public.dotnet.framework.performance.

Post a new message to this list...

Jediah L.
1. In our application which uses NTLM; .Net always requests a file as
Anonymous before requesting it using the NTLM authenticated credentials - in
an application with over a million hits a day - this is quite a bit of extra
posting going on. Anyone know how to stop this?

2. Even when supplying a probing hint in the web.config file; our .Net Win
Form embeded user controls probe 6 times before finding the file (the first
4 are variations of the file with .dll, and .exe names in /bin and /root
folders, the last 2 are ANON then NTLM requests for the correct file).

So for each of the 3000+ users - for each file requested - there is
approximatly 6 web requests handled on the server - this causes slowless in
the client application - and causes additional work for the servers.

3. Just recently all of our Smart Downloads have stopped working. I have
put a sniffer on the machines - and checked the IIS logs - the CLR has
stopped doing conditional gets (No If-Modified-Since headers) and IIS (of
course) is always responding by sending a 200 (after the initial 6 probes)
and resending the files each time - instead of responding w/ the 304's and
allowing the .Net download cache to do its work.

I've already went through a long list of trying things - however - i'm
running out of ideas - i'd appreciate any thoughts!!!

Thanks!

Reply to this message...
 
    
Jerry Pisk
1. You can't. NTLM (and pretty much every authentication scheme except
basic) requires at least two requests.

2. and 3. - Don't know...

Jerry

"Jediah L." <Click here to reveal e-mail address> wrote in message
news:Click here to reveal e-mail address...
[Original message clipped]

Reply to this message...
 
    
Jediah L.
In re #1:

Don't really understand why though - its a poor setup - and should be
configurable.

If you know NTLM was used for the first request - why not automatically use
it for the second request - and if its used for the first half a million
requests - why not use it for the next half a million.

Or why couldn't you tell the IE configuration [This site is always NTLM].

Seems like a waste in performance and bandwidth.

"Jerry Pisk" <Click here to reveal e-mail address> wrote in message
news:uS%23CB$Click here to reveal e-mail address...
[Original message clipped]

Reply to this message...
 
    
Jerry Pisk
IE does send two requests as well. And if you kept the connection open you
could reuse it without having to send two requests all the time, so - you're
right, you have a poor setup in your application. You should have a
connection pool that you'll use for your requests, instead of opening and
closing a connection each time.

Jerry

"Jediah L." <Click here to reveal e-mail address> wrote in message
news:%Click here to reveal e-mail address...
[Original message clipped]

Reply to this message...
 
    
Jediah L.
So you would suggest a better setup is to open a single HTTP connection and
keep it open for the 10 hour working day?

I wonder why IE doesn't do the same thing if it is such a great way to do
it? (In our application, we both use IE - with embeded Win Form User
Controls - and we use .Net Win Form .Exe's both exhibit the same problem).

But seriously - I appreciate your response - and didn't really expect you or
anyone else to have an answer to #1 - its a flaw imo in the way microsoft
has implemented their authentication scheme.

Any thoughts on #2 and #3 would also be greatly appreciated!

Thanks!

"Jerry Pisk" <Click here to reveal e-mail address> wrote in message
news:Click here to reveal e-mail address...
[Original message clipped]

Reply to this message...
 
    
Jerry Pisk
That's exactly what I suggest. It's not a flaw, it's just the way all secure
authentication schemes work (so don't blame Microsoft, it's not just NTLM).

Sorry I can't help you with the rest.

Jerry

"Jediah L." <Click here to reveal e-mail address> wrote in message
news:Click here to reveal e-mail address...
[Original message clipped]

Reply to this message...
 
    
Jediah L.
By the way, thought I'd pass this along, if anyone is ever looking &
intrested.

There was a way to do #1 - surprisingly - using the
UnsafeAuthenticatedConnectionSharing property of the Web Request object.

I have some outstanding questions about the stability and any performance
implications - however - it does exactly what I was looking for.

"Jediah L." <Click here to reveal e-mail address> wrote in message
news:Click here to reveal e-mail address...
[Original message clipped]

Reply to this message...
 
 




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification