Good afternoon! I was reading a little bit about h...
# questions
p
Good afternoon! I was reading a little bit about how to monitor database connections and stumbled upon HikariCP, that seems to be an alternative to Tomcat JDBC Pool, which seems to be the default in Grails. Does using HikariCP provide any advantage above the default for Grails? What I read is basically: HikariCP consumes less memory, it can be monitored easier, and has more options for configuration. Does someone here actually use it? Noticed any difference?
j
It makes a HUGE difference. HikariCP is the default in Grails 7 generated applications.
p
When you have time, can you point out in which areas it makes a difference?
I'm still in Grails 5.x and if this is something that improves my user's experience, I would gladly change it.
j
p
🙌
j
p
cool thanks
they mention the tcp keepalive must be set, in the PR I don't see a reference to that, isn't that needed?
(even for the default H2 connections)
j
That is a driver level setting (tcpKeepAlive=true), which we could add to generated application in grails-forge. Can you create an issue and/or PR to add it there for each support DB? https://github.com/apache/grails-forge/tree/7.0.x/grails-forge-core/src/main/java/org/grails/forge/feature/database
p
sure