You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After update to the latest stable release 1.1.54127 we have got an issues with ClickHouse.
The point is that ClickHouse server started to eat all available RAM until it will be full then OOM come and kill it.
The behavior change could be clearly seen on Munin memory graph:
I tried to make lower values to uncompressed_cache_size and mark_cache_size parameters but this didn't help, below our current ClickHouse config: config.txt
Our server configuration:
RAM: 96G
OS: Centos 6.8
ClickHouse server running using Docker 1.12.2, inside Ubuntu 14.04.5 container.
What could be the reason of the issues?
Please let me know if you will need any additional information.
It means, that memory was freed in context of background job (like eviction of old data from cache), but was allocated in other context. Usually, this is fine.
I had hypothesis, that memory usage is due to merges, but your data shows that this is not true.
I still cannot guess, why this issue happens.
Try to isolate possible dependencies. For example, try to enable/disable some types of queries.
Maybe, you could temporary disable queries from Merge table and leave other queries, and see what happens.
The reason was incorrect implementation of move-assignment in Field.
The issue was presented only in cases when column of String or Array type was used in primary key.
1.Create tablea(memory).
2.Create tableb(mergetree). Primary key is column with type Int.
3. Load csv into the memory.
4.Check clickhouse-server cached 4G memory.
5.Exe SQL: Insert into tableb select * from tablea;
6.Exe SQL: Drop table tablea;
7.Check clickhouse-server still cache 4G+ memory.
It still here. Why?
Activity
alexey-milovidov commentedon Jan 5, 2017
Please show graphs of following metrics:
ClickHouse.Metrics.MemoryTracking
ClickHouse.Metrics.MemoryTrackingInBackgroundProcessingPool
ClickHouse.Metrics.Merge
alexey-milovidov commentedon Jan 5, 2017
Do these values grow with growing of total memory usage?
Also, please provide result of
SELECT * FROM system.mergesquery at some time after server startup.
What kind of tables do you use?
If you also provide structure of corresponding tables, it will help.
alexey-milovidov commentedon Jan 9, 2017
It means, that memory was freed in context of background job (like eviction of old data from cache), but was allocated in other context. Usually, this is fine.
I had hypothesis, that memory usage is due to merges, but your data shows that this is not true.
alexey-milovidov commentedon Jan 9, 2017
I still cannot guess, why this issue happens.
Try to isolate possible dependencies. For example, try to enable/disable some types of queries.
Maybe, you could temporary disable queries from Merge table and leave other queries, and see what happens.
alexey-milovidov commentedon Jan 22, 2017
Please try to update to 54135.
alexey-milovidov commentedon Feb 9, 2017
The reason was incorrect implementation of move-assignment in Field.
The issue was presented only in cases when column of String or Array type was used in primary key.
hereTac commentedon Jun 25, 2018
1.Create tablea(memory).
2.Create tableb(mergetree). Primary key is column with type Int.
3. Load csv into the memory.
4.Check clickhouse-server cached 4G memory.
5.Exe SQL: Insert into tableb select * from tablea;
6.Exe SQL: Drop table tablea;
7.Check clickhouse-server still cache 4G+ memory.
It still here. Why?
NightlyChangelog: tell a re-apply's own entry from its annotations
NightlyChangelog: let an unplaced re-apply entry be merged on restora…
NightlyChangelog: a re-apply entry is optional when nothing it put ba…
NightlyChangelog: only entries that stay count for a re-apply's link