-1

on my aws maria db rds instance I got lots of connections ... and then the database is not accassible again.

enter image description here

in this case there are only 77 connections. but often there are more then 150...

I run a microservice construct with 4 microservices each of them is a playframework application written in scala.

thanks

OlivierBlanvillain
  • 7,701
  • 4
  • 32
  • 51
Felix
  • 5,452
  • 12
  • 68
  • 163

1 Answers1

1

They are indeed connections, to double check this login to the RDS instance and run this:

SHOW PROCESSLIST;

What could be happening is that your applications are not closing the connection after using it.

Check also this answer https://stackoverflow.com/a/4284212/1135424 could help to set better values to the timeout variables:

set global wait_timeout=3;
set global interactive_timeout=3;
nbari
  • 25,603
  • 10
  • 76
  • 131
  • thought about it as well. DB connection is set up with slick. Changed the deprecated version this morning. gonna try if the new profile driver will fix it. thanks – Felix Sep 03 '17 at 15:22