borni69 1 Posted January 5, 2022 Hi, we are using delphi webbroker backend as backend running on Apache docker AWS ECS Been running smoothly for long time I read this article today https://community.embarcadero.com/blogs/entry/optimize-your-isapi-dlls--increase-maxconnections-1612 In my server I have ThreadsPerChild 50 in mpm_event_module ServerLimit 4 MaxRequestWorkers 200 ThreadsPerChild 50 From my understanding in this article I should increase Application.MaxConnections to 50 like below Web.ApacheApp.InitApplication(@GModuleData); Application.Initialize; Application.MaxConnections:=50; Application.WebModuleClass := WebModuleClass; Application.Run; Is this correct understood, I have never had an error for this, but my understanding is that this number is 32 today and can raise an error ?? Bernt Share this post Link to post
mikerabat 20 Posted January 5, 2022 Short answer ... yes - if you got simultaneously more connections from clients than you have requests handles in Delphi then an exception will be raised... Actually I find that property very stupid at all... e.g. apache creates on startup those 50 threads beforehand waiting for incoming connections. On each request a WebModule object will either be taken from the cache or created and put into the cache so this number should be either growing to the demand or be set to the number of the maximum active connections the server is allowed to serve. Share this post Link to post