xiaoxue85 发表于 2017-1-9 12:06:06

apache,Process exiting because it reached MaxRequestsPerChild. Signaling the par

  使用redmine之后,查看apache的日志发现大量的一下提示log

Child 7584: Process exiting because it reached MaxRequestsPerChild. Signaling the parent to restart a new child process.
Parent: Received restart signal -- Restarting the server.
  查了一下原因:
  apache在windows下使用mpm模块,这个模块有2个参数,其中一个

  MaxRequestsPerChild
  该参数表示每个子进程能够处理的最大请求数, 即同时间内子进程数目.设置为零表示不限制, mpm_winnt上的默认值就是0.
  官方参考手册中不建议设置为0, 主要基于两点考虑: (1) 可以防止(偶然的)内存泄漏无限进行,从而耗尽内存; (2) 给进程一个有限寿命,从而有助于当服务器负载减轻的时候减少活动进程的数量。
  因此这个参数的值更大程度上取决于服务器的内存,如果内存比较大的话可以设置为0或很大的数字,否则设置一个小的数值。需要说明的是,如果这个值设置的太小的话会造成Apache频繁重启,在日志文件中会看到如下的文字:
  Process exiting because it reached MaxRequestsPerChild. Signaling the parent
  目前修改了此参数,观察是否有后续问题
页: [1]
查看完整版本: apache,Process exiting because it reached MaxRequestsPerChild. Signaling the par