
> ## Documentation Index
> Fetch the complete documentation index at: https://docs.medusajs.com/llms.txt
> Use this file to discover all available pages before exploring further.
  
<AgentInstructions>

## Submitting Feedback

If you encounter incorrect, outdated, or confusing documentation on this page, submit feedback:

POST https://docs.medusajs.com/cloud/agents/feedback

```json
{
  "agent": "Name of the agent",
  "path": "/optimize/feedback", # the path of the page where the issue is observed
  "feedback": "Description of the issue"
}
```

Only submit feedback when you have something specific and actionable to report.

</AgentInstructions>

# Environment Performance Monitoring

In this guide, you'll learn how to monitor your environment's performance in Cloud.

## Monitoring Overview

Medusa allows you to monitor the performance of your deployed [environment](https://docs.medusajs.com/environments)'s backend in Cloud.

By monitoring key metrics, you can ensure that your environment is running smoothly, identify potential performance bottlenecks, and troubleshoot issues effectively.

You can monitor metrics like:

- [Servers](https://docs.medusajs.com/monitoring/servers): Monitor CPU usage, memory consumption, and restarts of your environment's server instances.
- [Workers](https://docs.medusajs.com/monitoring/workers): Monitor CPU usage, memory consumption, and restarts of your environment's worker instances, which handle background jobs.
- [HTTP](https://docs.medusajs.com/monitoring/http): Monitor HTTP request patterns, response times, and HTTP-related performance data.

***

## Access Environment Monitoring

To view your project environment's server performance:

1. Go to your [environment's dashboard](https://docs.medusajs.com/environments/long-lived#open-environment-dashboard)
2. Click on the "Monitoring" tab.

This opens the monitoring dashboard, where you can select the specific metrics you want to view from the sidebar.

***

## Troubleshooting Performance Issues

If you notice performance issues in your environment, such as slow response times or increased error rates, use the monitoring dashboards to identify potential causes.

|Issue|Potential Cause|Monitoring Dashboard|
|---|---|---|
|Slow response times|High CPU or memory usage in server instances due to inefficient code.|Servers|
|Increased error rates|Endpoints with crashes or timeouts due to inefficient code.|HTTP|
|High latency in HTTP requests|Inefficient database queries or external API calls in specific endpoints.|HTTP|
|Background jobs not executing or slow execution|High CPU or memory usage in worker instances due to inefficient background job implementation.|Workers|
|Frequent worker or server restarts|Crashes due to memory leaks or unhandled exceptions in your application code.|Workers|
|High |High resource consumption in servers or workers due to inefficient code.|Workers|


---

The best way to deploy Medusa is through Medusa Cloud where you get autoscaling production infrastructure fine tuned for Medusa. Create an account by signing up at cloud.medusajs.com/signup.
