'dbcp'에 해당되는 글 2

  1. 2009.12.31 다음에서도 iBatis를 쓰는구나.
  2. 2009.08.14 시스템 Hangup 현상 분석

다음에서도 iBatis를 쓰는구나.

다음에서 글을 보는데 에러가 발생했다.

SqlMapClient operation; uncategorized SQLException for SQL []; SQL state [null]; error code [0]; --- The error occurred in net/daum/gaia/core/domain/dao/sql/QnaInfo.xml. --- The error occurred while executing query. --- Check the SELECT bbsId, articleId, qId, viewUrl, itemJsonUrl, regDate FROM qnaInfo WHERE bbsId = ? and articleId = ? . --- Check the SQL Statement (preparation failed). --- Cause: org.apache.commons.dbcp.SQLNestedException: Cannot get a connection, pool error Timeout waiting for idle object; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException: --- The error occurred in net/daum/gaia/core/domain/dao/sql/QnaInfo.xml. --- The error occurred while executing query. --- Check the SELECT bbsId, articleId, qId, viewUrl, itemJsonUrl, regDate FROM qnaInfo WHERE bbsId = ? and articleId = ? . --- Check the SQL Statement (preparation failed). --- Cause: org.apache.commons.dbcp.SQLNestedException: Cannot get a connection, pool error Timeout waiting for idle object

iBatis를 사용하고
Tomcat을 사용하나 보다.[각주:1] DBCP에 속한 예외 클래스가 보인다.
Spring을 쓰나?
  1. 2010-05-05 Tomcat에 포함된 DBCP 클래스가 아니잖아. [본문으로]

시스템 Hangup 현상 분석

Z건설사 시스템이 페이지가 열리지 않는 경우가 발생함.

[todo] 스레드덤프를 남겼지만 분석을 하지 못함.

어디에서 발생하는 에러인지 원인이 WAS인지 DB인지 파악도 안됨.

DBCP 설정에서 removeAbandoned, logAbandoned를 true로 두고 모니터링을 함.

예외처리도 정확하게 되었지만 Connection이 닫히지 않아 누수가 되고 있다.

[todo] 스레드덤프받아서 분석해보자.