Jump to content
Registration disabled at the moment Read more... ×
Sign in to follow this  
borni69

Application.MaxConnections Apache Webbroker

Recommended Posts

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×