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: Apache / WebSocket/ MPM-Module. Correct Config needed
Author
Dumbeldore



Joined: 23 Aug 2019
Posts: 3
Location: Germany

PostPosted: Tue 26 Jul '22 17:08    Post subject: Apache / WebSocket/ MPM-Module. Correct Config needed Reply with quote

Hi there,

i need the correct settings when apache should handle 10000 or more concurrent websocket connections.

Currently i have this and sometimes i got an error like this:

"Server ran out of threads to serve requests. Consider raising the ThreadsPerChild setting"

Code:
# WinNT MPM
# ThreadsPerChild: constant number of worker threads in the server process
# MaxConnectionsPerChild: maximum number of connections a server process serves
<IfModule mpm_winnt_module>
   ThreadLimit         15000
   ThreadsPerChild     10000
    MaxRequestsPerChild    0

   AcceptFilter http none
    AcceptFilter https none
    AcceptFilter ws none
    AcceptFilter wss none
</IfModule>


I am unsure that the settings are correct, specially the not defined "MaxConnectionsPerChild".

Any hint?

bye...
Back to top
James Blond
Moderator


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

PostPosted: Wed 27 Jul '22 13:01    Post subject: Reply with quote

You limited ThreadsPerChild to 10k. You may want to increase that.

Well, MaxConnectionsPerChild used to be MaxRequestsPerChild (the old name). See https://httpd.apache.org/docs/2.4/en/mod/mpm_common.html#maxconnectionsperchild

The limit of ThreadLimit for mpm_winnt is 15k. You already set that value.
Back to top
Dumbeldore



Joined: 23 Aug 2019
Posts: 3
Location: Germany

PostPosted: Thu 28 Jul '22 6:39    Post subject: Reply with quote

thanks a lot!

Bye
Back to top


Reply to topic   Topic: Apache / WebSocket/ MPM-Module. Correct Config needed View previous topic :: View next topic
Post new topic   Forum Index -> Apache