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