Is it normal for memory usage to increase significantly when testing a database with Docker Compose?
I'm testing the use of a database table and noticed that my memory increases with the growth of data volume. I've added MinIO and etcd, and I'm using Docker Compose to start the services. After writing only about 500,000 records, the memory increased by 15GB. Is this behavior expected? Below is my docker-compose.yml
file and the SQL for creating a table:
version: "3"
services:
# ... (services configuration)
name: risingwave-compose
create table t1 (id int,v1 int,v2 int,s1 varchar);
I created a table and then wrote data to it. I found that the memory grew rapidly, and the server memory was full after a while.
jie
Asked on Oct 08, 2022
The default block cache is 8GB. When memory usage reaches 8GB, it shouldn't increase further. If it does, it might indicate a bug. It's also important to check if any materialized views were created on the table, as this could affect memory usage. To investigate further, it's recommended to create an issue on the project's GitHub repository and provide details on how the data is generated and how to reproduce the issue.