Browse Source

Change max children processes (#4186)

* Change max children processes
There are almost no differences in req/s and the latency is greater.
So we reverse the change to 1024 again.
Perhaps we will try with less children later.

* Separate PHP frameworks for travis

* Changed php fortune with <?=

* Delete zend1.dockerfile

* Delete php-fpm.conf

* Delete zend1 in travis.yml

* Add another travis job only for PHP/php

So we can add more servers and have faster builds.

* Update .travis.yml

* Delete php-fpm.conf

* Delete kohana.dockerfile

* Deleete Kohana in travis
Joan Miquel 6 years ago
parent
commit
1e29786f44
58 changed files with 60 additions and 58 deletions
  1. 3 1
      .travis.yml
  2. 1 1
      frameworks/PHP/cakephp/cakephp.dockerfile
  3. 1 1
      frameworks/PHP/cakephp/deploy/conf/php-fpm.conf
  4. 1 1
      frameworks/PHP/clancats/clancats.dockerfile
  5. 1 1
      frameworks/PHP/clancats/deploy/conf/php-fpm.conf
  6. 1 1
      frameworks/PHP/codeigniter/codeigniter.dockerfile
  7. 1 1
      frameworks/PHP/codeigniter/deploy/conf/php-fpm.conf
  8. 1 1
      frameworks/PHP/cygnite/cygnite.dockerfile
  9. 1 1
      frameworks/PHP/cygnite/deploy/conf/php-fpm.conf
  10. 1 1
      frameworks/PHP/fat-free/deploy/conf/php-fpm.conf
  11. 1 1
      frameworks/PHP/fat-free/fat-free-raw.dockerfile
  12. 1 1
      frameworks/PHP/fat-free/fat-free.dockerfile
  13. 1 1
      frameworks/PHP/fuel/deploy/conf/php-fpm.conf
  14. 1 1
      frameworks/PHP/fuel/fuel.dockerfile
  15. 1 1
      frameworks/PHP/hamlet/deploy/conf/php-fpm.conf
  16. 1 1
      frameworks/PHP/hamlet/hamlet.dockerfile
  17. 1 1
      frameworks/PHP/kumbiaphp/deploy/conf/php-fpm.conf
  18. 1 1
      frameworks/PHP/kumbiaphp/kumbiaphp-raw.dockerfile
  19. 1 1
      frameworks/PHP/kumbiaphp/kumbiaphp.dockerfile
  20. 1 1
      frameworks/PHP/laravel/deploy/conf/php-fpm.conf
  21. 1 1
      frameworks/PHP/laravel/laravel.dockerfile
  22. 1 1
      frameworks/PHP/limonade/deploy/conf/php-fpm.conf
  23. 1 1
      frameworks/PHP/limonade/limonade.dockerfile
  24. 1 1
      frameworks/PHP/lithium/deploy/conf/php-fpm.conf
  25. 1 1
      frameworks/PHP/lithium/lithium.dockerfile
  26. 1 1
      frameworks/PHP/lumen/deploy/conf/php-fpm.conf
  27. 1 1
      frameworks/PHP/lumen/lumen.dockerfile
  28. 1 1
      frameworks/PHP/phalcon/deploy/conf/php-fpm.conf
  29. 1 1
      frameworks/PHP/phalcon/phalcon-micro.dockerfile
  30. 1 1
      frameworks/PHP/phalcon/phalcon-mongodb.dockerfile
  31. 1 1
      frameworks/PHP/phalcon/phalcon.dockerfile
  32. 1 1
      frameworks/PHP/php/deploy/conf/php-fpm.conf
  33. 1 1
      frameworks/PHP/php/fortune.php
  34. 1 1
      frameworks/PHP/php/php-pgsql-raw.dockerfile
  35. 1 1
      frameworks/PHP/php/php-php5-raw.dockerfile
  36. 1 1
      frameworks/PHP/php/php-php5.dockerfile
  37. 1 1
      frameworks/PHP/php/php-raw7-tcp.dockerfile
  38. 1 1
      frameworks/PHP/php/php-raw7.dockerfile
  39. 1 1
      frameworks/PHP/php/php.dockerfile
  40. 1 1
      frameworks/PHP/phpixie/deploy/conf/php-fpm.conf
  41. 1 1
      frameworks/PHP/phpixie/phpixie.dockerfile
  42. 1 1
      frameworks/PHP/phreeze/deploy/conf/php-fpm.conf
  43. 1 1
      frameworks/PHP/phreeze/phreeze.dockerfile
  44. 1 1
      frameworks/PHP/silex/deploy/conf/php-fpm.conf
  45. 1 1
      frameworks/PHP/silex/silex-raw.dockerfile
  46. 1 1
      frameworks/PHP/silex/silex.dockerfile
  47. 1 1
      frameworks/PHP/slim/deploy/conf/php-fpm.conf
  48. 1 1
      frameworks/PHP/slim/slim-php5.dockerfile
  49. 1 1
      frameworks/PHP/slim/slim.dockerfile
  50. 1 1
      frameworks/PHP/symfony/deploy/conf/php-fpm.conf
  51. 1 1
      frameworks/PHP/symfony/symfony-raw.dockerfile
  52. 1 1
      frameworks/PHP/symfony/symfony.dockerfile
  53. 1 1
      frameworks/PHP/workerman/deploy/conf/php-fpm.conf
  54. 1 1
      frameworks/PHP/yii2/deploy/conf/php-fpm.conf
  55. 1 1
      frameworks/PHP/yii2/yii2-hhvm.dockerfile
  56. 1 1
      frameworks/PHP/yii2/yii2.dockerfile
  57. 1 1
      frameworks/PHP/zend/deploy/conf/php-fpm.conf
  58. 1 1
      frameworks/PHP/zend/zend.dockerfile

+ 3 - 1
.travis.yml

@@ -93,7 +93,9 @@ env:
      - "TESTLANG=Lua"
      - "TESTLANG=Lua"
      - "TESTLANG=Nim"
      - "TESTLANG=Nim"
      - "TESTLANG=Perl"
      - "TESTLANG=Perl"
-     - "TESTLANG=PHP"
+     - 'TESTDIR="PHP/php"'
+     - 'TESTDIR="PHP/cakephp PHP/clancats PHP/codeigniter PHP/cygnite PHP/fat-free PHP/fuel PHP/kumbiaphp PHP/laravel PHP/limonade PHP/lithium PHP/lumen PHP/phpixie PHP/phreeze PHP/silex PHP/slim PHP/symfony PHP/yii2 PHP/zend"'
+     - 'TESTDIR="PHP/amp PHP/hamlet PHP/hhvm PHP/peachpie PHP/swoole PHP/workerman PHP/phalcon"'
      - "TESTLANG=Python"
      - "TESTLANG=Python"
      - "TESTLANG=Ruby"
      - "TESTLANG=Ruby"
      - 'TESTDIR="Rust/actix Rust/gotham Rust/hyper Rust/iron"'
      - 'TESTDIR="Rust/actix Rust/gotham Rust/hyper Rust/iron"'

+ 1 - 1
frameworks/PHP/cakephp/cakephp.dockerfile

@@ -15,7 +15,7 @@ RUN sed -i "s|listen = /run/php/php7.2-fpm.sock|listen = /run/php/php7.2-fpm.soc
 ADD ./ /cakephp
 ADD ./ /cakephp
 WORKDIR /cakephp
 WORKDIR /cakephp
 
 
-RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 2048|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
 
 
 RUN mkdir -p app/tmp/cache/models
 RUN mkdir -p app/tmp/cache/models
 RUN mkdir -p app/tmp/cache/persistent
 RUN mkdir -p app/tmp/cache/persistent

+ 1 - 1
frameworks/PHP/cakephp/deploy/conf/php-fpm.conf

@@ -238,7 +238,7 @@ pm = static
 ; forget to tweak pm.* to fit your needs.
 ; forget to tweak pm.* to fit your needs.
 ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
 ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
 ; Note: This value is mandatory.
 ; Note: This value is mandatory.
-pm.max_children = 2048
+pm.max_children = 1024
 
 
 ; The number of child processes created on startup.
 ; The number of child processes created on startup.
 ; Note: Used only when pm is set to 'dynamic'
 ; Note: Used only when pm is set to 'dynamic'

+ 1 - 1
frameworks/PHP/clancats/clancats.dockerfile

@@ -15,7 +15,7 @@ RUN sed -i "s|listen = /run/php/php7.2-fpm.sock|listen = /run/php/php7.2-fpm.soc
 ADD ./ /clancats
 ADD ./ /clancats
 WORKDIR /clancats
 WORKDIR /clancats
 
 
-RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 2048|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
 
 
 RUN composer install --quiet
 RUN composer install --quiet
 
 

+ 1 - 1
frameworks/PHP/clancats/deploy/conf/php-fpm.conf

@@ -238,7 +238,7 @@ pm = static
 ; forget to tweak pm.* to fit your needs.
 ; forget to tweak pm.* to fit your needs.
 ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
 ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
 ; Note: This value is mandatory.
 ; Note: This value is mandatory.
-pm.max_children = 2048
+pm.max_children = 1024
 
 
 ; The number of child processes created on startup.
 ; The number of child processes created on startup.
 ; Note: Used only when pm is set to 'dynamic'
 ; Note: Used only when pm is set to 'dynamic'

+ 1 - 1
frameworks/PHP/codeigniter/codeigniter.dockerfile

@@ -14,7 +14,7 @@ COPY deploy/conf/* /etc/php/7.2/fpm/
 ADD ./ /codeigniter
 ADD ./ /codeigniter
 WORKDIR /codeigniter
 WORKDIR /codeigniter
 
 
-RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 2048|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
 
 
 RUN composer install --quiet
 RUN composer install --quiet
 
 

+ 1 - 1
frameworks/PHP/codeigniter/deploy/conf/php-fpm.conf

@@ -238,7 +238,7 @@ pm = static
 ; forget to tweak pm.* to fit your needs.
 ; forget to tweak pm.* to fit your needs.
 ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
 ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
 ; Note: This value is mandatory.
 ; Note: This value is mandatory.
-pm.max_children = 2048
+pm.max_children = 1024
 
 
 ; The number of child processes created on startup.
 ; The number of child processes created on startup.
 ; Note: Used only when pm is set to 'dynamic'
 ; Note: Used only when pm is set to 'dynamic'

+ 1 - 1
frameworks/PHP/cygnite/cygnite.dockerfile

@@ -15,7 +15,7 @@ RUN sed -i "s|listen = /run/php/php7.2-fpm.sock|listen = /run/php/php5.6-fpm.soc
 ADD ./ /cygnite
 ADD ./ /cygnite
 WORKDIR /cygnite
 WORKDIR /cygnite
 
 
-RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 2048|pm.max_children = 512|g" /etc/php/5.6/fpm/php-fpm.conf ; fi;
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/5.6/fpm/php-fpm.conf ; fi;
 
 
 RUN composer install --quiet
 RUN composer install --quiet
 
 

+ 1 - 1
frameworks/PHP/cygnite/deploy/conf/php-fpm.conf

@@ -238,7 +238,7 @@ pm = static
 ; forget to tweak pm.* to fit your needs.
 ; forget to tweak pm.* to fit your needs.
 ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
 ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
 ; Note: This value is mandatory.
 ; Note: This value is mandatory.
-pm.max_children = 2048
+pm.max_children = 1024
 
 
 ; The number of child processes created on startup.
 ; The number of child processes created on startup.
 ; Note: Used only when pm is set to 'dynamic'
 ; Note: Used only when pm is set to 'dynamic'

+ 1 - 1
frameworks/PHP/fat-free/deploy/conf/php-fpm.conf

@@ -238,7 +238,7 @@ pm = static
 ; forget to tweak pm.* to fit your needs.
 ; forget to tweak pm.* to fit your needs.
 ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
 ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
 ; Note: This value is mandatory.
 ; Note: This value is mandatory.
-pm.max_children = 2048
+pm.max_children = 1024
 
 
 ; The number of child processes created on startup.
 ; The number of child processes created on startup.
 ; Note: Used only when pm is set to 'dynamic'
 ; Note: Used only when pm is set to 'dynamic'

+ 1 - 1
frameworks/PHP/fat-free/fat-free-raw.dockerfile

@@ -17,7 +17,7 @@ ENV F3DIR="/fat-free/src"
 RUN git clone "https://github.com/bcosca/fatfree-core.git" src
 RUN git clone "https://github.com/bcosca/fatfree-core.git" src
 RUN cd src && git checkout -q "069ccd84afd2461c7ebb67f660c142f97577e661" # v3.5.2-dev
 RUN cd src && git checkout -q "069ccd84afd2461c7ebb67f660c142f97577e661" # v3.5.2-dev
 
 
-RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 2048|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
 
 
 RUN chmod -R 777 /fat-free
 RUN chmod -R 777 /fat-free
 
 

+ 1 - 1
frameworks/PHP/fat-free/fat-free.dockerfile

@@ -17,7 +17,7 @@ ENV F3DIR="/fat-free/src"
 RUN git clone "https://github.com/bcosca/fatfree-core.git" src
 RUN git clone "https://github.com/bcosca/fatfree-core.git" src
 RUN cd src && git checkout -q "069ccd84afd2461c7ebb67f660c142f97577e661" # v3.5.2-dev
 RUN cd src && git checkout -q "069ccd84afd2461c7ebb67f660c142f97577e661" # v3.5.2-dev
 
 
-RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 2048|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
 
 
 RUN chmod -R 777 /fat-free
 RUN chmod -R 777 /fat-free
 
 

+ 1 - 1
frameworks/PHP/fuel/deploy/conf/php-fpm.conf

@@ -238,7 +238,7 @@ pm = static
 ; forget to tweak pm.* to fit your needs.
 ; forget to tweak pm.* to fit your needs.
 ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
 ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
 ; Note: This value is mandatory.
 ; Note: This value is mandatory.
-pm.max_children = 2048
+pm.max_children = 1024
 
 
 ; The number of child processes created on startup.
 ; The number of child processes created on startup.
 ; Note: Used only when pm is set to 'dynamic'
 ; Note: Used only when pm is set to 'dynamic'

+ 1 - 1
frameworks/PHP/fuel/fuel.dockerfile

@@ -15,7 +15,7 @@ RUN sed -i "s|listen = /run/php/php7.2-fpm.sock|listen = /run/php/php7.2-fpm.soc
 ADD ./ /fuel
 ADD ./ /fuel
 WORKDIR /fuel
 WORKDIR /fuel
 
 
-RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 2048|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
 
 
 RUN composer install --quiet
 RUN composer install --quiet
 
 

+ 1 - 1
frameworks/PHP/hamlet/deploy/conf/php-fpm.conf

@@ -12,7 +12,7 @@ listen.owner = www-data
 listen.group = www-data
 listen.group = www-data
 
 
 pm = static
 pm = static
-pm.max_children = 2048
+pm.max_children = 1024
 pm.start_servers = 512
 pm.start_servers = 512
 pm.min_spare_servers = 50
 pm.min_spare_servers = 50
 pm.max_spare_servers = 512
 pm.max_spare_servers = 512

+ 1 - 1
frameworks/PHP/hamlet/hamlet.dockerfile

@@ -13,7 +13,7 @@ ADD ./ /php
 WORKDIR /php
 WORKDIR /php
 RUN chmod -R 777 /php
 RUN chmod -R 777 /php
 
 
-RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 2048|pm.max_children = 512|g" /etc/php/7.3/fpm/php-fpm.conf ; fi;
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.3/fpm/php-fpm.conf ; fi;
 
 
 RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
 RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
 RUN composer update --no-dev --optimize-autoloader --classmap-authoritative
 RUN composer update --no-dev --optimize-autoloader --classmap-authoritative

+ 1 - 1
frameworks/PHP/kumbiaphp/deploy/conf/php-fpm.conf

@@ -238,7 +238,7 @@ pm = static
 ; forget to tweak pm.* to fit your needs.
 ; forget to tweak pm.* to fit your needs.
 ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
 ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
 ; Note: This value is mandatory.
 ; Note: This value is mandatory.
-pm.max_children = 2048
+pm.max_children = 1024
 
 
 ; The number of child processes created on startup.
 ; The number of child processes created on startup.
 ; Note: Used only when pm is set to 'dynamic'
 ; Note: Used only when pm is set to 'dynamic'

+ 1 - 1
frameworks/PHP/kumbiaphp/kumbiaphp-raw.dockerfile

@@ -14,7 +14,7 @@ WORKDIR /kumbiaphp
 
 
 RUN git clone -b v1.0.0-rc.2 --single-branch --depth 1 -q https://github.com/KumbiaPHP/KumbiaPHP.git vendor/Kumbia
 RUN git clone -b v1.0.0-rc.2 --single-branch --depth 1 -q https://github.com/KumbiaPHP/KumbiaPHP.git vendor/Kumbia
 
 
-RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 2048|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
 
 
 CMD service php7.2-fpm start && \
 CMD service php7.2-fpm start && \
     nginx -c /kumbiaphp/deploy/nginx.conf -g "daemon off;"
     nginx -c /kumbiaphp/deploy/nginx.conf -g "daemon off;"

+ 1 - 1
frameworks/PHP/kumbiaphp/kumbiaphp.dockerfile

@@ -15,7 +15,7 @@ WORKDIR /kumbiaphp
 RUN git clone -b v1.0.0-rc.2 --single-branch --depth 1 https://github.com/KumbiaPHP/KumbiaPHP.git vendor/Kumbia
 RUN git clone -b v1.0.0-rc.2 --single-branch --depth 1 https://github.com/KumbiaPHP/KumbiaPHP.git vendor/Kumbia
 RUN git clone -b v0.4.0 --single-branch --depth 1 https://github.com/KumbiaPHP/ActiveRecord.git vendor/Kumbia/ActiveRecord
 RUN git clone -b v0.4.0 --single-branch --depth 1 https://github.com/KumbiaPHP/ActiveRecord.git vendor/Kumbia/ActiveRecord
 
 
-RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 2048|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
 
 
 CMD service php7.2-fpm start && \
 CMD service php7.2-fpm start && \
     nginx -c /kumbiaphp/deploy/nginx.conf -g "daemon off;"
     nginx -c /kumbiaphp/deploy/nginx.conf -g "daemon off;"

+ 1 - 1
frameworks/PHP/laravel/deploy/conf/php-fpm.conf

@@ -238,7 +238,7 @@ pm = static
 ; forget to tweak pm.* to fit your needs.
 ; forget to tweak pm.* to fit your needs.
 ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
 ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
 ; Note: This value is mandatory.
 ; Note: This value is mandatory.
-pm.max_children = 2048
+pm.max_children = 1024
 
 
 ; The number of child processes created on startup.
 ; The number of child processes created on startup.
 ; Note: Used only when pm is set to 'dynamic'
 ; Note: Used only when pm is set to 'dynamic'

+ 1 - 1
frameworks/PHP/laravel/laravel.dockerfile

@@ -15,7 +15,7 @@ COPY deploy/conf/* /etc/php/7.2/fpm/
 ADD ./ /laravel
 ADD ./ /laravel
 WORKDIR /laravel
 WORKDIR /laravel
 
 
-RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 2048|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
 
 
 RUN mkdir -p /laravel/bootstrap/cache
 RUN mkdir -p /laravel/bootstrap/cache
 RUN mkdir -p /laravel/storage/framework/sessions
 RUN mkdir -p /laravel/storage/framework/sessions

+ 1 - 1
frameworks/PHP/limonade/deploy/conf/php-fpm.conf

@@ -238,7 +238,7 @@ pm = static
 ; forget to tweak pm.* to fit your needs.
 ; forget to tweak pm.* to fit your needs.
 ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
 ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
 ; Note: This value is mandatory.
 ; Note: This value is mandatory.
-pm.max_children = 2048
+pm.max_children = 1024
 
 
 ; The number of child processes created on startup.
 ; The number of child processes created on startup.
 ; Note: Used only when pm is set to 'dynamic'
 ; Note: Used only when pm is set to 'dynamic'

+ 1 - 1
frameworks/PHP/limonade/limonade.dockerfile

@@ -14,7 +14,7 @@ COPY deploy/conf/* /etc/php/7.2/fpm/
 ADD ./ /limonade
 ADD ./ /limonade
 WORKDIR /limonade
 WORKDIR /limonade
 
 
-RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 2048|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
 
 
 RUN composer install --quiet
 RUN composer install --quiet
 
 

+ 1 - 1
frameworks/PHP/lithium/deploy/conf/php-fpm.conf

@@ -238,7 +238,7 @@ pm = static
 ; forget to tweak pm.* to fit your needs.
 ; forget to tweak pm.* to fit your needs.
 ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
 ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
 ; Note: This value is mandatory.
 ; Note: This value is mandatory.
-pm.max_children = 2048
+pm.max_children = 1024
 
 
 ; The number of child processes created on startup.
 ; The number of child processes created on startup.
 ; Note: Used only when pm is set to 'dynamic'
 ; Note: Used only when pm is set to 'dynamic'

+ 1 - 1
frameworks/PHP/lithium/lithium.dockerfile

@@ -15,7 +15,7 @@ RUN sed -i "s|listen = /run/php/php7.2-fpm.sock|listen = /run/php/php5.6-fpm.soc
 ADD ./ /lithium
 ADD ./ /lithium
 WORKDIR /lithium
 WORKDIR /lithium
 
 
-RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 2048|pm.max_children = 512|g" /etc/php/5.6/fpm/php-fpm.conf ; fi;
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/5.6/fpm/php-fpm.conf ; fi;
 
 
 RUN composer install --quiet
 RUN composer install --quiet
 
 

+ 1 - 1
frameworks/PHP/lumen/deploy/conf/php-fpm.conf

@@ -238,7 +238,7 @@ pm = static
 ; forget to tweak pm.* to fit your needs.
 ; forget to tweak pm.* to fit your needs.
 ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
 ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
 ; Note: This value is mandatory.
 ; Note: This value is mandatory.
-pm.max_children = 2048
+pm.max_children = 1024
 
 
 ; The number of child processes created on startup.
 ; The number of child processes created on startup.
 ; Note: Used only when pm is set to 'dynamic'
 ; Note: Used only when pm is set to 'dynamic'

+ 1 - 1
frameworks/PHP/lumen/lumen.dockerfile

@@ -15,7 +15,7 @@ COPY deploy/conf/* /etc/php/7.2/fpm/
 ADD ./ /lumen
 ADD ./ /lumen
 WORKDIR /lumen
 WORKDIR /lumen
 
 
-RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 2048|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
 
 
 RUN composer install --quiet
 RUN composer install --quiet
 
 

+ 1 - 1
frameworks/PHP/phalcon/deploy/conf/php-fpm.conf

@@ -238,7 +238,7 @@ pm = static
 ; forget to tweak pm.* to fit your needs.
 ; forget to tweak pm.* to fit your needs.
 ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
 ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
 ; Note: This value is mandatory.
 ; Note: This value is mandatory.
-pm.max_children = 2048
+pm.max_children = 1024
 
 
 ; The number of child processes created on startup.
 ; The number of child processes created on startup.
 ; Note: Used only when pm is set to 'dynamic'
 ; Note: Used only when pm is set to 'dynamic'

+ 1 - 1
frameworks/PHP/phalcon/phalcon-micro.dockerfile

@@ -12,7 +12,7 @@ COPY deploy/conf/* /etc/php/7.2/fpm/
 ADD ./ /phalcon
 ADD ./ /phalcon
 WORKDIR /phalcon
 WORKDIR /phalcon
 
 
-RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 2048|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
 
 
 RUN apt-get install -yqq php7.2-phalcon php7.2-dev  > /dev/null
 RUN apt-get install -yqq php7.2-phalcon php7.2-dev  > /dev/null
 
 

+ 1 - 1
frameworks/PHP/phalcon/phalcon-mongodb.dockerfile

@@ -14,7 +14,7 @@ COPY deploy/conf/* /etc/php/7.2/fpm/
 ADD ./ /phalcon
 ADD ./ /phalcon
 WORKDIR /phalcon
 WORKDIR /phalcon
 
 
-RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 2048|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
 
 
 RUN apt-get install -yqq php7.2-phalcon  > /dev/null
 RUN apt-get install -yqq php7.2-phalcon  > /dev/null
 
 

+ 1 - 1
frameworks/PHP/phalcon/phalcon.dockerfile

@@ -16,7 +16,7 @@ WORKDIR /phalcon
 
 
 RUN apt-get install -yqq php7.2-phalcon  > /dev/null
 RUN apt-get install -yqq php7.2-phalcon  > /dev/null
 
 
-RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 2048|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
 
 
 RUN composer install --quiet
 RUN composer install --quiet
 
 

+ 1 - 1
frameworks/PHP/php/deploy/conf/php-fpm.conf

@@ -238,7 +238,7 @@ pm = static
 ; forget to tweak pm.* to fit your needs.
 ; forget to tweak pm.* to fit your needs.
 ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
 ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
 ; Note: This value is mandatory.
 ; Note: This value is mandatory.
-pm.max_children = 2048
+pm.max_children = 1024
 
 
 ; The number of child processes created on startup.
 ; The number of child processes created on startup.
 ; Note: Used only when pm is set to 'dynamic'
 ; Note: Used only when pm is set to 'dynamic'

+ 1 - 1
frameworks/PHP/php/fortune.php

@@ -20,5 +20,5 @@ asort($arr);
 ?>
 ?>
 <!DOCTYPE html><html><head><title>Fortunes</title></head><body><table><tr><th>id</th><th>message</th></tr>
 <!DOCTYPE html><html><head><title>Fortunes</title></head><body><table><tr><th>id</th><th>message</th></tr>
 <?php foreach ( $arr as $id => $fortune ) : ?>
 <?php foreach ( $arr as $id => $fortune ) : ?>
-<tr><td><?php echo $id ?></td><td><?php echo htmlspecialchars($fortune, ENT_QUOTES, 'UTF-8') ?></td></tr>
+<tr><td><?= $id ?></td><td><?= htmlspecialchars($fortune, ENT_QUOTES, 'UTF-8') ?></td></tr>
 <?php endforeach ?></table></body></html>
 <?php endforeach ?></table></body></html>

+ 1 - 1
frameworks/PHP/php/php-pgsql-raw.dockerfile

@@ -16,7 +16,7 @@ RUN sed -i "s|PDO('mysql:|PDO('pgsql:|g" dbraw.php
 RUN sed -i "s|PDO('mysql:|PDO('pgsql:|g" fortune.php
 RUN sed -i "s|PDO('mysql:|PDO('pgsql:|g" fortune.php
 RUN sed -i "s|PDO('mysql:|PDO('pgsql:|g" updateraw.php
 RUN sed -i "s|PDO('mysql:|PDO('pgsql:|g" updateraw.php
 
 
-RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 2048|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
 
 
 RUN chmod -R 777 /php
 RUN chmod -R 777 /php
 
 

+ 1 - 1
frameworks/PHP/php/php-php5-raw.dockerfile

@@ -13,7 +13,7 @@ RUN sed -i "s|listen = /run/php/php7.2-fpm.sock|listen = /run/php/php5.6-fpm.soc
 ADD ./ /php
 ADD ./ /php
 WORKDIR /php
 WORKDIR /php
 
 
-RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 2048|pm.max_children = 512|g" /etc/php/5.6/fpm/php-fpm.conf ; fi;
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/5.6/fpm/php-fpm.conf ; fi;
 
 
 RUN chmod -R 777 /php
 RUN chmod -R 777 /php
 
 

+ 1 - 1
frameworks/PHP/php/php-php5.dockerfile

@@ -15,7 +15,7 @@ RUN sed -i "s|listen = /run/php/php7.2-fpm.sock|listen = /run/php/php5.6-fpm.soc
 ADD ./ /php
 ADD ./ /php
 WORKDIR /php
 WORKDIR /php
 
 
-RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 2048|pm.max_children = 512|g" /etc/php/5.6/fpm/php-fpm.conf ; fi;
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/5.6/fpm/php-fpm.conf ; fi;
 
 
 RUN composer install --quiet
 RUN composer install --quiet
 
 

+ 1 - 1
frameworks/PHP/php/php-raw7-tcp.dockerfile

@@ -15,7 +15,7 @@ WORKDIR /php
 RUN sed -i "s|listen = /run/php/php7.2-fpm.sock|listen = 127.0.0.1:9001|g" /etc/php/7.2/fpm/php-fpm.conf
 RUN sed -i "s|listen = /run/php/php7.2-fpm.sock|listen = 127.0.0.1:9001|g" /etc/php/7.2/fpm/php-fpm.conf
 RUN sed -i "s|server unix:/var/run/php/php7.2-fpm.sock;|server 127.0.0.1:9001;|g" deploy/nginx7.conf
 RUN sed -i "s|server unix:/var/run/php/php7.2-fpm.sock;|server 127.0.0.1:9001;|g" deploy/nginx7.conf
 
 
-RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 2048|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
 
 
 RUN chmod -R 777 /php
 RUN chmod -R 777 /php
 
 

+ 1 - 1
frameworks/PHP/php/php-raw7.dockerfile

@@ -12,7 +12,7 @@ COPY deploy/conf/* /etc/php/7.2/fpm/
 ADD ./ /php
 ADD ./ /php
 WORKDIR /php
 WORKDIR /php
 
 
-RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 2048|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
 
 
 RUN chmod -R 777 /php
 RUN chmod -R 777 /php
 
 

+ 1 - 1
frameworks/PHP/php/php.dockerfile

@@ -14,7 +14,7 @@ COPY deploy/conf/* /etc/php/7.2/fpm/
 ADD ./ /php
 ADD ./ /php
 WORKDIR /php
 WORKDIR /php
 
 
-RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 2048|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
 
 
 RUN composer install --quiet
 RUN composer install --quiet
 
 

+ 1 - 1
frameworks/PHP/phpixie/deploy/conf/php-fpm.conf

@@ -238,7 +238,7 @@ pm = static
 ; forget to tweak pm.* to fit your needs.
 ; forget to tweak pm.* to fit your needs.
 ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
 ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
 ; Note: This value is mandatory.
 ; Note: This value is mandatory.
-pm.max_children = 2048
+pm.max_children = 1024
 
 
 ; The number of child processes created on startup.
 ; The number of child processes created on startup.
 ; Note: Used only when pm is set to 'dynamic'
 ; Note: Used only when pm is set to 'dynamic'

+ 1 - 1
frameworks/PHP/phpixie/phpixie.dockerfile

@@ -14,7 +14,7 @@ COPY deploy/conf/* /etc/php/7.2/fpm/
 ADD ./ /phpixie
 ADD ./ /phpixie
 WORKDIR /phpixie
 WORKDIR /phpixie
 
 
-RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 2048|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
 
 
 RUN composer install --quiet
 RUN composer install --quiet
 
 

+ 1 - 1
frameworks/PHP/phreeze/deploy/conf/php-fpm.conf

@@ -238,7 +238,7 @@ pm = static
 ; forget to tweak pm.* to fit your needs.
 ; forget to tweak pm.* to fit your needs.
 ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
 ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
 ; Note: This value is mandatory.
 ; Note: This value is mandatory.
-pm.max_children = 2048
+pm.max_children = 1024
 
 
 ; The number of child processes created on startup.
 ; The number of child processes created on startup.
 ; Note: Used only when pm is set to 'dynamic'
 ; Note: Used only when pm is set to 'dynamic'

+ 1 - 1
frameworks/PHP/phreeze/phreeze.dockerfile

@@ -15,7 +15,7 @@ RUN sed -i "s|listen = /run/php/php7.2-fpm.sock|listen = /run/php/php5.6-fpm.soc
 ADD ./ /phreeze
 ADD ./ /phreeze
 WORKDIR /phreeze
 WORKDIR /phreeze
 
 
-RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 2048|pm.max_children = 512|g" /etc/php/5.6/fpm/php-fpm.conf ; fi;
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/5.6/fpm/php-fpm.conf ; fi;
 
 
 RUN composer install --quiet
 RUN composer install --quiet
 
 

+ 1 - 1
frameworks/PHP/silex/deploy/conf/php-fpm.conf

@@ -238,7 +238,7 @@ pm = static
 ; forget to tweak pm.* to fit your needs.
 ; forget to tweak pm.* to fit your needs.
 ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
 ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
 ; Note: This value is mandatory.
 ; Note: This value is mandatory.
-pm.max_children = 2048
+pm.max_children = 1024
 
 
 ; The number of child processes created on startup.
 ; The number of child processes created on startup.
 ; Note: Used only when pm is set to 'dynamic'
 ; Note: Used only when pm is set to 'dynamic'

+ 1 - 1
frameworks/PHP/silex/silex-raw.dockerfile

@@ -14,7 +14,7 @@ COPY deploy/conf/* /etc/php/7.2/fpm/
 ADD ./ /silex
 ADD ./ /silex
 WORKDIR /silex
 WORKDIR /silex
 
 
-RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 2048|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
 
 
 RUN composer install --quiet
 RUN composer install --quiet
 
 

+ 1 - 1
frameworks/PHP/silex/silex.dockerfile

@@ -14,7 +14,7 @@ COPY deploy/conf/* /etc/php/7.2/fpm/
 ADD ./ /silex
 ADD ./ /silex
 WORKDIR /silex
 WORKDIR /silex
 
 
-RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 2048|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
 
 
 RUN composer install --quiet
 RUN composer install --quiet
 
 

+ 1 - 1
frameworks/PHP/slim/deploy/conf/php-fpm.conf

@@ -238,7 +238,7 @@ pm = static
 ; forget to tweak pm.* to fit your needs.
 ; forget to tweak pm.* to fit your needs.
 ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
 ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
 ; Note: This value is mandatory.
 ; Note: This value is mandatory.
-pm.max_children = 2048
+pm.max_children = 1024
 
 
 ; The number of child processes created on startup.
 ; The number of child processes created on startup.
 ; Note: Used only when pm is set to 'dynamic'
 ; Note: Used only when pm is set to 'dynamic'

+ 1 - 1
frameworks/PHP/slim/slim-php5.dockerfile

@@ -15,7 +15,7 @@ RUN sed -i "s|listen = /run/php/php7.2-fpm.sock|listen = /run/php/php5.6-fpm.soc
 ADD ./ /slim
 ADD ./ /slim
 WORKDIR /slim
 WORKDIR /slim
 
 
-RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 2048|pm.max_children = 512|g" /etc/php/5.6/fpm/php-fpm.conf ; fi;
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/5.6/fpm/php-fpm.conf ; fi;
 
 
 RUN composer install --quiet
 RUN composer install --quiet
 
 

+ 1 - 1
frameworks/PHP/slim/slim.dockerfile

@@ -14,7 +14,7 @@ COPY deploy/conf/* /etc/php/7.2/fpm/
 ADD ./ /slim
 ADD ./ /slim
 WORKDIR /slim
 WORKDIR /slim
 
 
-RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 2048|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
 
 
 RUN composer install --quiet
 RUN composer install --quiet
 
 

+ 1 - 1
frameworks/PHP/symfony/deploy/conf/php-fpm.conf

@@ -238,7 +238,7 @@ pm = static
 ; forget to tweak pm.* to fit your needs.
 ; forget to tweak pm.* to fit your needs.
 ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
 ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
 ; Note: This value is mandatory.
 ; Note: This value is mandatory.
-pm.max_children = 2048
+pm.max_children = 1024
 
 
 ; The number of child processes created on startup.
 ; The number of child processes created on startup.
 ; Note: Used only when pm is set to 'dynamic'
 ; Note: Used only when pm is set to 'dynamic'

+ 1 - 1
frameworks/PHP/symfony/symfony-raw.dockerfile

@@ -15,7 +15,7 @@ COPY deploy/conf/* /etc/php/7.2/fpm/
 ADD ./ /symfony
 ADD ./ /symfony
 WORKDIR /symfony
 WORKDIR /symfony
 
 
-RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 2048|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
 
 
 ENV APP_ENV=prod
 ENV APP_ENV=prod
 
 

+ 1 - 1
frameworks/PHP/symfony/symfony.dockerfile

@@ -15,7 +15,7 @@ COPY deploy/conf/* /etc/php/7.2/fpm/
 ADD ./ /symfony
 ADD ./ /symfony
 WORKDIR /symfony
 WORKDIR /symfony
 
 
-RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 2048|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
 
 
 ENV APP_ENV=prod
 ENV APP_ENV=prod
 
 

+ 1 - 1
frameworks/PHP/workerman/deploy/conf/php-fpm.conf

@@ -238,7 +238,7 @@ pm = static
 ; forget to tweak pm.* to fit your needs.
 ; forget to tweak pm.* to fit your needs.
 ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
 ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
 ; Note: This value is mandatory.
 ; Note: This value is mandatory.
-pm.max_children = 2048
+pm.max_children = 1024
 
 
 ; The number of child processes created on startup.
 ; The number of child processes created on startup.
 ; Note: Used only when pm is set to 'dynamic'
 ; Note: Used only when pm is set to 'dynamic'

+ 1 - 1
frameworks/PHP/yii2/deploy/conf/php-fpm.conf

@@ -238,7 +238,7 @@ pm = static
 ; forget to tweak pm.* to fit your needs.
 ; forget to tweak pm.* to fit your needs.
 ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
 ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
 ; Note: This value is mandatory.
 ; Note: This value is mandatory.
-pm.max_children = 2048
+pm.max_children = 1024
 
 
 ; The number of child processes created on startup.
 ; The number of child processes created on startup.
 ; Note: Used only when pm is set to 'dynamic'
 ; Note: Used only when pm is set to 'dynamic'

+ 1 - 1
frameworks/PHP/yii2/yii2-hhvm.dockerfile

@@ -14,7 +14,7 @@ RUN apt-get install -yqq composer > /dev/null
 ADD ./ /yii2
 ADD ./ /yii2
 WORKDIR /yii2
 WORKDIR /yii2
 
 
-RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 2048|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
 
 
 RUN composer install --quiet
 RUN composer install --quiet
 
 

+ 1 - 1
frameworks/PHP/yii2/yii2.dockerfile

@@ -14,7 +14,7 @@ COPY deploy/conf/* /etc/php/7.2/fpm/
 ADD ./ /yii2
 ADD ./ /yii2
 WORKDIR /yii2
 WORKDIR /yii2
 
 
-RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 2048|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
 
 
 RUN composer install --quiet
 RUN composer install --quiet
 
 

+ 1 - 1
frameworks/PHP/zend/deploy/conf/php-fpm.conf

@@ -238,7 +238,7 @@ pm = static
 ; forget to tweak pm.* to fit your needs.
 ; forget to tweak pm.* to fit your needs.
 ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
 ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
 ; Note: This value is mandatory.
 ; Note: This value is mandatory.
-pm.max_children = 2048
+pm.max_children = 1024
 
 
 ; The number of child processes created on startup.
 ; The number of child processes created on startup.
 ; Note: Used only when pm is set to 'dynamic'
 ; Note: Used only when pm is set to 'dynamic'

+ 1 - 1
frameworks/PHP/zend/zend.dockerfile

@@ -15,7 +15,7 @@ COPY deploy/conf/* /etc/php/7.2/fpm/
 ADD ./ /zend
 ADD ./ /zend
 WORKDIR /zend
 WORKDIR /zend
 
 
-RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 2048|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
+RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
 
 
 RUN mkdir -p data/cache
 RUN mkdir -p data/cache
 RUN chmod 777 data/cache
 RUN chmod 777 data/cache