We are trying to add an AWS X ray JSBC interceptor to our lambda functions, and to add a JDBC interceptor we added a Tomcat JDBC data source with maximum active and maximum idle connection as 1. Connections are not reused, and we get a lot of “already closed error connection” . Another picture that we observed is that Lambda takes almost 10 minutes to clear the connection from the Aurora DB. Has anyone successfully implemented pooling with Lambda (Java 8) and RDS (Aurora).
source
share