IT개발지식
일상에 묻힌 IT개발지식 기억하기-Tomcat Jdbc Pool
디데브
2023. 2. 21. 12:04
2023/02/23 갱신---------------------------------------------------------------------------------------------------------------------------------------
#최대 connection 개수
spring.datasource.tomcat.max-active:25
#초기화 connection 개수
spring.datasource.tomcat.initial-size=5
#idle 상태의 connection 최대 개수
spring.datasource.tomcat.max-idle=5
#idle 상태의 connection 최소 개수
spring.datasource.tomcat.min-idle=5
#true로 주면, idle 상태에서도 test를 실행함
spring.datasource.tomcat.test-while-idle=true
#idle 상태가 얼마나 지속되면 test를 실행할 것인지. mil값임.
spring.datasource.tomcat.time-between-eviction-runs-millis=3600000
#connection의 유효기간.
spring.datasource.tomcat.min-evictable-idle-time-millis=7200000
#connection을 가져올 때, test 할것인지 여부
spring.datasource.tomcat.testOnBorrow=true
#test QUERY
spring.datasource.tomcat.validationQuery=SELECT 1
spring.datasource.tomcat.max-active:25
#초기화 connection 개수
spring.datasource.tomcat.initial-size=5
#idle 상태의 connection 최대 개수
spring.datasource.tomcat.max-idle=5
#idle 상태의 connection 최소 개수
spring.datasource.tomcat.min-idle=5
#true로 주면, idle 상태에서도 test를 실행함
spring.datasource.tomcat.test-while-idle=true
#idle 상태가 얼마나 지속되면 test를 실행할 것인지. mil값임.
spring.datasource.tomcat.time-between-eviction-runs-millis=3600000
#connection의 유효기간.
spring.datasource.tomcat.min-evictable-idle-time-millis=7200000
#connection을 가져올 때, test 할것인지 여부
spring.datasource.tomcat.testOnBorrow=true
#test QUERY
spring.datasource.tomcat.validationQuery=SELECT 1
2023/02/22 작성---------------------------------------------------------------------------------------------------------------------------------------
글쓴이에게 감사드립니다.
https://earth-95.tistory.com/137
[tomcat7] tomcat JDBC Connection pool
들어가기 전에 하기 내용은 구글링과 기존에 알고 있던 부분을 토대로 tomcat JDBC connection pool 속성에 대해 정리한 글입니다. Tomcat JDBC Connection Pool 설정 아래 표는 tomcat7 기준 tomcat JDBC Connection pool
earth-95.tistory.com