Guest User

Untitled

a guest
Nov 29th, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.48 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
  3. "http://www.springframework.org/dtd/spring-beans.dtd">
  4.  
  5. <beans>
  6. <bean id="dataSource" class = "com.mchange.v2.c3p0.ComboPooledDataSource" destroy-method="close">
  7. <property name="driverClass" value="org.postgresql.Driver"/>
  8.  
  9. <property name="jdbcUrl" value="jdbc:postgresql://localhost:5432/test"/>
  10.  
  11. <property name="user" value="postgres"/>
  12. <property name="password" value="postgres"/>
  13. <!-- pool sizing -->
  14. <property name="initialPoolSize" value="20" />
  15. <property name="minPoolSize" value="20" />
  16. <property name="maxPoolSize" value="200" />
  17. <property name="acquireIncrement" value="3" />
  18. <property name="maxStatements" value="0" />
  19.  
  20. <!-- retries -->
  21. <property name="acquireRetryAttempts" value="30" />
  22. <property name="acquireRetryDelay" value="1000" /> <!-- 1s -->
  23. <property name="breakAfterAcquireFailure" value="false" />
  24.  
  25. <!-- refreshing connections -->
  26. <property name="maxIdleTime" value="180" /> <!-- 3min -->
  27. <property name="maxConnectionAge" value="10" /> <!-- 1h -->
  28.  
  29. <!-- timeouts and testing -->
  30. <property name="checkoutTimeout" value="30000" /> <!-- 30s -->
  31. <property name="idleConnectionTestPeriod" value="60" /> <!-- 60 -->
  32. <property name="testConnectionOnCheckout" value="true" />
  33. <property name="preferredTestQuery" value="SELECT 1" />
  34. <property name="testConnectionOnCheckin" value="true" />
  35.  
  36. </bean>
  37. </beans>
  38.  
  39. 2017-11-29 13:07:41,367 WARN [org.hibernate.util.JDBCExceptionReporter] (ajp-0.0.0.0-8010-107) SQL Error: 0, SQLState: null
  40. 2017-11-29 13:07:41,367 WARN [org.hibernate.util.JDBCExceptionReporter] (ajp-0.0.0.0-8010-126) SQL Error: 0, SQLState: null
  41. 2017-11-29 13:07:41,367 WARN [org.hibernate.util.JDBCExceptionReporter] (ajp-0.0.0.0-8010-76) SQL Error: 0, SQLState: null
  42. 2017-11-29 13:07:41,367 ERROR [org.hibernate.util.JDBCExceptionReporter] (ajp-0.0.0.0-8010-76) An attempt by a client to checkout a Connection has timed out.
  43. 2017-11-29 13:07:41,367 ERROR [org.hibernate.util.JDBCExceptionReporter] (ajp-0.0.0.0-8010-107) An attempt by a client to checkout a Connection has timed out.
  44. 2017-11-29 13:07:41,367 WARN [org.hibernate.util.JDBCExceptionReporter] (ajp-0.0.0.0-8010-76) SQL Error: 0, SQLState: null
  45. 2017-11-29 13:07:41,368 ERROR [org.hibernate.util.JDBCExceptionReporter] (ajp-0.0.0.0-8010-76) An attempt by a client to checkout a Connection has timed out.
  46. 2017-11-29 13:07:41,367 ERROR [org.hibernate.util.JDBCExceptionReporter] (ajp-0.0.0.0-8010-126) An attempt by a client to checkout a Connection has timed out.
  47. 2017-11-29 13:07:41,368 WARN [org.hibernate.util.JDBCExceptionReporter] (ajp-0.0.0.0-8010-4) SQL Error: 0, SQLState: null
  48. 2017-11-29 13:07:41,368 WARN [org.hibernate.util.JDBCExceptionReporter] (ajp-0.0.0.0-8010-80) SQL Error: 0, SQLState: null
  49. 2017-11-29 13:07:41,368 ERROR [org.hibernate.util.JDBCExceptionReporter] (ajp-0.0.0.0-8010-80) An attempt by a client to checkout a Connection has timed out.
  50. 2017-11-29 13:07:41,368 WARN [org.hibernate.util.JDBCExceptionReporter] (ajp-0.0.0.0-8010-46) SQL Error: 0, SQLState: null
  51. 2017-11-29 13:07:41,368 ERROR [org.hibernate.util.JDBCExceptionReporter] (ajp-0.0.0.0-8010-46) An attempt by a client to checkout a Connection has timed out.
  52. 2017-11-29 13:07:41,368 WARN [org.hibernate.util.JDBCExceptionReporter] (ajp-0.0.0.0-8010-46) SQL Error: 0, SQLState: null
Add Comment
Please, Sign In to add comment