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
운영게시판
최근게시물
DB2 Q&A 1246 게시물 읽기
No. 1246
External Comms Error
작성자
백구
작성일
2007-01-26 19:48
조회수
10,536

안녕하십니까.

문제의 발단은 db2 connect to 에서 

사용할수 있는 메모리가 없다는 메시지로 부터 시작됩니다.


1. 일단 connect to가 안먹히는 것에 대해 알고 싶습니다.


2. 또 db2diag.log파일을 보니깐 


2007-01-26-19.35.42.754331+540 I1017144251G409    LEVEL: Severe

PID     : 15489                TID  : 3006077440  PROC : db2agent (instance)

INSTANCE: db2inst1             NODE : 000

APPHDL  : 0-408                APPID: AC173743.C008.009A06103541

FUNCTION: DB2 UDB, base sys utilities, sqleattach_agent, probe:60

RETCODE : ZRC=0x81360012=-2127167470=SQLZ_RC_CMERR, SQLT_SQLJC

          "External Comm error"


이러한 에러 메시지가 계속 나타납니다.


에러의 원인과 처리 방법에 대해서 알고 싶습니다.

여기 저기 찾아보니깐 

lock escalations 또는 lock timeout 의 문제라고 합니다.


혹시 이문제가 맞다면 

tuning Locklist, maxlocks parameters 에 대해 가르쳐 주시면 감사하겠습니다.


죄송합니다.



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

db2diag.log filled with sqleattach_agent function errors

 Technote (FAQ)
 
Problem
This document provides troubleshooting information for when your db2diag.log is filled with errors from the sqleattach_agent function, with RETCODE : ZRC=0x81360012=-2127167470.
 
Cause
The 0x81360012 message is informational, and can be ignored. It means that a communication failure has occurred when an instance attachment was attempted and the authentication of the user failed. Here are three situations that cause 0x81360012:


1) This type of message can occur if you are using a remote workstation running the DB2® Administration Client and trying to attach to the database via the Control Center. In particular, the message is generated if you attempt the attachment using the
incorrect userid and password combination.


2) These messages can also be caused when the health monitor is started
on any (remote) machine that has the instance cataloged. By default,
the health monitor tries to attach to all nodes in the node directory,
and since it does not supply a userid or password, the server will
reject it.


3) It can also be related to having the db2detaildeadlock event monitor switched on.

In DB2 Universal Database™ (DB2 UDB) Version 8, the event monitor DB2DETAILDEADLOCK is defined by default and set to
AUTOSTART. Thus when the database is started, the event monitor will be started.
If the database is being started (for example via a CONNECT or ATTACH statement) from a remote client, then you need to specify a valid userid and password to avoid adding these messages to the db2diag.log.

Diagnosis Details
An example of the error message is as follows:

2006-02-07-13.46.28.131903-480 I705173A435 LEVEL: Severe

PID : 6664364 TID : 1 PROC : db2agent (instance) 0
INSTANCE: instit01 NODE : 000 DB : CSE1TR01
APPHDL : 0-171 APPID: PE6098D0.FD08.019607214638
FUNCTION: DB2 UDB, base sys utilities, sqleattach_agent,
probe:60
RETCODE : ZRC=0x81360012=-2127167470=SQLZ_RC_CMERR,
SQLT_SQLJC
"External Comm error"

 
Solution
These messages can be ignored.

If you wish to determine order the IP address of the remote machine which is trying to attach, record the application ID (APPID) specified in the db2diag.log messages and transform it to an IP address using the instructions referenced in the Related Information section, below




1. 제어센터에서 접속을 할때 떨어질 수 있는데 이것은 무시.
2. 이게 가장 의심스러운데요..  health monitor가 메모리를 많이 먹습니다.
    db2 get dbm cfg 를 하셔셔 health monitor가 켜져 있는지 확인 
    (HEALTH_MON) = ON이며 
    db2 update dbm cfg using HEALTH_MON OFF 
    하시고 db2stop/start
3. event monitor를 사용했을때 떨어진다고 했는데..
마라도님이 2007-01-29 09:52에 작성한 댓글입니다.
이 댓글은 2007-01-29 09:53에 마지막으로 수정되었습니다. Edit

댓글 남겨 주셔서 감사합니다.
질문을 올린 사람입니다.

님께서 올려주신 내용에서 health monitor를 off로 하시라고 했는데.

솔찍히 그방법으로 근본적인 문제를 해결할 수 있을지 의문입니다.
메모리 사용량의 문제로 발생하는 문제를 단지 health monitor의 사용을 막아서
해결할 수 있을지가 의문입니다.

답변의 글 너무 감사하구요.
혹시 다른 분들의 의견도 부탁드리겠습니다.

백구님이 2007-01-29 12:53에 작성한 댓글입니다. Edit

메모리를 많이 사용하는 process를 찾으시려면 

ps aug | sort +5 -nr |head 
를 이용해보세요. RSS는 사용하는 메모리의 크기이고 이 크기의 순서대로 sort해서 보는 방법입니다.
 
db2hmon는 health monitor가 사용하는 process 이름입니다. 

마라도님이 2007-01-30 10:57에 작성한 댓글입니다. Edit
[Top]
No.
제목
작성자
작성일
조회
1249테이블 및 컬럼, 인덱스 정보 확인하는 방법좀요. [1]
튼솔
2007-01-31
8878
1248[질문] 옵티마이저모드에 대해서 질문입니다. [1]
김경호
2007-01-29
7515
1247급해요 ㅠㅠ DB2 SQL 에러 -305 [2]
cheese
2007-01-29
7899
1246External Comms Error [3]
백구
2007-01-26
10536
1245db2pd 사용중 질문... [1]
HENA
2007-01-25
7346
1244버젼7에서 받은 백업이미지를 버젼8에서 restore가 가능한가요? [1]
db초보
2007-01-23
7153
1243락 관련 질문인데요 [1]
안건조
2007-01-19
7507
Valid XHTML 1.0!
All about the DATABASE... Copyleft 1999-2024 DSN, All rights reserved.
작업시간: 0.021초, 이곳 서비스는
	PostgreSQL v16.2로 자료를 관리합니다