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 on Windows: alternative MPMs?
Author
Jan-E



Joined: 09 Mar 2012
Posts: 1266
Location: Amsterdam, NL, EU

PostPosted: Sat 01 Jan '22 18:47    Post subject: Apache on Windows: alternative MPMs? Reply with quote

Question by one of the PHP developers
https://github.com/php/php-src/pull/7865

Apache mpm_winnt uses a single control process which launches a single
child process which in turn creates threads to handle requests. Since
the child process is not forked, but rather spawned, and the control
process is never involved in request handling, there is no need to
power up PHP for the control process. Besides not doing this saves
some resources, we no longer have to deal with potential re-attaching
to OPcache shared memory which avoids issues due to ASLR, and paves the
way to further improvements (such as preloading support for Apache
mpm_winnt).

Possibly, a problem with that exact implementation is that it assumes that mpm_winnt is always used on Windows, what might be wrong. Maybe someone knowlegable with Apache on Windows can clarify whether alternative MPMs might be used there, and if so, suggest a better way to detect that (i.e. is there a respective macro we could use in favor of PHP_WIN32)?
Back to top
Jan-E



Joined: 09 Mar 2012
Posts: 1266
Location: Amsterdam, NL, EU

PostPosted: Sat 01 Jan '22 18:48    Post subject: Reply with quote

Can anybody comment on this, either here or on https://github.com/php/php-src/pull/7865
Back to top
admin
Site Admin


Joined: 15 Oct 2005
Posts: 692

PostPosted: Sat 01 Jan '22 19:01    Post subject: Reply with quote

Think that you should also post on the dev list.
Back to top
Jan-E



Joined: 09 Mar 2012
Posts: 1266
Location: Amsterdam, NL, EU

PostPosted: Sat 01 Jan '22 19:09    Post subject: Reply with quote

admin wrote:
Think that you should also post on the dev list.

Which dev list? PHP internals or httpd dev? The latter, I suppose.
Back to top
admin
Site Admin


Joined: 15 Oct 2005
Posts: 692

PostPosted: Sat 01 Jan '22 19:40    Post subject: Reply with quote

Yes Httpd-dev. William Rowe follows this, and I think he knows the most of the windows internals.
Back to top
James Blond
Moderator


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

PostPosted: Sun 02 Jan '22 9:50    Post subject: Reply with quote

https://httpd.apache.org/lists.html#http-dev
Back to top


Reply to topic   Topic: Apache on Windows: alternative MPMs? View previous topic :: View next topic
Post new topic   Forum Index -> Apache