重新启动web服务器后,无法应用apache web服务器| mpm=event |配置

重新启动web服务器后,无法应用apache web服务器| mpm=event |配置,apache,Apache,我必须更改事件mpm默认配置以解决错误(记分板已满,而不是MaxRequestWorkers.Increase和ServerLimit),但是在httpd.conf文件中进行更改后,我看不到任何影响 虽然我已经检查了httpd进程,但它显示3台服务器正在以25个线程运行。请查看下面的详细信息 [q@mohitm ~]$ ps -ef|grep httpd root 67465 1 0 22:00 ? 00:00:00 /usr/sbin/httpd tomca

我必须更改事件mpm默认配置以解决错误(记分板已满,而不是MaxRequestWorkers.Increase和ServerLimit),但是在httpd.conf文件中进行更改后,我看不到任何影响

虽然我已经检查了httpd进程,但它显示3台服务器正在以25个线程运行。请查看下面的详细信息

[q@mohitm ~]$ ps -ef|grep httpd
root      67465      1  0 22:00 ?        00:00:00 /usr/sbin/httpd
tomcat    67467  67465  0 22:00 ?        00:00:00 /usr/sbin/httpd
tomcat    67468  67465  0 22:00 ?        00:00:00 /usr/sbin/httpd
tomcat    67470  67465  0 22:00 ?        00:00:00 /usr/sbin/httpd
sdlansi   68271  65078  0 22:21 pts/0    00:00:00 grep --color=auto httpd
[q@mohitm ~]$ ps -eLo pid,lwp,nlwp,ruser,pcpu,stime,etime,args|grep  67467
 67467  67467   27 tomcat    0.0 22:00       22:23 /usr/sbin/httpd
 67467  67471   27 tomcat    0.0 22:00       22:23 /usr/sbin/httpd
 67467  67472   27 tomcat    0.0 22:00       22:23 /usr/sbin/httpd
 67467  67479   27 tomcat    0.0 22:00       22:23 /usr/sbin/httpd
 67467  67480   27 tomcat    0.0 22:00       22:23 /usr/sbin/httpd
 67467  67481   27 tomcat    0.0 22:00       22:23 /usr/sbin/httpd
 67467  67482   27 tomcat    0.0 22:00       22:23 /usr/sbin/httpd
 67467  67483   27 tomcat    0.0 22:00       22:23 /usr/sbin/httpd
 67467  67484   27 tomcat    0.0 22:00       22:23 /usr/sbin/httpd
 67467  67485   27 tomcat    0.0 22:00       22:23 /usr/sbin/httpd
 67467  67486   27 tomcat    0.0 22:00       22:23 /usr/sbin/httpd
 67467  67487   27 tomcat    0.0 22:00       22:23 /usr/sbin/httpd
 67467  67489   27 tomcat    0.0 22:00       22:23 /usr/sbin/httpd
 67467  67491   27 tomcat    0.0 22:00       22:23 /usr/sbin/httpd
 67467  67493   27 tomcat    0.0 22:00       22:23 /usr/sbin/httpd
 67467  67496   27 tomcat    0.0 22:00       22:23 /usr/sbin/httpd
 67467  67498   27 tomcat    0.0 22:00       22:23 /usr/sbin/httpd
 67467  67500   27 tomcat    0.0 22:00       22:23 /usr/sbin/httpd
 67467  67502   27 tomcat    0.0 22:00       22:23 /usr/sbin/httpd
 67467  67504   27 tomcat    0.0 22:00       22:23 /usr/sbin/httpd
 67467  67506   27 tomcat    0.0 22:00       22:23 /usr/sbin/httpd
 67467  67508   27 tomcat    0.0 22:00       22:23 /usr/sbin/httpd
 67467  67510   27 tomcat    0.0 22:00       22:23 /usr/sbin/httpd
 67467  67512   27 tomcat    0.0 22:00       22:23 /usr/sbin/httpd
 67467  67514   27 tomcat    0.0 22:00       22:23 /usr/sbin/httpd
 67467  67516   27 tomcat    0.0 22:00       22:23 /usr/sbin/httpd
 67467  67518   27 tomcat    0.0 22:00       22:23 /usr/sbin/httpd
 68283  68283    1 sdlansi   0.0 22:22       00:00 grep --color=auto 67467
请帮助我如何检查我的配置是否已应用。 上面的工件显示只有3台服务器使用25个服务器运行 螺纹锉刀

在httpd.conf中,我添加了以下配置,以便在完成mpm之后重新启动apache服务器以应用

<IfModule mpm_event_module>
            StartServers              6         #default 3
            ServerLimit               512       #default 16
            ThreadsPerChild           25        #25
            MaxRequestWorkers      12800        #default 400(16x25)
            AsyncWorkerFactor         2
            MinSpareThreads           64        # MaxRequestWorkers / 4
            MaxSpareThreads          256        #64 MinSpareThreads * 3
            MaxConnectionsPerChild     0
</IfModule>

机器:8核16 GB

您可以使用名为check_httpd_limits的模块来检查apache的事件类型。它将显示apache正在使用的配置参数及其各自的值。有关更多详细信息,请访问以下链接

解决了!我的观察是正确的

现在它显示了所有配置的worker和startServer


谢谢Karan,这个脚本是从httpd.conf文件读取的。是否有任何工具/命令可以帮助我检查是否应用了配置?
[root@mohitm ~]# apachectl -V
Server version: Apache/2.4.4 (Unix)
Server built:   Apr 16 2014 17:28:21
Server's Module Magic Number: 20120211:11
Server loaded:  APR 1.5.0, APR-UTIL 1.5.3
Compiled using: APR 1.5.0, APR-UTIL 1.5.3
Architecture:   64-bit
Server MPM:     event
  threaded:     yes (fixed thread count)
    forked:     yes (variable process count)
Server compiled with....
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_SYSVSEM_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D DYNAMIC_MODULE_LIMIT=256
 -D HTTPD_ROOT="/usr"
 -D SUEXEC_BIN="/usr/sbin/suexec"
 -D DEFAULT_PIDLOG="/var/run/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="/etc/httpd/conf/mime.types"
 -D SERVER_CONFIG_FILE="/etc/httpd/conf/httpd.conf"