title: Indy's TIdMappedPortTCP maximum number of simultaneous connections?
body: <p>I have created a simple Delphi service application which uses Indy's TIdMappedPortTCP to redirect connection from one port to another port on a remote server.</p>
  
  <p>The application does not process the traffic in any form. It only redirects the traffic to a remote server using DefaultPort, MappedPort and MappedHost properties.</p>
  
  <p>I need to know what is the maximum number of connections it can handle and what are the different factors that would affect the performance such as OS, Architecture(32bit/64bit) ..etc.</p>
  
  <p>My current test shows that TIdMappedPortTCP can handle 1500 connection with over 1500 threads. </p>
  
  <p>I'm expecting that simultaneous connections will increase to 10000 or even 20000.</p>
  
  <p><strong>## Update 1 ##</strong></p>
  
  <p>My tests shows that the application uses 50000KB (50MB) for 1000 TCP connections (1000 threads).</p>
  
  <p><strong>## Update 2 ##</strong></p>
  
  <p>The application is currently using over 6000 threads (6000 TCP connections) and the memory usage is only 250MB with no performance issues!</p>