471,334 Members | 1,347 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,334 software developers and data experts.

Web Service requests are being queued...why?

I have a web service that contains a WebMethod that takes a request object as
a param and returns a response object. I have a test method for NUnit that
spools n threads and each thread fires the web method. My results are
showing me that even though the threads are being created at the same time,
the web method call is taken incrementally longer for each thread in it's
terminating order. This also happens when I do true multi-user / multi
session testing (tried 7 clients 2 sessions each). I have tried different
dev machines and different web servers. I also ran methods from other web
services I have written. They appear to be queuing. Is there something in
the web.config, IIS or web method attributes that I do not know about to
allow true multi-session concurrency with web methods?

I show the output of the test below. Notice that all the threads were
created at the same time, but ended non-deterministically at different times.
Also, notice that the ending time and the timespan for the actual web method
call are correlated.

Any insight you can provide would be greatly appreciated.

Output
xusababyxil, Thread 2, span: 1.171875, Start: 7/21/2005 3:35:56 PM, End:
7/21/2005 3:35:57 PM
xusababyxil, Thread 1, span: 1.25, Start: 7/21/2005 3:35:56 PM, End:
7/21/2005 3:35:57 PM
xusababyxil, Thread 4, span: 2.140625, Start: 7/21/2005 3:35:56 PM, End:
7/21/2005 3:35:58 PM
xusababyxil, Thread 3, span: 2.203125, Start: 7/21/2005 3:35:56 PM, End:
7/21/2005 3:35:58 PM
xusababyxil, Thread 6, span: 3, Start: 7/21/2005 3:35:56 PM, End: 7/21/2005
3:35:59 PM
xusababyxil, Thread 5, span: 3.203125, Start: 7/21/2005 3:35:56 PM, End:
7/21/2005 3:35:59 PM
xusababyxil, Thread 7, span: 4.109375, Start: 7/21/2005 3:35:56 PM, End:
7/21/2005 3:36:00 PM
xusababyxil, Thread 9, span: 5.5625, Start: 7/21/2005 3:35:56 PM, End:
7/21/2005 3:36:01 PM
xusababyxil, Thread 8, span: 9.09375, Start: 7/21/2005 3:35:56 PM, End:
7/21/2005 3:36:05 PM
xusababyxil, Thread 0, span: 11.046875, Start: 7/21/2005 3:35:56 PM, End:
7/21/2005 3:36:07 PM

--
Thanks,
Larry
Jul 26 '05 #1
0 827

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by PJ | last post: by
reply views Thread by Jorre Meijrink | last post: by
2 posts views Thread by dmagliola | last post: by
reply views Thread by rosydwin | last post: by

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.