Kudu tablet servers - who eats memory?
I am trying to figure out why all my 3 tablet servers run out of memory, but it's hard to do.
Configuration: 3 tablet servers, each has memory_limit_hard_bytes set to 8GB. All Kudu operations are performed via Impala JDBC.
Symptoms: INSERT operations fail with errors like:
Service unavailable: Soft memory limit exceeded (at 101.27% of capacity
Tablet web interface (http://<kudu-tablet-server>:8050/mem-trackers) shows that all the memory is consumed:
| Total consumption | 8.08G |
| Memory limit | 8.00G |
| Percentage consumed | 100.98% |
Another table on this web page displays details about memory consumption:
| Id | Parent | Limit | Current Consumption | Peak consumption |
| root | none | none | 1.00G | 1.01G |
| log_cache | root | 1.00G | 835.7K | 2.59M |
| ... | ... | ... | ... | ... |
However, when I try to sum up all entries in the "Current Consumption" column, I get much lower value: 2.6 GB. My question: who ate the remaining (8-2.6) = 5.4 GB?
How I sum up all the entries?
- parse the HTML code of the web page and extract the table with detailed memory consumption
- save this table a CSV file
- read it in spark-shell
- convert all memory consumption values to bytes (from GB, MB, KB)
- finally, calculate the sum for the "Current Consumption" and "Peak consumption" columns
Uh...

