![]() |
|
TIdTCPServer connection limits? - Printable Version +- Atozed Forums (https://www.atozed.com/forums) +-- Forum: Open Source (https://www.atozed.com/forums/forum-19.html) +--- Forum: Indy (https://www.atozed.com/forums/forum-9.html) +--- Thread: TIdTCPServer connection limits? (/thread-4930.html) |
TIdTCPServer connection limits? - Justin Case - 01-26-2025 Hello, So my server is working with quite a complex ACL that allows user groups and permissions to be changed for users in real time without logging off and back on again. The good old 'Apply' button has it's uses but not in something where I may need to restrict something fast.. Anyhow, when running on my Win7 Pro box (2x 4core proccys at 3GHz, 16GB ram) it maxes out with 93 clients connected. After that, i can launch new clients but they fail to connect (or at least if they do connect, they do it fast and disconnect without me noticing). At this point, the server memory according to task manager is: 137,668K - which doesn't seem a lot when some instances of chrome can use far more than that! I'm using Delphi 6 (32bit obviously). Any ideas where i start with this? Thanks RE: TIdTCPServer connection limits? - rlebeau - 01-28-2025 (01-26-2025, 08:43 PM)Justin Case Wrote: At this point, the server memory according to task manager is: 137,668K Hard to diagnose that without knowing exactly what you are actually doing with the connections, what you are allocating (or maybe not deallocating), etc. (01-26-2025, 08:43 PM)Justin Case Wrote: I'm using Delphi 6 (32bit obviously). Are you using the version of Indy that shipped with D6, or have you at least upgraded to a modern version of Indy? RE: TIdTCPServer connection limits? - topgall - 02-10-2025 Hi Justin Case, Delphi 6 is quite old—have you tried running your code in Delphi XE+? RE: TIdTCPServer connection limits? - clogscoil - 10-09-2025 Sounds like you’re hitting some 32-bit or socket resource limits rather than memory exhaustion. Check Windows’ max open handles or sockets per process, and consider using thread pooling or scaling to a 64-bit environment. RE: TIdTCPServer connection limits? - alexwilliams9811 - 05-27-2026 I don’t think the memory usage itself is the problem here. 137 MB for ~90 clients is actually pretty low, even for a Delphi 6 server. heardle The fact that it consistently stops around 90-100 connections makes me think more about thread/socket limits or something blocking in the connection lifecycle rather than RAM exhaustion. |