[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

douluvme95630

9/18/2004 8:02:00 PM

Hi

I have a strange situation here. I have a winforms application which
calls a webservice (just a wrapper) which in turn calls remoting
(single call) on a different server.

A remoting method call to a Stored procedure takes 2 seconds for one
thread.

Problem
I create 1 thread from the winform application and call the webservice
which calls the remoting and the database.
Remoting call finishes after 2 seconds and the dataset (150KB) is
returned to the webservice. This one user scenario works fine.

I create 3 threads from the winform application and call the
webservice (I have logging enabled, all the threads call the remoting
at the same time), which calls the remoting and the database.
Remoting call finishes after 2 seconds for all the 3 threads and the
dataset (150KB) is returned to the webservice. What I observe is all 3
threads return simulatenously to the webservice from remoting and all
return back in 9 seconds. The problem is it looks like all the threads
are serial ones while returning back to the webservice. How do you
return dataset from the remoting to webservice like a multi-threaded
one.

The remoting used is TCP channel one and the remoting server is a dual
processor with all the maxworker threads defined correctly in the
machine.config.

Please advise. Thanks for your help in advance.

thanks