memory/time problem, windows authentication for a asp.net web service

L

leo_junquera

I am trying to use windows authentication on an intranet to call a web
service. When I make my first call to the service after connecting
from a client app using:

ws.Url = ServiceUrl;
ws.Credentials = System.Net.CredentialCache.DefaultCredentials;
ws.UnsafeAuthenticatedConnectionSharing = true;

It takes forever (2-3 minutes) and my mem usage for aspnet_wp.exe
balloons from 2,952K to 586,264K and stays there.

I am using v1.1.4322 on both client and server. It is set up with
windows authentication using identity impersonate set to true and the
authentication mode of windows in the web.config.

I have wanted to move the architecture towards web services but this is
unusable. Forcing the users to log in would be a step back in their
eyes too.

Any help would be greatly appreciated.

Leo
 
L

lj

I looked at the computer. The hardware is not great. It's running
windows 2k server. With that being said this seems like more of a
client issue. I tested just returning a string when I started having a
problem (previously I was returning one record from a database). I
didn't test with multiple calls, the machine became slow (mem usage
remains at 586,264K after the call). Threads go from 583 to 609 during
to 605 after. My CPU usage will go from nothing for aspnet_wp.exe to
99% during the call for that two minutes then after the call it will
spike to 90 at regular intervals.

When there is no authentication this does not happen. It takes one hop
to get there.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top