Excessive Memory Swap on Cassandra Cluster refers to an incident where the Cassandra database cluster is experiencing high levels of swapping between physical memory and disk space due to the unavailability of enough physical memory. This can lead to degraded performance and unresponsiveness of the database cluster, causing disruptions to the application or service that relies on it. This type of incident requires immediate attention from the operations team to identify the root cause and take necessary measures to mitigate the issue.
Parameters
Debug
Check total available memory
Check the swap space utilization
Display the process that consumes the most memory
Display the processes that are using swap space
Check the amount of swap space used by each process
Check the amount of memory used by each process
Identify the processes that are causing excessive memory swapping
Check if the swappiness value is set correctly
Check the value of dirty_ratio and dirty_background_ratio
Check the current value of vm.dirty_bytes
Check if Transparent Huge Pages (THP) is enabled
Check the status of the Cassandra service
Repair
Upgrade the physical memory of the servers in the Cassandra cluster to provide more space for data to reside in memory rather than needing to swap to disk.
Tune the Cassandra configuration to reduce memory consumption, for example, by limiting the number of concurrent queries or reducing the size of data kept in memory.
Adjust the swapping configuration of the operating system to prevent it from swapping too aggressively.
Learn more
Related Runbooks
Check out these related runbooks to help you debug and resolve similar issues.