Jump to content
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×