# CloudWatch alarm: RDS FreeableMemory

CloudWatch alarms · Updated 16 November 2026

**Short answer:** Alarm on AWS/RDS FreeableMemory per DBInstanceIdentifier with the Average over 60 seconds, firing when it is below your threshold for 15 consecutive minutes. For RDS, set the threshold to about 25% of the instance class's memory, in bytes; for Aurora, around 5%, because Aurora deliberately uses most of its memory for caching.

## What the metric measures

`FreeableMemory` is RAM that the operating system could give to processes, reported in bytes. Database engines use memory heavily on purpose: the buffer pool or shared buffers, per-connection memory and sort or hash areas. A low but stable value is often fine. A value that keeps falling, or that drops alongside rising `SwapUsage`, means memory pressure, which slows queries and can end with the engine being restarted.

Common drivers: a jump in connections (each one has its own memory), large per-session settings such as PostgreSQL `work_mem` multiplied by many parallel sorts, a buffer pool configured too large for the instance class, and memory-hungry features like many partitions or prepared statements.

Engines that rely on the operating system's page cache, PostgreSQL in particular, let that cache grow into free memory, so a moderate, flat value is expected and healthy. The useful signal is the trend and the lowest values during peaks, not the average level.

## Recommended alarm settings

| Setting | Recommended value |
|---|---|
| Namespace | `AWS/RDS` |
| Metric | `FreeableMemory` |
| Dimensions | DBInstanceIdentifier |
| Statistic | Average |
| Threshold | Depends on your situation (see method below) |
| Period | 60 seconds |
| Datapoints to alarm | 15 |
| Evaluation periods | 15 |
| Comparison operator | `LessThanThreshold` |

## Computing the threshold in bytes

1. Find the memory of the instance class from the instance class documentation. For example, a class with 16 GiB has 17,179,869,184 bytes.
2. RDS: 25% of that is 4,294,967,296 bytes (4 GiB).
3. Aurora: 5% is about 858,993,459 bytes. Aurora reaching near zero means the instance has no more room to grow its cache and connections.
4. Compare with two weeks of history. If the instance normally sits just above your number, the alarm will be noisy; investigate why rather than lowering it blindly.

Remember to update the threshold when you change instance class; a value calculated for a larger class will fire constantly on a smaller one.

## Create the alarm

```
aws cloudwatch put-metric-alarm \
  --alarm-name rds-orders-db-freeable-memory-low \
  --alarm-description "orders-db freeable memory below 25% (4 GiB) for 15 minutes" \
  --namespace AWS/RDS \
  --metric-name FreeableMemory \
  --dimensions Name=DBInstanceIdentifier,Value=orders-db \
  --statistic Average \
  --period 60 \
  --evaluation-periods 15 \
  --datapoints-to-alarm 15 \
  --threshold 4294967296 \
  --comparison-operator LessThanThreshold \
  --alarm-actions arn:aws:sns:eu-west-2:123456789012:oncall-alerts
```

## When it fires

1. **Check swap and connections:** graph `SwapUsage` and `DatabaseConnections` for the same window. A connection spike explains most sudden drops.
2. **Look at Enhanced Monitoring** process lists, if enabled, to see which processes hold memory.
3. **Review memory parameters** in the parameter group: buffer pool, `work_mem` or `sort_buffer_size`, and maximum connections.
4. **Reduce load or scale:** pool connections (RDS Proxy helps), move reads to replicas (for Aurora, add a reader), or move to a larger instance class.

## Questions

### Which CloudWatch alarms should I set for RDS?

A practical baseline is CPUUtilization, FreeStorageSpace, FreeableMemory, DatabaseConnections, ReadLatency and WriteLatency, plus ReplicaLag on replicas. Aurora clusters add metrics such as DBLoad and BufferCacheHitRatio.

### Is low FreeableMemory on Aurora normal?

Fairly low values are normal because Aurora uses memory aggressively for caching. Values approaching zero are not, which is why the suggested Aurora threshold is around 5%.

## When this happens away from your desk

Memory alarms on a database often build slowly over hours, so a quick look at the trend tells you if it can wait until morning. CloudConsole, a phone app for AWS, is built to show exactly that on your phone.

[About the CloudConsole app](https://cloudconsole.dev/aws-console-app) · [Download on the App Store](https://apps.apple.com/app/cloudconsole-for-aws/id6835419710)

## Sources

- [Recommended alarms (Amazon CloudWatch User Guide)](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Best_Practice_Recommended_Alarms_AWS_Services.html)
- [Amazon CloudWatch metrics for Amazon RDS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-metrics.html)
- [Troubleshooting for Aurora (freeable memory)](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/CHAP_Troubleshooting.html)

## Related

- [CloudWatch alarm: RDS CPUUtilization](https://cloudconsole.dev/alarms/rds-cpuutilization)
- [CloudWatch alarm: RDS DatabaseConnections](https://cloudconsole.dev/alarms/rds-databaseconnections)
- [CloudWatch alarm: Aurora BufferCacheHitRatio](https://cloudconsole.dev/alarms/rds-buffercachehitratio)
- [Too many connections on RDS (MySQL / PostgreSQL)](https://cloudconsole.dev/errors/rds-too-many-connections)
- [aws rds modify-db-instance](https://cloudconsole.dev/cli/rds-modify-db-instance)
- [CloudWatch alarm: Aurora AuroraBinlogReplicaLag (error state)](https://cloudconsole.dev/alarms/rds-aurorabinlogreplicalag)

---

Source: https://cloudconsole.dev/alarms/rds-freeablememory

CloudConsole is an independent iPhone and Android app for Amazon Web Services by Cloudconcur Ltd. It is not affiliated with Amazon Web Services.
