Amazon Linux 2 인스턴스 Too many connections > 팁앤테크

본문 바로가기
사이트 내 전체검색

팁앤테크

Amazon Linux 2 인스턴스 Too many connections

페이지 정보

profile_image
작성자 제로
댓글 0건 조회 34,182회 작성일 22-10-17 23:19

본문

$ mysql -u root -p

 

상태확인
$ show variables like "%max_connections%";

max_connections: 최대 접속수
기본값은 151 -> 변경 값 2000


wait_timeout 변경
$ show variables like "%wait_timeout%";

wait_timeout은 mysqld와 client가 연결을 맺은 후, 다음 쿼리까지 기다리는 최대 시간입니다.
wait_timeout안에 요청이 들어오면 다시 0으로 초기화됩니다.
too many connections 에러가 뜨지 않기 위해선 바꿔줘야합니다.
기본값 28800(8시간) ->  변경 값 3600


interactive_timeout 변경
$ show variables like "%interactive_timeout%";

interactive_timeout은 터미널 모드 (ex: mysql>)에서의 다음 쿼리까지 기다리는 최대 시간입니다.
기본값 28800(8시간) ->  변경 값 3600

 

 

/opt/bitnami/mariadb/conf/my.cnf

[mysqld]

추가

max_connections=2000
interactive_timeout=3600
wait_timeout=3600

 

상태 확인

$ sudo /opt/bitnami/ctlscript.sh status

 

전체 재부팅

$ sudo /opt/bitnami/ctlscript.sh restart

 

개별 재부팅

$ sudo /opt/bitnami/ctlscript.sh restart apache
$ sudo /opt/bitnami/ctlscript.sh restart mariadb

댓글목록

등록된 댓글이 없습니다.

Total 829건 1 페이지
  • RSS
팁앤테크 목록
번호 제목 글쓴이 조회 날짜
829 제로 3123 06-18
828 제로 5815 03-21
827 제로 5623 02-23
826 제로 31735 11-02
825 제로 34845 07-10
824 제로 46104 04-06
823 제로 32502 02-21
822 제로 38840 12-31
821 제로 31637 12-24
820 제로 31538 12-04
열람중 제로 34183 10-17
818 제로 33034 10-02
817 제로 60326 08-04
816 제로 31468 08-04
815 제로 43289 08-03
814 제로 43598 07-08
813 제로 74620 07-08
812 제로 90811 07-06
811 제로 32643 06-09
810 제로 38657 06-03
809 제로 37040 04-16
808 제로 37543 03-29
807 제로 31668 03-26
806 제로 39287 03-12
805 제로 33907 03-10

검색

회원로그인

회원가입

사이트 정보

株式会社YHPLUS / 대표 : ZERO
〒140-0011 東京都品川区東大井2-5-9-203
050-5470-4714
오픈카카오톡 (YHPLUS) :
https://open.kakao.com/o/slfDj15d

접속자집계

오늘
65,534
어제
129,136
최대
431,155
전체
10,092,786
Copyright (c) 株式会社YHPLUS. All rights reserved.