logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: concurrent connections
Author
mrdj1024



Joined: 03 Apr 2023
Posts: 26
Location: Bridgeton,NJ,USA

PostPosted: Fri 07 Apr '23 17:56    Post subject: concurrent connections Reply with quote

hi,i heard somewhere that windows has a maximum connection limit of 20.
does this apply to apache or mariadb/mysql server?
i am using wampserver to host my website and was looking at the MPM config file trying to tune it up a bit.
thanks
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7288
Location: Germany, Next to Hamburg

PostPosted: Sat 08 Apr '23 23:30    Post subject: Reply with quote

In the httpd.conf file from apachelounge you need to remove the # before the loading of the mpm setting file

From
Code:

#Include conf/extra/httpd-mpm.conf


to
Code:

Include conf/extra/httpd-mpm.conf



In the httpd-mpm.conf file you find a section with

mpm_winnt_module

ThreadsPerChild defines the max number of concurrent connections. Default 150.0 Sure you can increase that.

For mariadb see https://mariadb.com/kb/en/server-system-variables/#max_connections


Tuning:
- Disable mod_status. That will increase the speed a lot.
- Use PHP not as a module but use mod_fcgid.
- Disable the use of .htaccess (AllowOverride)


When you have hangs, slow traffic and/or when having in your log entries like Asynchronous AcceptEx failed. You can try the following settings:

AcceptFilter http none
AcceptFilter https none
EnableSendfile off
EnableMMAP off
Back to top


Reply to topic   Topic: concurrent connections View previous topic :: View next topic
Post new topic   Forum Index -> Apache