사용자 도구

사이트 도구


java:database:dbcp

문서의 이전 판입니다!


DBCP - Java Connection Pool

Eviction 정책

  • numTestsPerEvictionRun : 작게 줄수록 성능상 유리
  • timeBetweenEvictionRunsMillis : numTestsPerEvictionRun이 작은 상태에서 이 값도 작으면 오랜시간 idle 상태로 유지되면서 비정상 커넥션으로 떨어질 가능성이 높아짐.

maxConnLifetimeMillis 오류로그

  • java.lang.Exception: The lifetime of the connection [300,008] milliseconds exceeds the maximum permitted value of [300,000] milliseconds 와 같은 WARN 메시지 발생

참고

java/database/dbcp.1444296376.txt.gz · 마지막으로 수정됨: 2015/10/08 17:56 저자 kwon37xi