Clickhosue ck ch DB::Exception: Memory limit (total) exceeded
1.异常信息
<Error> ConfigReloader: void DB::ConfigReloader::run(): Code: 241, e.displayText() = DB::Exception: Memory limi t (total) exceeded: would use 19.24 GiB (attempt to allocate chunk of 5242880 bytes), maximum: 18.63 GiB, Stack trace (when copying this message, alway s include the lines below):
0. Poco::Exception::Exception(std::1::basic_string<char, std::1::char_traits<char>, std::__1::allocator<char> > const&, int) @ 0x18e02790 in /usr/b in/clickhouse
1. DB::Exception::Exception(std::1::basic_string<char, std::1::char_traits<char>, std::__1::allocator<char> > const&, int) @ 0xe72fdad in /usr/bin/ clickhouse
2. ? @ 0xe71dee0 in /usr/bin/clickhouse
3. MemoryTracker::alloc(long) @ 0xe71c798 in /usr/bin/clickhouse
4. operator new[](unsigned%20long) @ 0xe71af6c in /usr/bin/clickhouse
5. Poco::XML::NamePool::NamePool(unsigned long) @ 0x18d84fca in /usr/bin/clickhouse
2.解决
1.config.xml修改每个节点上的config.xml配置文件里的服务器使用最大RAM量<max_server_memory_usage>xxx</max_server_memory_usage>
2.users.xml修改每个节点上的users.xml配置文件里的,用于在单个服务器上运行查询的最大RAM量<max_memory_usage>xxx</max_memory_usage>
3.扩展
1.max_memory_usage含义:用于在单个服务器上运行查询的最大RAM量默认值: 10G内存的使用也受限于这两个参数1)max_memory_usage_for_user用于在单个服务器上运行用户查询的最大RAM量默认值定义在 Settings.h (https://github.com/ClickHouse/ClickHouse/blob/master/src/Core/Settings.h)默认值是0, max_memory_usage_for_user = 0 表示不受限2)max_server_memory_usage详见 22.max_server_memory_usage含义:限制ClickHouse服务器节点的总RAM使用量默认值: 0 默认情况下的计算公式如下:max_server_memory_usage = memory_amount(内存总量) * max_server_memory_usage_to_ram_ratio(占比分数值)3.max_server_memory_usage_to_ram_ratio含义:定义可用于Clickhouse服务器的总物理RAM量的一部分。如果想要服务器利用更多资源(限制ck应用在内存占用),则会将内存减少到适当的数量默认值:0 表示Clickhouse服务器可以使用所有可用的RAM官方建议:在具有低RAM和交换容量的主机上,可能需要将max_server_memory_usage_to_ram_ratio设置为大于1
Clickhosue ck ch DB::Exception: Memory limit (total) exceeded相关推荐
- 【clickhouse】Application: DB::Exception: Duplicate interserver IO endpoint: DataPartsExchange
1.概述 clickhouse遇到这个错误 Application: DB::Exception: Duplicate interserver IO endpoint: DataPartsExchan ...
- 'dict' object has no attribute '_txn_read_preference' Sort exceeded memory limit of 10485760
前言 今天遇到了mongo 的一条语句两个问题, 在这里分享一下留个记录 问题一 Sort exceeded memory limit of 104857600 bytes, but did not ...
- 【ClickHouse】<Error> Application: Caught exception while loading metadata: Code: 231. DB::Exception
异常描述 重启clickhouse后,发现服务一直不可用,日志报错: <Error> Application: Caught exception while loading metadat ...
- php设置低于设定值不能用,php memory limit怎么设置不限制
php memory limit设置不限制的方法:首先打开"php.ini"文件:然后找到"memory_limit"这一项:接着将其参数改为任何想设置的值,并 ...
- 报错解决:DB::Exception: Scalar subquery returned more than one row.
在使用clickhouse的时候报错了: Received exception from server (version 19.5.3): Code: 125. DB::Exception: Rece ...
- ClickHouse报错解决:Code: 194. DB::Exception: Received from localhost:9000, 127.0.0.1. DB::Exception: Pas
我的个人博客:zhang0peter的个人博客 下午在使用ClickHouse的时候遇到了报错: root@ubuntu:/home/zhang# clickhouse-client ClickHou ...
- clcikhouse Code: 1000. DB::Exception: File not found
Code: 1000. DB::Exception: Received from dn06:9001. DB::Exception: File not found: /data/clickhouse/ ...
- is running beyond the ‘VIRTUAL‘ memory limit. Current usage: 123.5 MB of 1 GB physical memory used
is running beyond the 'VIRTUAL' memory limit. Current usage: 123.5 MB of 1 GB physical memory used; ...
- 【clickhouse】未解决 ClickHouse exception, code: 1002 DB::Exception: Directory already exists
1.概述 clickhouse 报错如下 SQL 错误 [1002]: ClickHouse exception, code: 1002, host: localhost, port: 8123; C ...
最新文章
- 微信小程序的点击复制功能
- React开发(124):ant design学习指南之form中的属性
- 静态库-动态库混合编译
- 简单的java日志记,Java 记要 日志,log
- 12个Flex常用功能代码
- 拼多多:三亿人在用,剩下十亿人在吐槽
- 全套Java基础视频教程
- .h文件、.inc文件、.lib文件的功能及三者之间的异同
- 立创3D文件转成stp文件应用到AD中
- archlinux for wps 字体缺失解决办法
- latex下的实数集R的写法
- python pandas按照行数切分文件
- XML解析—开源XOM类库
- 排除万难,从入门到精通区块链
- 电商让客户等待的话术
- ffmpeg源码简析(十)libswscale中的SwsContext,sws_scale()
- 风险预测模型评价第二弹:NRI的R语言计算
- Baklib知识管理体系:将知识管理深化到企业中
- [SMOJ1810]基因测试
- 送给程序员的话 - 大牛们的经典语录
热门文章
- 计算机普通话测试教程说话,普通话水平测试说话题答题技巧
- 拿下聆讯通关卡,微创医疗机器人IPO是“割韭菜”还是“大生意”?
- 有人知道乐高机器人和乐高少儿编程区别吗
- lucene 3.02源代码统计
- pooleddb mysql_UC头条:Python 为什么要使用数据库连接池, MySQL PooledDB 简单使用
- 使用soundtouch开源库实现ffplay倍速播功能
- LeakCanary 原理浅析
- 分布式智能微电网的建设方案与应用场景
- 如何修复错误:当flutter doctor --android-licenses被运行时出现的类似ERROR: JAVA_HOME is set to an invalid directory
- 2D游戏入门——小狐狸系列(二十一)死亡检测场景切换