database.sarang.net
UserID
Passwd
Database
DBMS
ㆍMySQL
PostgreSQL
Firebird
Oracle
Informix
Sybase
MS-SQL
DB2
Cache
CUBRID
LDAP
ALTIBASE
Tibero
DB 문서들
스터디
Community
공지사항
자유게시판
구인|구직
DSN 갤러리
도움주신분들
Admin
운영게시판
최근게시물
MySQL Q&A 24909 게시물 읽기
No. 24909
서버가 비주기적으로 restart 됩니다. (계속해서~) 해결 : mysqld got signal 11
작성자
김한주
작성일
2005-12-29 10:31ⓒ
2006-01-05 13:47ⓜ
조회수
7,912

얼마전 서버를 4.0 대에서 -> 5.0.15 버전으로 업그레이드를 한 후 잘 사용하던 중

언제가부터 에러로그를 보니 서버가 저절로 restart 되고 있었습니다.

에러로그는 다음과 같습니다.

 

---------------

mysqld got signal 11;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
We will try our best to scrape up some info that will hopefully help diagnose
the problem, but since we have already crashed, something is definitely wrong
and this may fail.

key_buffer_size=16777216
read_buffer_size=258048
max_used_connections=8
max_connections=600
threads_connected=8
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_connections = 474779 K
bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

051229 10:04:14 mysqld restarted
051229 10:04:14 InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
051229 10:04:14 InnoDB: Starting log scan based on checkpoint at
InnoDB: log sequence number 0 52369.
InnoDB: Doing recovery: scanned up to log sequence number 0 52369
InnoDB: Last MySQL binlog file position 0 398569, file name ./mysql-bin.001974
051229 10:04:14 InnoDB: Started; log sequence number 0 52369
051229 10:04:14 [Note] Recovering after a crash using mysql-bin
051229 10:04:14 [Note] Starting crash recovery...
051229 10:04:14 [Note] Crash recovery finished.
051229 10:04:14 [Note] /usr/local/mysql_jp/libexec/mysqld: ready for connections.
Version: '5.0.15-log' socket: '/usr/local/etc/mysql_jp/mysql_jp.sock' port: 3306 FreeBSD port: mysql-server-5.0.15

--------------------

 

혹시 값을 조정하면 될 수 있지 않을까 하는 생각에 max_connections값을 조정해 보았는데

더더욱 많이 restart 되더군요..

 

restart 되는 시점의 slow log를 보았는데 별반 이상한 점을 발견하기 어려웠습니다.

------ slow log ---------

/usr/local/mysql_jp/libexec/mysqld, Version: 5.0.15-log. started with:
Tcp port: 3306 Unix socket: /usr/local/etc/mysql_jp/mysql_jp.sock
Time Id Command Argument

-----------------------

 

역시 binary log에도 별 이상한 점은 발견되지 않았구요..

어떠한 하드웨어적 트러블인건지..

무슨 원인인지 감이 안잡히네요..

 

혹시 이 문제에 대해 조금이나 겪어보신 분 있으시면 정보 공유 좀 부탁드리겠습니다.

 

이 글에 대한 댓글이 총 1건 있습니다.

원인 찾았습니다.

일반로그 파일을 남겨 마지막 부분의 쿼리를 따로 실행시켜보니 같은 현상이 벌어지더군요..

select count(*) from n_hotel  where publish=1 and area_id2=101 and level_id='1'
원인은 level_id 에 인덱스가 걸려 있는데,

이 인덱스가 깨져 있는 것으로 보입니다.

인덱스를 지운 후 실행해 보니 문제없이 실행 되더군요..

서버 업그레이드 후 데이터 import 당시에 table schema에 따른 데이터와 인덱스가 정상적으로 생성되지 못하지 않았나 싶습니다.

김한주님이 2006-01-05 13:53에 작성한 댓글입니다. Edit
[Top]
No.
제목
작성자
작성일
조회
24912출력이 이상합니다. 도와 주세요. [1]
궁금이
2005-12-30
1564
24911JOIN 을 이용해서 두개의 테이블 의 결과를 출력하고 싶습니다. [1]
송은이
2005-12-30
2836
24910mysql에서 오라클 데이타를 사용할수 있는 방법좀 알려주세요.
이점미
2005-12-29
1235
24909서버가 비주기적으로 restart 됩니다. (계속해서~) 해결 : mysqld got signal 11 [1]
김한주
2005-12-29
7912
24908고수님들 제발 부탁드립니다..급해서요...ms sql 쿼리문을 my sql 쿼리문으로 바꿔 주세요.
신우진
2005-12-28
1317
249074.1에서 4.0 다운그레이드시 한글깨짐 [3]
김용남
2005-12-28
2620
24905필드 검색 입니다. 좀 알려주세요 [1]
훈스
2005-12-28
1434
Valid XHTML 1.0!
All about the DATABASE... Copyleft 1999-2025 DSN, All rights reserved.
작업시간: 0.010초, 이곳 서비스는
	PostgreSQL v17.5로 자료를 관리합니다