How to make Apache windows use all processor cores?

I have a Windows machine with an i7 processor, but only one httpd process that can span only one core. How to tell Apache to spawn multiple processes and use all the cores?

thanks

+4
source share
1 answer

The application folder should have the httpd.conf or apache2.conf file (just find all the .conf files in this folder with the file manager). If it is not, then it may be in the system folder, but I really doubt it.

This file is the main configuration. Inside, you should try to find the directives associated with mpm_winnt, as indicated in the right pane of the page page of mpm_winnt. ThreadLimit and ThreadPerChild seem important in this regard.

If you do not find these settings in your configuration files, they should have default values ​​that do not prevent multithreading. The documentation for the Mpm worker module points to some other possibilities:

  • MaxClients
  • ServerLimit
  • MaxRequestsPerChild

All these settings work together and are incorrectly configured, one of them may break parallelism.

The documentation provides an example of a typical setup that you could try.

0
source

All Articles