# S01010 {#S01010}

## Error Code {#error_code .section}

S01010

## Error Message {#error_message .section}

`ChunkCache::flushTableToDisk: Failed to flush TSDB Cache Engine to disk due to Out of Memory. Will retry in several seconds. RefId: S01010`

## Probable Causes {#probable_causes .section}

This error occurs when TSDB fails to flush the completed transactions cached in the cache engine to disk due to out-of-memory issues or other I/O errors.

## Solutions {#solutions .section}

-   Use the [clearAllCache](../../Functions/c/clearAllCache.md) function to clear the cached data and release memory.

-   Set the configuration parameter *maxMemSize* to a larger value to increase the maximum memory allocated to DolphinDB.


**Parent topic:**[Error Code Reference](../../Troubleshooting/ErrorCode.md)

