# How to monitor Free Memory Space of Databases

**What is Monitoring Free Space/Memory on Database?**

Monitoring free space or memory on databases is an essential aspect of database administration. It involves keeping track of the available storage space or memory on a database to ensure that the system runs smoothly and efficiently.

By monitoring free space or memory, database administrators can identify potential issues before they become critical, such as running out of space or memory, which can cause database performance to degrade or even crash. Regular monitoring helps ensure that the database is optimized for optimal performance and can handle the workload it's designed to handle.

**Why It’s Important?**

Monitoring free space/memory on databases is important because it can have a significant impact on the performance and stability of the database. If a database runs out of free space, it can cause errors and crashes, leading to downtime and potentially data loss. Similarly, if a database uses too much memory, it can slow down the system and make it less responsive to user requests.

By monitoring free space/memory, database administrators can identify potential issues before they become critical problems. They can proactively allocate more space or memory to the database, or take other actions to optimize performance and prevent downtime.

**How Does Sprinto Helps Managing this?**

To address the challenge of maintaining sufficient free space/memory on a database for uninterrupted service functioning, modern sophisticated databases are equipped with database matrix monitoring services that automatically notify the user when defined parameters cross a certain level. Some examples of database monitoring services are AWS's Cloudwatch, GCP's Cloud Operations, MongoDB's MongoDB monitor, among others.

These services are primarily used to monitor cloud infrastructure usage and automate certain actions in response to defined triggering incidents.

On Sprinto the integrated databases (**Security Hub** > **Infrastructure** > **Overview**) has some built-in system checks. One of the system check for the database is as follow:

**Note**: Screen captures attached below are for the reference, you can go to **Data Library** > **Infrastructure** > **Overview** page and check for the applicable system checks applicable to your integrated database services.

* **Monitor free space/memory on the database**: The system check gets activated if the database space/memory is not been monitored and gets to “Due/Critical” status based on the define SLA for the check, on crossing the due date check status moved to “Failing”. The check gets to “Passing” once the system is monitored for the space and memory.

Refer to the below mentioned procedures about monitor the free memory/space on the databases:

| Database    | Procedure                       | Link                                                                                                                                      |
| ----------- | ------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
| Azure       | Monitor cache for redis         | [Click here!](https://learn.microsoft.com/en-us/azure/azure-cache-for-redis/cache-how-to-monitor)                                         |
| AWS Elastic | Monitor search free space       | [Click here!](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/managedomains-cloudwatchmetrics.html)                  |
| AWS Elastic | Monitored cache freeable memory | [Click here!](https://aws.amazon.com/blogs/database/monitoring-best-practices-with-amazon-elasticache-for-redis-using-amazon-cloudwatch/) |
| AWS RDS     | Setting up free space alert     | [Click here!](https://repost.aws/knowledge-center/storage-full-rds-cloudwatch-alarm)                                                      |
| AWS RDS     | Monitored freeable memory       | [Click here!](https://repost.aws/knowledge-center/rds-sql-server-correct-low-memory)                                                      |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sprinto.com/monitors/encryption-and-backup-monitoring/how-to-monitor-free-memory-space-of-databases.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
