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

  • Home
  • SEARCH
  • 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 8757629
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T14:21:02+00:00 2026-06-13T14:21:02+00:00

I have a C# TCP Asynchronous socket server. Testing locally, I can accept 5K

  • 0

I have a C# TCP Asynchronous socket server.

Testing locally, I can accept 5K connections over 35 seconds. I am running a quad core hyper threaded PC (8 threads) and the utilization is ~20-40% on each core. As the connections are accepted, the server asks the client for a bunch of data and then performas a bunch of database entries.

I moved the server application and SQL database to a small database and medium server instance on Amazon AWS.

The Amazon Medium server(EC2) is 1 virtual core and 2 ECU’s. From what I can tell it only has 1 thread.(from performance monitor)

If I try to connect 1000 clients over 35 seconds to the medium server. After ~650 connections i start to receive Connect failed(b) No connection could be made because the target machine actively refused it.

Looking at performance monitor, I noticed that the CPU utilization is only ~10-15%.

I am guessing that the core is not getting loaded because it is trying to handle a huge queue of connections, of small operations and does not provide enough load to increase CPU usage, since the server only has 1 virtual core.

Does anyone have any experience with this, does my theory make sense? I am stuck at a hardware limitation? (need to bump up the server size?)

If not, any ideas how to get more utilization and support more/quicker connections?

Does anyone have experience with this?

EDIT:

I upgraded my instance on Amazon EC2 to the High CPU Extra Large instance.

The Instance now has 8 cores and 20 ECU’s.

I am experiencing the same problem, I get No connection could be made because the target machine actively refused it after ~600 connections.

  • 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-13T14:21:03+00:00Added an answer on June 13, 2026 at 2:21 pm

    I was able to fix this issue. I upgraded my Instance to use PIOPS. I also used a better internet connection locally, as my old upload rate was too slow to support sending all the data and connections.

    With these 2 changes I am able to create 5K+ TCP connections locally and connect to the server no problem.

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

Sidebar

Related Questions

I have made a TCP server which I have been testing locally and it
I have TCP Socket server and would like to make asynchronous Silverlight client for
I have written a TCP server using the Socket class's asynchronous/IOCP methods, BeginSend()/BeginRead()/etc. I
I currently have an asynchronous TCP/IP socket C# WinForms application that is the Server
I have a TCP server app that is written in C#. I accept TCP
I have a fairly basic TCP server keeping track of a couple connections and
I have a client TCP socket that writes a few bytes every five seconds,
I have a fairly generic C# socket server that uses the asynchronous methods of
I have a C# Asynchronous socket server, like so: private Socket _serverSocket; _serverSocket =
Suppose I have a server application - the connection is over TCP, using UNIX

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.