# Troubleshoot ECS Performance Issues with AWS X-Ray 🚀🔧

Is your app feeling sluggish? 📉

A company recently faced this issue with their microservices on Amazon ECS behind an Application Load Balancer (ALB). Certain user requests were dragging down performance. 😟

Time to dig deeper!

The Solution: AWS X-Ray 🔍

Here's the fix:

1️⃣ Create a Docker image running the 𝐀𝐖𝐒 𝐗-𝐑𝐚𝐲 𝐝𝐚𝐞𝐦𝐨𝐧.

2️⃣ Run it alongside your microservices in ECS.

3️⃣ Use the X-Ray console to analyze request behavior and pinpoint performance bottlenecks. 🎯

X-Ray’s distributed tracing helps you uncover hidden issues and optimize your app across services. ✨

👉 Learn more about running the X-Ray daemon on Amazon ECS:

[Running the X-Ray daemon on Amazon ECS - AWS X-Ray](https://docs.aws.amazon.com/xray/latest/devguide/xray-daemon-ecs.html)
