rds

Peak connections MySQL + bad gateway nginx php

I have on AWS: RDS m5.xlarge MySQL 5.6 EC2 t2.small NGINX + PHP 7.1 In an intermittent way, my MySQL is g ... ns would not be little for her to become inaccessible? How can I better investigate the reason for this peak of connections?