Identifying Memory Spikes in EC2 Instance

Summary

Investigating weekly memory spikes in EC2 instance with multiple connections


Question

I have to reboot my EC2 instance periodically due to running out of memory. I’m curious: does anyone know what is causing the weekly spikes in memory usage? I have 4 connections: 2 of which run every 15 min, 1 which runs hourly, 1 which runs daily.



This topic has been created from a Slack thread to give it more visibility.
It will be on Read-Only mode here. Click here if you want to access the original thread.

Join the conversation on Slack

["ec2-instance", "memory-spikes", "connections", "memory-usage"]

Here are my connections

What version of the platform are you running? Are you running using docker-compose or Kubernetes method?

Docker compose, and I’m running 0.50.20

Can you docker stats and check how much resources each service is using?