[Apache] ServerLimit / MaxRequestWorkers
페이지 정보
작성자 sbLAB 댓글 0건 조회 1,463회 작성일 23-06-11 08:27본문
Apache 동시 접속 연결 수 설정
[Ubuntu22.04 + Apache 2.4.x + xampp]
#cd /opt/lampp/bin/
#./apachectl -V 또는 ./httpd -V
------------------------------------------------
erver version: Apache/2.4.54 (Unix)
Server built: Dec 29 2022 17:54:53
Server's Module Magic Number: 20120211:124
Server loaded: APR 1.5.2, APR-UTIL 1.5.4, PCRE 8.40 2017-01-11
Compiled using: APR 1.5.2, APR-UTIL 1.5.4, PCRE 8.40 2017-01-11
Architecture: 64-bit
Server MPM: prefork
threaded: no
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="/opt/lampp"
-D SUEXEC_BIN="/opt/lampp/bin/suexec"
-D DEFAULT_PIDLOG="logs/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="etc/mime.types"
-D SERVER_CONFIG_FILE="etc/httpd.conf"
---------------------------------------------------
#./apachectl 또는 ./httpd
H00180: WARNING: MaxRequestWorkers of 1000 exceeds ServerLimit value of 256 servers,
decreasing MaxRequestWorkers to 256. To increase, please see the ServerLimit directive.
httpd (pid 1392310) already running
#cd /opt/lampp/etc/extra
#nano httpd-mpm.conf
-------------------------------
<IfModule mpm_prefork_module>
StartServers 5
MinSpareServers 5
MaxSpareServers 10
ServerLimit 1000 // ServerLimit 추가 - xampp 기본 값은 256
MaxRequestWorkers 1000 // 변경
MaxConnectionsPerChild 0
</IfModule>
--------------------------------
#/opt/lampp/bin/httpd
httpd (pid 2140158) already running <- WARNING 없음
[참고]
라즈베리 설치버전 설정 파일 경로
# cd /etc/apache2/mods-enabled
# nano mpm_prefork.conf
# systemctl restart apache2
- 이전글Nginx Test 23.06.11
- 다음글[nginx] Ubuntu22.04 + nginx-1.24.0 + nginx_upstream_check_module(Health-Check open source) 23.06.10
댓글목록
등록된 댓글이 없습니다.