Advertisement
Guest User

Untitled

a guest
Oct 29th, 2017
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.74 KB | None | 0 0
  1. # Database connection settings.
  2. dataSource.url = jdbc:mysql://localhost:3306/jopacode_v2e?characterEncoding=utf-8
  3. dataSource.user = root
  4. dataSource.password = root
  5.  
  6. # This is the name of the DataSource class provided by the JDBC driver.
  7. # Consult the documentation for your specific JDBC driver to get this class name.
  8. dataSourceClassName = com.mysql.jdbc.jdbc2.optional.MysqlDataSource
  9.  
  10. # This property controls the maximum number of milliseconds that a client (that's you) will wait for a connection from the pool.
  11. # If this time is exceeded without a connection becoming available, an SQLException will be thrown.
  12. connectionTimeout = 30000
  13.  
  14. # This property controls the maximum amount of time (in milliseconds) that a connection is allowed to sit idle in the pool.
  15. # Whether a connection is retired as idle or not is subject to a maximum variation of +30 seconds, and average variation of +15 seconds.
  16. # A connection will never be retired as idle before this timeout.
  17. # A value of 0 means that idle connections are never removed from the pool.
  18. # Default: 600000 (10 minutes)
  19. idleTimeout = 600000
  20.  
  21. # This property controls the amount of time that a connection can be out of the pool before a message is logged indicating
  22. # a possible connection leak. A value of 0 means leak detection is disabled.
  23. # While the default is 0, and other connection pool implementations state that leak detection is "not for production"
  24. # as it imposes a high overhead, at least in the case of HikariCP the imposed overhead is only 5?s (microseconds)
  25. # split between getConnection() and close(). Maybe other pools are doing it wrong,
  26. # but feel free to use leak detection under HikariCP in production environments if you wish.
  27. leakDetectionThreshold = 0
  28.  
  29. # This property controls the maximum lifetime of a connection in the pool.
  30. # When a connection reaches this timeout, even if recently used, it will be retired from the pool.
  31. # An in-use connection will never be retired, only when it is idle will it be removed.
  32. # We strongly recommend setting this value, and using something reasonable like 30 minutes or 1 hour.
  33. # A value of 0 indicates no maximum lifetime (infinite lifetime), subject of course to the idleTimeout setting.
  34. # Default: 1800000 (30 minutes)
  35. maxLifetime = 1800000
  36.  
  37. # This property controls the maximum size that the pool is allowed to reach, including both idle and in-use connections.
  38. # Basically this value will determine the maximum number of actual connections to the database backend.
  39. # A reasonable value for this is best determined by your execution environment.
  40. # When the pool reaches this size, and no idle connections are available,
  41. # calls to getConnection() will block for up to connectionTimeout milliseconds before timing out.
  42. maximumPoolSize = 100
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement