重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
altinity-expert-clickhouse-memory by altinity/skills
npx skills add https://github.com/altinity/skills --skill altinity-expert-clickhouse-memory诊断 RAM 使用情况、内存压力、OOM 风险以及内存分配模式。
运行文件 checks.sql 中的所有查询并分析结果。
解决方案:
max_bytes_before_external_group_bymax_threads 编译指示限制并行度解决方案:
max_bytes_in_joinjoin_algorithm = 'partial_merge' 或 'auto'广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
-- 始终对日志查询进行时间限制
where event_date >= today() - 1
-- 限制结果集
limit 100
MemoryTracking - 当前跟踪的内存MemoryResident - 常驻内存集OSMemoryTotal, OSMemoryFreeWithoutCached - 系统内存| 发现的问题 | 负载模块 | 原因 |
|---|---|---|
| 合并内存过高 | altinity-expert-clickhouse-merges | 分析合并模式 |
| 字典过大 | altinity-expert-clickhouse-dictionaries | 字典优化 |
| 缓存过大 | altinity-expert-clickhouse-caches | 缓存大小调整 |
| 主键内存过高 | altinity-expert-clickhouse-schema | ORDER BY 优化 |
| 查询 OOM | altinity-expert-clickhouse-reporting | 查询优化 |
| 设置项 | 作用范围 | 说明 |
|---|---|---|
max_memory_usage | 查询 | 单查询限制 |
max_memory_usage_for_user | 用户 | 单用户聚合限制 |
max_server_memory_usage | 服务器 | 全局限制 |
max_server_memory_usage_to_ram_ratio | 服务器 | 基于 RAM 百分比的自动限制 |
max_bytes_before_external_group_by | 查询 | 将聚合结果溢出到磁盘 |
max_bytes_in_join | 查询 | 将连接结果溢出到磁盘 |
每周安装次数
41
代码仓库
GitHub 星标数
5
首次出现时间
2026年1月24日
安全审计
安装于
codex39
claude-code36
gemini-cli18
opencode18
github-copilot17
kimi-cli15
Diagnose RAM usage, memory pressure, OOM risks, and memory allocation patterns.
Run all queries from the file checks.sql and analyze the results.
Solutions:
max_bytes_before_external_group_bymax_threads pragma to limit parallelismSolutions:
max_bytes_in_joinjoin_algorithm = 'partial_merge' or 'auto'-- Always time-bound log queries
where event_date >= today() - 1
-- Limit results
limit 100
MemoryTracking - current tracked memoryMemoryResident - RSSOSMemoryTotal, OSMemoryFreeWithoutCached - system memory| Finding | Load Module | Reason |
|---|---|---|
| High merge memory | altinity-expert-clickhouse-merges | Analyze merge patterns |
| Large dictionaries | altinity-expert-clickhouse-dictionaries | Dictionary optimization |
| Cache too large | altinity-expert-clickhouse-caches | Cache sizing |
| PK memory high | altinity-expert-clickhouse-schema | ORDER BY optimization |
| Query OOMs | altinity-expert-clickhouse-reporting |
| Setting | Scope | Notes |
|---|---|---|
max_memory_usage | Query | Per-query limit |
max_memory_usage_for_user | User | Per-user aggregate |
max_server_memory_usage | Server | Global limit |
max_server_memory_usage_to_ram_ratio | Server | Auto-limit as % of RAM |
max_bytes_before_external_group_by |
Weekly Installs
41
Repository
GitHub Stars
5
First Seen
Jan 24, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
codex39
claude-code36
gemini-cli18
opencode18
github-copilot17
kimi-cli15
Azure 升级评估与自动化工具 - 轻松迁移 Functions 计划、托管层级和 SKU
127,000 周安装
| Query optimization |
| Query |
| Spill aggregation to disk |
max_bytes_in_join | Query | Spill join to disk |