How do I increase the maxPoolSize in Grails when using mysql? It appears to be using a default connection pool only 8 connections.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Unfortunately you will need to configure the dataSource spring bean for yourself if you want to gain more control over it. This can be done by defining the bean in ‘grails-app/conf/spring/resources.groovy’
It will override the default Grails DataSource which is configured in ‘grails-app/conf/DataSource.groovy’.
Probably it should also work to override the pool-size properties of the default grails DataSource.groovy configuration like this leveraging the PropertyOverrideConfigurer (in Config.groovy):