mercredi 2 septembre 2020

Apache webserver MaxRequestWorkers

I am using Apache web server and want to know if it is possible to get the MaxRequestWorkers value from a running process.

I tried with the following command to get the run settings :

/usr/local/apache/bin/httpd -S 

The output is :

VirtualHost configuration: 
*:443 SOME_IP_ADDRESS (/usr/local/apache/conf/httpd.conf:29) 
AH00318: WARNING: MaxRequestWorkers of 3000 would require 50 servers and would exceed ServerLimit of 16, decreasing to 960. To increase, please see the ServerLimit directive. 
ServerRoot: "/usr/local/apache" 
Main DocumentRoot: "/usr/local/apache/htdocs" 
Main ErrorLog: "|/usr/local/apache/bin/rotatelogs -n 1 logs/error_log 10M logs/error_log" 
Mutex ssl-cache: using_defaults 
Mutex default: dir="/usr/local/apache/logs/" mechanism=default 
Mutex mpm-accept: using_defaults 
Mutex ssl-stapling-refresh: using_defaults 
Mutex rewrite-map: using_defaults 
Mutex ssl-stapling: using_defaults 
Mutex proxy: using_defaults 
PidFile: "/usr/local/apache/logs/httpd.pid" 
Define: DUMP_VHOSTS 
Define: DUMP_RUN_CFG 
User: name="webserv" id=1001 
Group: name="webserv" id=1003

There I can get the MaxRequestWorkers because it is set to high and thus triggers a warning but if it is set correctly I can't access that way.

Is there a way to get it ?

Thank you.




Aucun commentaire:

Enregistrer un commentaire