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 29635 게시물 읽기
No. 29635
디비에 ..락이 걸리는데...
작성자
쥬시쿨(쥬시쿨)
작성일
2010-05-02 15:59
조회수
10,031

Locked                        | update `xe_documents` as documents set `readed_count` = readed_count+1  where (document_srl = 717935 |
| 6300 | ttttt| localhost | ttttt| Query   | 2    | Locked                        | select modules.* from `xe_modules` as modules,`xe_documents` as documents   where (documents.documen |
| 6301 |ttttt| localhost | ttttt| Query   | 2    | Locked                        | select modules.* from `xe_modules` as modules,`xe_documents` as documents   where (documents.documen |
| 6302 | ttttt| localhost | ttttt| Query   | 1    | Locked                        | select files.upload_target_srl as `document_srl` from `xe_files` as files,`xe_modules` as modules,`x |
| 6303 | ttttt| localhost | ttttt| Query   | 1    | Locked                        | select files.upload_target_srl as `document_srl` from `xe_files` as files,`xe_modules` as modules,`x

 

 

 

안녕하세요 ...

 

ㅠ.ㅠ

 

이게 무엇때문에 락이 걸리는걸까요 ???

 

게시판 스킨도 바꾸어 보고 .. 락걸리는 부분을 체크중인데..도데체 어디가 문제인지 봐도 알수가 없는데

어떻게 체크를 해야 하는것인가요 ?

 mysqld cpu 점유률도 거의 80 90% 정도 됩니다 ...

싸이트를 zb4에서 xe로 이전한 상태이구요...

 

 

 | 7614 | yyyyyy | localhost | yyyyyy | Query   | 22   | Locked       | select * from `xe_documents` as documents   where (documents.module_srl in (53)) and list_order < 21 |
| 7618 | yyyyyy | localhost | yyyyyy | Query   | 20   | Locked       | select * from `xe_documents` as documents   where (documents.module_srl in (53)) and list_order < 21 |
| 7620 | yyyyyy | localhost | yyyyyy | Query   | 19   | Locked       | select modules.* from `xe_modules` as modules,`xe_documents` as documents   where (documents.documen |
| 7626 | yyyyyy | localhost | yyyyyy | Query   | 17   | Locked       | select * from `xe_documents` as documents   where (documents.module_srl in (53)) and list_order < 21 |
| 7628 | yyyyyy | localhost | yyyyyy | Query   | 17   | Locked       | select * from `xe_documents` as documents   where (documents.module_srl in (53)) and list_order < 21 |
| 7632 | yyyyyy | localhost | yyyyyy | Query   | 16   | Locked       | select * from `xe_documents` as documents   where (documents.module_srl in (53)) and list_order < 21 |
| 7634 | yyyyyy | localhost | yyyyyy | Query   | 16   | Locked       | select modules.* from `xe_modules` as modules,`xe_documents` as documents   where (documents.documen |
| 7635 | yyyyyy | localhost | yyyyyy | Query   | 15   | Locked       | select modules.* from `xe_modules` as modules,`xe_documents` as documents   where (documents.documen |
| 7637 | yyyyyy | localhost | yyyyyy | Query   | 12   | Locked       | select * from `xe_documents` as documents   where (module_srl in (176) and is_notice = 'Y')          |
| 7641 | yyyyyy | localhost | yyyyyy | Query   | 10   | Locked       | select * from `xe_documents` as documents   where (documents.module_srl in (53)) and list_order < 21 |
| 7648 | yyyyyy | localhost | yyyyyy | Query   | 7    | Locked       | select * from `xe_documents` as documents   where (documents.module_srl in (53)) and list_order < 21 |
| 7652 | yyyyyy | localhost | yyyyyy | Query   | 6    | Locked       | select * from `xe_documents` as documents   where (documents.module_srl in (53)) and list_order < 21 |
| 7653 | yyyyyy | localhost | yyyyyy | Query   | 6    | Locked       | select count(*) as count from `xe_documents` as documents   where (member_srl = 7056572)             |
| 7654 | yyyyyy | localhost | yyyyyy | Query   | 5    | Locked       | select * from `xe_documents` as documents   where (documents.module_srl in (53)) and list_order < 21 |
| 7656 | yyyyyy | localhost | yyyyyy | Query   | 4    | Locked       | select modules.* from `xe_modules` as modules,`xe_documents` as documents   where (documents.documen |
| 7659 | yyyyyy | localhost | yyyyyy | Query   | 4    | Locked       | select * from `xe_documents` as documents   where (documents.module_srl in (53)) and list_order < 21 |
| 7660 | yyyyyy | localhost | yyyyyy | Query   | 3    | Locked       | select * from `xe_documents` as documents   where (module_srl in (6807864) and is_notice = 'Y')      |
| 7661 | yyyyyy | localhost | yyyyyy | Query   | 3    | Locked       | select * from `xe_documents` as documents   where (module_srl in (142) and is_notice = 'Y')          |
| 7665 | yyyyyy | localhost | yyyyyy | Query   | 3    | Locked       | update `xe_documents` as documents set `readed_count` = readed_count+1  where (document_srl = 709823 |
 

 

 

락때문에 부하가 너무 많이 걸려 ..홈페이지 속도가 나우누리시절이에요...ㅠ.ㅠ

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

기본적으로는 slow-query log를 보세요. 그리고 제시해주신 쿼리들은 락이 걸린 쿼리들이고 락을 유발시킨 쿼리는 보이지 않네요. show full processlist를 통해 sending data나 copying to tmp table등.. 실제로 락을 유발시킨 쿼리를 찾아보세요.

박현우(lqez)님이 2010-05-03 11:11에 작성한 댓글입니다.
이 댓글은 2010-05-03 11:11에 마지막으로 수정되었습니다.
[Top]
No.
제목
작성자
작성일
조회
29638안녕하세요 mysql질문입니다. [9]
투루로맨스
2010-05-07
7974
29637utf8->euc-kr 로 변환방법좀알려주세요 [2]
윤은숙
2010-05-07
8265
29636innoDB는 인덱싱시 B+트리를 사용하나요 B트리를 사용하나요? [2]
최정우
2010-05-02
8476
29635디비에 ..락이 걸리는데... [1]
쥬시쿨
2010-05-02
10031
29634기간별 그룹을 구하고 싶습니다. [2]
장민철
2010-04-30
7669
296333개 테이블 join 해서 조회를 해보고 싶습니다. [2]
이현승
2010-04-30
7618
29632select 할 때 칼럼명에 alias 테이블 이름 붙이는 방법 찾아요 [2]
pithecus
2010-04-29
7866
Valid XHTML 1.0!
All about the DATABASE... Copyleft 1999-2024 DSN, All rights reserved.
작업시간: 0.037초, 이곳 서비스는
	PostgreSQL v16.2로 자료를 관리합니다