my.cnf 파일에서 최대 연결 수를 약 2000으로 설정했습니다.
max_connections=2048
5.5.20으로 업그레이드했으며 이제 오류 로그에 다음 줄이 표시됩니다.
120201 19:40:24 [Warning] Changed limits: max_open_files: 1024 max_connections: 214 table_cache: 400
mysql이 max connections 값을 214로 변경 한 이유는 무엇입니까?
# mysqladmin variables | grep max_connections
| max_connections | 214
OS에 의해 제한되는 부드럽고 열려있는 파일은 1024입니다
# ulimit -Sa | grep "open files"
open files (-n) 1024
# ulimit -Ha | grep "open files"
open files (-n) 1024
실제로 사용 된 최대 연결 수 :
# mysql -e"show status like '%used_connections%'"
+----------------------+-------+
| Variable_name | Value |
+----------------------+-------+
| Max_used_connections | 95 |
+----------------------+-------+
yum? 와 같은 패키지 관리자가 설치 했습니까? 그렇다면 어떤 패키지입니까?
ulimit -n 4096