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 27215 게시물 읽기
No. 27215
invalid pointer error 가 발생했습니다.
작성자
이철호(rokmn3309)
작성일
2007-11-30 19:04
조회수
6,834

안녕하세요..

mysql서버를 운영중에 메모리 에러가 발생했습니다..  

기존 서버에서 3년 정도 운영후에  새서버로 이전한지 한 6개월 정도 되어 갑니다.

그리고 운영중에 이 에러가 발생한건 처음입니다.



에러 메세지는 다음과 같습니다.

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

071129 8:31:01 - 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=6442450944

read_buffer_size=4190208

max_used_connections=1028

max_connections=2048

threads_connected=4

It is possible that mysqld could use up to

key_buffer_size + (read_buffer_size + sort_buffer_size)*max_connections = 31449072 K

bytes of memory

Hope that's ok; if not, decrease some variables in the equation.


thd=0x2bd7a626d0

Attempting backtrace. You can use the following information to find out

where mysqld died. If you see no messages after this, something went

terribly wrong...

Cannot determine thread, fp=0x400, backtrace may not be correct.

Bogus stack limit or frame pointer, fp=0x400, stack_bottom=0x479d0000, thread_stack=196608, aborting backtrace.

Trying to get some variables.

Some pointers may be invalid and cause the dump to abort...

thd->query at 0x2bdacceb70 is invalid pointer

thd->thread_id=187731897

The manual page at http://www.mysql.com/doc/en/Crashing.html contains

information that should help you find out what is causing the crash.


Number of processes running now: 0

071129 08:31:01 mysqld restarted

071129 8:31:02 [ERROR] /data/local/mysql/bin/mysqld: Table './mysql/user' is marked as crashed and should be repaired

071129 8:31:02 [Warning] Checking table: './mysql/user'

071129 8:31:02 [ERROR] 1 client is using or hasn't closed the table properly

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


운영하드웨어 스펙은 Dell PowerEdge 2950(quad-core) 에 cent4.5버전을 사용중입니다.

메모리는 

[root@db1 data]# free -m

total used free shared buffers cached

Mem: 16030 10185 5845 0 750 5059

-/+ buffers/cache: 4375 11655

Swap: 0 0 0 


문제가 생긴 시점의 시스템 하드웨어적인 부하는 그런건 sar로 본봐로는 거의 없었고요. 그

 시점대에 클론으로 정산처리를 하고 있었는데.. 잘못된 쿼리로  이런 문제가 발생할수 있나요??


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

음..


어려운 문제가 될 수도 있고, 경우에 따라 쉽게 해결할 수도 있습니다.


key_buffer_size=6442450944

 

read_buffer_size=4190208

 

max_used_connections=1028

 

max_connections=2048

 

threads_connected=4

 

It is possible that mysqld could use up to

 

key_buffer_size + (read_buffer_size + sort_buffer_size)*max_connections = 31449072 K

 

bytes of memory

 

Hope that's ok; if not, decrease some variables in the equation.


설정을 보면 31449072 K 즉, 최대 30GB의 메모리를 사용하도록 설정되어 있습니다.


free 명령을 보니, 시스템의 물리적인 메모리가 16GB 밖에 안 되네요.


위의 영문을 보면 if not, decrease some variables in the equation. 라고 나오면서, 변수의 값을 줄여서 최대 사용 메모리 량을 줄이라고 나오는데요.


이건 일반적인 해석이지만, 이철호님의 free 결과를 보면 available 한 메모리가 꽤 되네요.


따라서, 제 생각에는 메모리가 부족해서 생긴 것 같지는 않구요.


ulimit(혹은 limit) 명령을 통해서 MySQL 데몬을 돌리는 account의 버퍼 limit를 확인해 보세요.


이게 아마 제한이 있을 것입니다.


MySQL이 30GB의 메모리를 사용하려고 하지만, limit가 걸려서 지정된 메모리를 시스템에서 주지를 않으니깐 뻣어 버린 것입니다.


이 경우 unlimit로 제한을 풀면되구요.


unlimit를 풀더라도 시스템의 물리적 메모리가 16GB이니깐, 위의 변수들을 줄여서 16GB 이내로 잡아 주세요. 아마 max_connection을 줄이는게 좋을 듯 합니다.


이게 아니라면, 어려워지죠;;

허정수(wertyu)님이 2007-12-04 18:36에 작성한 댓글입니다.
[Top]
No.
제목
작성자
작성일
조회
27219[질문]속도를 고려하여 PK(INDEX)를 정하려 하는데요.. [2]
남상식
2007-12-04
2699
27218killed 로 표시되고 죽지 않는 Mysql 프로세스는 어떻게? [1]
김형섭
2007-12-04
2798
27216테이블의 용량과 쿼리 속도 [1]
hhje22
2007-12-01
2876
27215invalid pointer error 가 발생했습니다. [1]
이철호
2007-11-30
6834
27213여러개의 insertRow를 디비에서 불러오기 입력한 상태 그대로 불러오게 하기...
정기수
2007-11-30
2411
27203delete문에서 에러가 납니다.(왕초보 급질!) [1]
조남승
2007-11-29
2640
27202mysql 데이터 백업후 이전시에. [1]
김영성
2007-11-29
2748
Valid XHTML 1.0!
All about the DATABASE... Copyleft 1999-2024 DSN, All rights reserved.
작업시간: 0.019초, 이곳 서비스는
	PostgreSQL v16.2로 자료를 관리합니다