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 8382687
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T16:59:10+00:00 2026-06-09T16:59:10+00:00

I have a simple Hello world service based on basicHttpBinding. The service is hosted

  • 0

I have a simple “Hello world” service based on basicHttpBinding. The service is hosted on a quad-core CPU.

When I run load tests only one core is occupied (95%), and the others three approximately 4-8%.

Why are the other cores not used for proccessing?

Setting ConcurrencyMode = ConcurrencyMode.Multiple didn’t help.

Enter image description here

  • 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-09T16:59:11+00:00Added an answer on June 9, 2026 at 4:59 pm

    Configure a ServiceBehavior for your service.

    WCF uses ConcurrencyMode=ConcurrencyMode.Single by default. That mode runs all requests to your service in one thread.

    With ConcurrencyMode.Single, WCF does not call again into the object
    so long as the method is running. After the operation returns the
    object can be called again.

    One CPU core is used to run that thread.

    Add the attribute below for your service to use all the CPUs:

    [ServiceBehavior(ConcurrencyMode = ConcurrencyMode.Multiple)]
    

    Be careful with service state when you enable that mode. You may need to implement your own locking if you change state.

    Check ConcurrencyMode Enumeration for more details.

    Also make sure that your client makes four calls simultaneously (implement multi-threading in client). Without that you still will have sequential one-thread calls processing even if your server supports multi-threading.

    Update after checking the code:

    Your WCF method doesn’t do any work that can load the CPU. Please replace your methods with some heavy CPU-using function (calculate hashes or factorial) and re-check.

    [ServiceBehavior(ConcurrencyMode = ConcurrencyMode.Multiple)]
    public class HelloService : IHelloService
    {
       public string HelloWorld()
       {
          return "Hello world";
       }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple PHP app that prints 'hello world'. When I run it
I made the simple hello world NODEJS Server. I have a enyo web service
I have a simple RESTful web service that print Hello World ! I'm using
suppose I have a simple container which have three element: <div> <span>hello world</span> <input
I have following simple program: import std.stdio; int main(string[] argv) { writeln(Hello, world!); return
I have the following simple select statement : select 'hello' || '|' || 'world'
I have a simple hello, world servlet application that I am just playing around
I've created a WCF service library with a simple 'hello world' test service and
I have a very simples Hello World WCF Service, that looks like this: namespace
I have a simple twisted app that serves Hello World! via HTTP protocol. I

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.