Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Indigo

Vista - WCF client instances

 
 
Old 05-21-2007   #1 (permalink)
Jon Davis


 
 

WCF client instances

Guys, I REALLY need an answer to this. I posted a thread ("Pukes on 12th
invoke") and no one responded.

When looping on creation of a WCF client, calling w/ it, destroying it,
repeat, the loop will freeze up. I'm trying to implement a WCF-standardized
remoting method on a web app that, from the web server, queries a dedicated
Windows service for indexed data. The WCF client will use either TCP or
named pipes.

How many clients can be created at a time in a single process for a WCF TCP
service?

If we are forced to use a single static client and impose thread locking,
performance will seriously degrade.

Jon



My System SpecsSystem Spec
Old 05-21-2007   #2 (permalink)
Jon Davis


 
 

Re: WCF client instances

I wasn't calling Close(). Which leads me to my next post/thread ....

Jon

"Jon Davis" <jon@REMOVE.ME.PLEASE.jondavis.net> wrote in message
news:%23vfA28%23mHHA.4552@TK2MSFTNGP04.phx.gbl...
> Guys, I REALLY need an answer to this. I posted a thread ("Pukes on 12th
> invoke") and no one responded.
>
> When looping on creation of a WCF client, calling w/ it, destroying it,
> repeat, the loop will freeze up. I'm trying to implement a
> WCF-standardized remoting method on a web app that, from the web server,
> queries a dedicated Windows service for indexed data. The WCF client will
> use either TCP or named pipes.
>
> How many clients can be created at a time in a single process for a WCF
> TCP service?
>
> If we are forced to use a single static client and impose thread locking,
> performance will seriously degrade.
>
> Jon
>



My System SpecsSystem Spec
Old 05-24-2007   #3 (permalink)
mfmh


 
 

Re: WCF client instances

try
<serviceThrottling maxConcurrentCalls="20"
maxConcurrentInstances="50"
maxConcurrentSessions="50" />

in the app.config file. If I understand your problem correctly, this will
fix it. My test case consisted of launching 12 clients in a loop. 10 of
them created and the other two were waiting for resources to become available
from the host for more connections.

The msdn documentation lists the reference to the above configuration class
under System.ServiceModel.Configuration Namespace

As advertised, this is available as a configuration item or a static
reference in code. The only example I could find was for the config item.
If you find a code instance, please let me know.

"Jon Davis" wrote:

> I wasn't calling Close(). Which leads me to my next post/thread ....
>
> Jon
>
> "Jon Davis" <jon@REMOVE.ME.PLEASE.jondavis.net> wrote in message
> news:%23vfA28%23mHHA.4552@TK2MSFTNGP04.phx.gbl...
> > Guys, I REALLY need an answer to this. I posted a thread ("Pukes on 12th
> > invoke") and no one responded.
> >
> > When looping on creation of a WCF client, calling w/ it, destroying it,
> > repeat, the loop will freeze up. I'm trying to implement a
> > WCF-standardized remoting method on a web app that, from the web server,
> > queries a dedicated Windows service for indexed data. The WCF client will
> > use either TCP or named pipes.
> >
> > How many clients can be created at a time in a single process for a WCF
> > TCP service?
> >
> > If we are forced to use a single static client and impose thread locking,
> > performance will seriously degrade.
> >
> > Jon
> >

>
>
>

My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
All instances of a class? .NET General
Two instances of Sidebar General Discussion
Multiple instances Vista music pictures video
Double instances of IE7 Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46