Advertisement
Guest User

Untitled

a guest
Jun 24th, 2016
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.81 KB | None | 0 0
  1. WARN: SQL Error: 0, SQLState: null Jun 24, 2016 9:51:45 PM
  2. org.hibernate.engine.jdbc.spi.SqlExceptionHelper logExceptions ERROR:
  3. HikariPool-1 - Connection is not available, request timed out after 10000ms. Jun
  4. 24, 2016 9:51:45 PM com.healthymama.utils.DEVLoggingFilter log INFO: 967 *
  5. Server responded with a response on thread grizzly-http-server-2
  6.  
  7. url = String.format("jdbc:mysql://%s:%s/%s?autoReconnect=true", host, port, bundle.getString("db.database"));
  8.  
  9. configuration
  10. .setProperty("hibernate.order_updates", "true")
  11. .setProperty("hibernate.dialect", "org.hibernate.dialect.MySQLDialect")
  12. .setProperty("hibernate.hbm2ddl.auto", "update")
  13. .setProperty("hibernate.connection.provider_class", "com.zaxxer.hikari.hibernate.HikariConnectionProvider")
  14. .setProperty("hibernate.hikari.dataSourceClassName", "com.mysql.jdbc.jdbc2.optional.MysqlDataSource")
  15. .setProperty("hibernate.hikari.dataSource.url", url)
  16. .setProperty("hibernate.hikari.dataSource.user", username)
  17. .setProperty("hibernate.hikari.dataSource.password", password)
  18. .setProperty("hibernate.hikari.dataSource.cachePrepStmts", "true")
  19. .setProperty("hibernate.hikari.dataSource.prepStmtCacheSize", "250")
  20. .setProperty("hibernate.hikari.dataSource.prepStmtCacheSqlLimit", "2048")
  21. .setProperty("hibernate.hikari.minimumIdle", "5")
  22. .setProperty("hibernate.hikari.minimumIdle", "5")
  23. .setProperty("hibernate.hikari.maximumPoolSize", "10")
  24. .setProperty("hibernate.hikari.idleTimeout", "30000")
  25. .setProperty("hibernate.hikari.connectionTestQuery", "SELECT 1")
  26. .setProperty("hibernate.hikari.connectionTimeout", "10000");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement