Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7851677
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T19:14:18+00:00 2026-06-02T19:14:18+00:00

As the title says, i got a WCF Server having this service behavior defined:

  • 0

As the title says, i got a WCF Server having this service behavior defined:

[ServiceBehavior(InstanceContextMode = InstanceContextMode.Single, ConcurrencyMode = ConcurrencyMode.Multiple)]

I’ using a named pipe binding and my clients are connecting in this way:

    NetNamedPipeBinding binding = new NetNamedPipeBinding();
const int maxValue = 0x40000000; // 1GB
binding.MaxBufferSize = maxValue; 
binding.MaxReceivedMessageSize = maxValue;

binding.ReaderQuotas.MaxArrayLength = maxValue;
binding.ReaderQuotas.MaxBytesPerRead = maxValue;
binding.ReaderQuotas.MaxStringContentLength = maxValue;

// receive timeout acts like a general timeout
binding.ReceiveTimeout = TimeSpan.MaxValue;
binding.SendTimeout = TimeSpan.MaxValue;

ChannelFactory<IDatabaseSession> pipeFactory = new ChannelFactory<IDatabaseSession>(binding, new EndpointAddress("net.pipe://localhost/DatabaseService"));

IDatabaseSession dbSession = pipeFactory.CreateChannel()

Every client I start executes the code above, and for every client the CPU usage raises by 25% (actually not for the 5. client, but at this point the service execteable is covering nearly a 100% of the whole CPU capacity).

What I’m searching for is a kind of resource (website/list or just YOUR powerful knowledge) telling me what a CreateChannel actually does (regarding in resource allocation issues).

hint: the CPU usage increases even if no communication is actually done, just the Channel is created.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T19:14:19+00:00Added an answer on June 2, 2026 at 7:14 pm

    It is unlikely that WCF itself is using that much resources especially since you said this happens even when there is no communication. My guess is that it is a problem with the service and not the clients. Look at the service constructor if you have one. Also experiment with different values of InstanceContextMode and ConcurrencyMode.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The title of this question says it all. I've got a gantt chart (RangeBar)
As the title says I get an error when having this <xsl:stylesheet version=1.0 xmlns:openSearch=http://a9.com/-/spec/opensearchrss/1.0/
As the Title says, I've got a multi-project solution. I've got a core project
As title says, im having trouble with my junit tests passing for checking if
Like the title says, I've got a Child form being shown with it's TopLevel
Exactly what my title says is the problem Im having right now. Im checking
as the title says: Anyone know about any good/simple multiple file upload script that
The title pretty much says it all, I've got a 'web site' that was
As title says, is there any way to pull something like this up?: std::set<boost::shared_ptr<MyClass>>
As the title says, I've got a string and I want to split into

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.