all groups > dotnet web services > january 2008 >
You're in the

dotnet web services

group:

Webservice running very slowly


Re: Webservice running very slowly Mr. Arnold
1/16/2008 7:30:01 AM
dotnet web services:

[quoted text, click to view]

What else is running on the Web server?

What else can be using HTTP on port 80 TCP?

Is the Web server used in an Intranet only environment or is the Web server
an Intranet/Internet solution?

What kind of resources are being used at any given point on the computer?

Does the Web server and its O/S platform running on the computer have the
power/resources to service things in a timely manner during peak periods of
usage?
Webservice running very slowly John Sheppard
1/16/2008 11:53:41 AM
Hello there,

I am running a webservice on IIS6, sometimes it runs at a reasonable speed,
sometimes it runs painfully slow and sometimes inbetween. The application
that consumes the service is vb.dotnet and runs on a local area network.

Does anyone have any ideas? Where should I start to look? What could be
causing this?

Thank you for any help or ideas
Kind regards
John Sheppard


Re: Webservice running very slowly John Saunders [MVP]
1/16/2008 2:09:38 PM
[quoted text, click to view]

All of those things should be done. It may also be necessary to do the same
sort of performance analysis that you would with any other sort of
application. You may need to do profiling, look at performance counts, etc.
--
--------------------------------------------------------------------------------
John Saunders | MVP - Windows Server System - Connected System Developer

Re: Webservice running very slowly Mr. Arnold
1/17/2008 9:25:09 AM
I see your posts today. I have to get to work. I'll get back with you.

[quoted text, click to view]
Re: Webservice running very slowly Mr. Arnold
1/17/2008 4:59:59 PM

[quoted text, click to view]

I think one of your problem could be the Access database. Access is not a
multi client solution and it could be an issue with speed. Access is not an
Enterprise database solution.


http://www.sql-server-performance.com/tips/asp_sql_server_p1.aspx
http://www.aldex.co.uk/sqlupsizing.html


If nothing else, SQL Server Express or MySQL are better solutions for an
Enterprise solution if one doesn't have a production server running full SQL
Server.

Re: Webservice running very slowly John
1/17/2008 6:34:52 PM

[quoted text, click to view]

It will be used in both an intranet and internet environment. However at the
moment it is just the intranet. I very much doubt its the intranet thats
causing the problem.

The server has 3 webservices on it. All different versions of the same one.
Only one ever gets used at a time as I cycle them for versioning. I guess I
should stop 2 of them and see if that solves the problem.

The server should have the resources, it has 8GB ram, running Windows 2003
server (Im not sure of the processor, but its fairly beafy). It does have a
terminal service client on it with approximatly 15 people attached to it
running an access application, word and excel. It could be that it is just
too overloaded because of the terminal services.

The webservice connects to an access database.

What I dont understand is why isnt it lightning fast say when running on my
development computer. For example, on my AMD6000+, 4GB ram development
computer, it doesnt run particularly fast (faster than the beefy server, but
not a whole lot). The load there is just IIS and visual studio. Shouldnt
that run lightning fast as there is no network to go through? (im sure this
sounds increadibly newbish)

Thank you so much for your advice, I should have listed those specifications
in my original post.
John

Re: Webservice running very slowly John
1/17/2008 8:24:38 PM

[quoted text, click to view]

Is perfmon the best monitoring tool to use to be scoping this kind of thing
out?

I have mucked with that and get some very strange answers. In pretty much
all instances of trying this I essentially see as follows; A few seconds
then a webservice output spike, then like 30 seconds later the thread ends
and the data comes up in the GUI. Im so confused...I need to do more
testing..

Im not actually using asynchronous calls either, the threading is all done
manually...(i inherited the project like this)..hmmm i wonder if this has
something to do with it...

Would I be wiser testing on my development computer or testing on my
production server?

Thank you
John

Re: Webservice running very slowly John
1/17/2008 8:35:41 PM
Sorry for so many posts...

Is bytes total per second on the webservice the appropriate counter to be
using in perfmon?

Thank you
John

Re: Webservice running very slowly John
1/17/2008 8:53:10 PM
Sorry, yet another post...

http://www.careware.com.au/Webserver%20-%20Application%20login%20(3%20webservice%20calls,%202%20small%20ones%20and%20one%20that%20downloads%20a%20large%20cache).jpg

Here is a image of perfmon, this was taken over about 6 minutes with 5sec
intervals and is a capture of the application logging in, 3 calls are made
to the webservice, 2 small, 1 large to download a cache....

Looking at this it makes me think that its my client application that has
issues...

There is currently very little load on the server because everyone has gone
home...

I dont get it :(

Anyone got any tips on the correct counters to be using...

Thank you for anyone who spends the time to look at this...
John

Re: Webservice running very slowly John Sheppard
1/18/2008 9:56:09 AM

[quoted text, click to view]

Yeah :( ooooh baby would i love to remove access in more way than you can
imagine......Unfortunatly that is a far off dream because the project is a
migration of the access application and its still in use. Unfortunatly its
not an option at this stage. We will be going to mySQL when we can. 6 months
from now hopefully.

What is actually currently perplexing me is that if I run the application in
debug mode on my dev computer, it runs reasonably decently, not fast, but
acceptable. As soon as I do it in release mode the perfomance drops in
several orders of magnitude. Then when I deploy it, it seems to sometimes be
slow and sometimes be mega slow. Sorry I know thats not exactly quantifying
things well....

Could this be because one of the policy files is not being copied to the
release or something like that, or an issue with compression.
The screen shot posted, was from a deployed version running through ADSL
1500/256, with the server running on no load.

Im showing my newbishness here as well with this question...
The WSE, does that need to have the wse runtime installed on the client....i
havent installed that on the client (I dont think thats the issue, but,
because im having so much trouble finding the cause, im guessing theres 2
issues and im getting confused)

Thank you MR Arnold for you ideas, I will look into the MS-Access and see if
thats causeing the issue...hmm although if it was.... wouldnt my local
network connection just hmmm..fuck i need to take a break from this i
think....start from scratch...

Thanks heaps Mr Arnold for your ideas and help...very much appreciated...
John

Re: Webservice running very slowly John Sheppard
1/18/2008 1:10:31 PM
<snip>

I *think* i have found the problem...

Its not actually a webservice issue at all :(

It has something to do with a few dll's im using on the client side. I
deleted everything from my bin and obj directories and its runs approximatly
70% faster. Still slower than I would like, but scraping in as acceptable.

It now runs properly on my machine, but when I deploy it on another
computer...its slow again :(

But at least I now know to put my energies into exploring elsewhere. Im not
sure where, but im guessing its some kind of dll regestering problem or
something...not sure...

Thanks so much for spending your time helping me Mr Arnold
Very much appreciated
John Sheppard

Re: Webservice running very slowly John Sheppard
1/21/2008 4:44:13 PM
<snip>

Hmm, ok I tell a lie, it is kinda a webservice issue...

It has something to do with inputtrace.webinfo and outputtrace.webinfo...if
i copy those to the deployed directory things speed up immensly...

Im not sure what these do, Im looking at that now!

Hope this helps someone, somewhere..
John

Re: Webservice running very slowly John
1/22/2008 5:46:33 PM

[quoted text, click to view]

yes it was definitly these, I switched the tracing off and the problem went
away. As to why this was happening. Im not sure, but I'm content to have it
turned off as I dont need it.
John

AddThis Social Bookmark Button