I am using grails 3.3.9 to build a sample hello app. When the app is deployed it works fine. When i check after a day or so the app has already crashed. Checking the logs, i see an error "no operations allowed after connection closed.". Looks like at some point the mysql database connection is broken.
Here is the database configuration i am using in application.yml
I appreciate any insight into why does connection to database get closed automatically after a while. How can i prevent it? Thanks for the feedbacks.
I added the following for production and so far the error hasn't recurred.