datafusion.memory_pool.used
Memory actively usedDimensions:None
Interface Metrics (2)
Dimensions:None
Technical Annotations (83)
Configuration Parameters (19)
memory_pool.soft_limitrecommended: for spillable operators onlymemory_pool.hard_limitrecommended: soft_limit * 120%datafusion.optimizer.allow_symmetric_joins_without_pruningrecommended: falsewith_disk_manager_osrecommended: enabledwith_fair_spill_poolrecommended: 100000000memory_limitrecommended: Set 500MB below actual available memoryMEMORY_FRACTIONrecommended: 1.0batch_sizerecommended: Reduce from default (e.g., from 8192 to lower value)memory_pool.limitrecommended: increase from 1600 bytes minimumRuntimeConfig.memory_poolrecommended: FairSpillPool with 2-3x expected memoryMemoryConsumer.with_can_spillrecommended: trueenforce_batch_size_in_joinsrecommended: enabledsort_spill_reservation_bytesdatafusion.optimizer.prefer_hash_joinrecommended: falsedatafusion.memory_pool.limitprefer_hash_joinhash_join_single_partition_thresholdhash_join_single_partition_threshold_rowscollect_left_thresholdError Signatures (11)
ResourcesExhausted("Additional allocation failedexceptionFailed to allocate additionallog patternmemory allocation of 25690112 bytes failedexceptionDatafusionError/ResourcesExhausted: Failed to allocate additionalexceptionAborted (core dumped)exit codeArrowError(InvalidArgumentError("number of columns(3) must match number of fields(2) in schema"), None)exceptionnumber of columns must match number of fields in schemalog patternResourcesExhaustedexceptionintermediate_batch.num_rows() = 335544320log patternintermediate_batch.get_array_memory_size() = 5368709312log patternOOMerror codeCLI Commands (1)
ulimit -v 1152000diagnosticTechnical References (52)
multi_level_merge.rsfile pathnum_spillcomponentmemory_reservation_bytescomponentdeadlockconceptRepartitionExeccomponentExternalSortercomponentFairSpillPoolcomponenttry_growcomponentMemoryPoolcomponentPrometheuscomponentDataDogcomponentGrafanacomponentRuntimeConfigcomponentGroupedHashAggregateStreamcomponentgroup_aggregate_batch()componentVec::grow_amortized()componentdatafusion/physical-plan/src/aggregates/row_hash.rsfile pathAggregateExeccomponentHashAggregationExeccomponentsort_batchcomponentBatchSplittercomponentMemoryReservationcomponentRecordBatchcomponentmemory reservationsconceptJoinLeftDatacomponenthash joincomponentspillingconceptmemory_poolcomponentHashJoincomponentSortMergeJoincomponentmemory poolcomponentunnestcomponentGROUP BYcomponentarray_aggcomponentstreaming executionconceptNestedLoopJoinExeccomponentCartesian productconceptbuild_batch_from_indicescomponentnested loop joincomponentbuffered_left_batchescomponentRecordBatchStreamcomponentExecutionPlancomponenthash map indicescomponentCPU cacheconceptnext listcomponentJoinPlanner traitcomponentsort-merge joincomponentTPC-H query 7conceptTPC-H query 21conceptTPC-H query 4conceptbuild sideconceptprobe sideconceptRelated Insights (25)
Multi-partition sorting hits memory bugs causing spill coordination failurescritical
▸
Memory pool lacks dual watermark causing premature OOM errorswarning
▸
Blocking memory allocation causes deadlock risk when waiting for memorywarning
▸
ExternalSort fails when non-spillable input operators exhaust memory poolcritical
▸
FairSpillPool allows premature OOM failures on non-spillable operatorswarning
▸
Resource exhaustion undetected without metric trackingwarning
▸
Symmetric hash joins cause out-of-memory errors on unbounded streams without pruningcritical
▸
Missing disk spill manager prevents large query executionwarning
▸
GroupedHashAggregateStream OOM from Vec exponential growth during group-by with large stringscritical
▸
Schema mismatch causes GroupedHashAggregateStream spill failure with multiple aggregationscritical
▸
Hash aggregation spill doubles memory usage due to sort_batch copycritical
▸
Cascaded joins produce oversized RecordBatches causing OOMcritical
▸
Join operations create unaccounted large output batches causing memory pressurewarning
▸
BatchSplitter does not prevent memory issues from oversized join batchescritical
▸
Hash join build-side key memory not accounted leads to OOM riskwarning
▸
Out of memory on large table joins with 16GB RAMcritical
▸
Hash join fails when memory limit exceeded without spilling supportcritical
▸
Memory exhaustion from insufficient memory pool limits on resource-constrained systemscritical
▸
Unnest with GROUP BY causes unbounded memory growth despite streamingcritical
▸
NestedLoopJoinExec creates extremely large intermediate batches causing memory exhaustioncritical
▸
Nested loop join buffers entire left side causing OOM under memory constraintscritical
▸
Join hash map memory footprint can be reduced with u32 indicesinfo
▸
Join algorithm selection impacts memory usage vs CPU performance tradeoffswarning
▸
Suboptimal hash join build-side selection causes performance degradationwarning
▸
Peak memory consumption during hash joins with poor cardinality estimateswarning
▸