![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
| |
| | #1 (permalink) |
| | 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 Specs![]() |
| | #2 (permalink) |
| | 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 Specs![]() |
| | #3 (permalink) |
| | 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 Specs![]() |
| 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 | |||