Loading...
Loading...
Diagnose ClickHouse RAM usage, OOM errors, memory pressure, and allocation patterns. Use for memory-related issues and out-of-memory errors.
npx skill4agent add altinity/skills altinity-expert-clickhouse-memorymax_bytes_before_external_group_bymax_threadsmax_bytes_in_joinjoin_algorithm = 'partial_merge''auto'-- Always time-bound log queries
where event_date >= today() - 1
-- Limit results
limit 100MemoryTrackingMemoryResidentOSMemoryTotalOSMemoryFreeWithoutCached| Finding | Load Module | Reason |
|---|---|---|
| High merge memory | | Analyze merge patterns |
| Large dictionaries | | Dictionary optimization |
| Cache too large | | Cache sizing |
| PK memory high | | ORDER BY optimization |
| Query OOMs | | Query optimization |
| Setting | Scope | Notes |
|---|---|---|
| Query | Per-query limit |
| User | Per-user aggregate |
| Server | Global limit |
| Server | Auto-limit as % of RAM |
| Query | Spill aggregation to disk |
| Query | Spill join to disk |