Slick and bonecp: org.postgresql.util.PSQLException: FATAL: sorry, too many clients already error
Locally when I am developing my application I launch my play2 application using sbt run I love how I can make code changes, and then reload my browser to see my changes. After about roughly 10 code changes or so, I get a postgresql too many connection error (see below). My db connection is using the below DatabaseAccess.scala class. I'm guessing on each reload it is creating a bunch of connections to postgresql. In my Global am currently doing: override def onStart(app: Application) { Logger.info("Global.onStart") DatabaseAccess.loadConfiguration() } In production I am also worried that if I