# Memory leak due to join node

**URL:** <https://community.influxdata.com/t/memory-leak-due-to-join-node/20243>\
**Category:** Kapacitor\
**Tags:** kapacitor, tickscript\
**Created:** [June 4, 2021, 10:11am UTC](https://community.influxdata.com/t/memory-leak-due-to-join-node/20243 "2021-06-04T10:11:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrAbhishek](https://avatars.discourse-cdn.com/v4/letter/m/c2a13f/32.png) [@mrAbhishek](https://community.influxdata.com/u/mrAbhishek)\
**Post date:** [June 4, 2021, 10:11am UTC](https://community.influxdata.com/t/memory-leak-due-to-join-node/20243/1 "2021-06-04T10:11:37Z")

</div>

Hello team,

I am a running a tickscript by joining data from two measurments but one of the measurments has no data.When i disable the tickscript, the memory usage becomes stable but on enabling it, kapacitor docker( where the tickscripts are running) ooms. Is there a way to let join node know that one of the measurments is empty or sparse and not wait for the data, preventing the high memory consumption?

This is the DOT graph portion of the “show” operation:  
DOT:  
digraph process\_crash\_restart {  
graph [throughput=“0.00 points/s”];

stream0 [avg\_exec\_time\_ns=“0s” errors=“0” working\_cardinality=“0”];  
stream0 → from2 [processed=“2099931”];  
stream0 → from1 [processed=“2099931”];

from2 [avg\_exec\_time\_ns=“8.594µs” errors=“0” working\_cardinality=“0”];  
from2 → where3 [processed=“2099931”];

where3 [avg\_exec\_time\_ns=“15.361µs” errors=“0” working\_cardinality=“10000”];  
where3 → eval4 [processed=“699977”];

eval4 [avg\_exec\_time\_ns=“145.1µs” errors=“0” working\_cardinality=“10000”];  
eval4 → join14 [processed=“699977”];

from1 [avg\_exec\_time\_ns=“1.924µs” errors=“0” working\_cardinality=“0”];  
from1 → eval9 [processed=“0”];  
from1 → elapsed6 [processed=“0”];  
from1 → difference5 [processed=“0”];

eval9 [avg\_exec\_time\_ns=“0s” errors=“0” working\_cardinality=“0”];  
eval9 → join12 [processed=“0”];

elapsed6 [avg\_exec\_time\_ns=“0s” errors=“0” working\_cardinality=“0”];  
elapsed6 → eval7 [processed=“0”];

eval7 [avg\_exec\_time\_ns=“0s” errors=“0” working\_cardinality=“0”];  
eval7 → eval8 [processed=“0”];

eval8 [avg\_exec\_time\_ns=“0s” errors=“0” working\_cardinality=“0”];  
eval8 → join12 [processed=“0”];

difference5 [avg\_exec\_time\_ns=“0s” errors=“0” working\_cardinality=“0”];  
difference5 → join12 [processed=“0”];

join12 [avg\_exec\_time\_ns=“0s” errors=“0” working\_cardinality=“0”];  
join12 → join14 [processed=“0”];

join14 [avg\_exec\_time\_ns=“28.218µs” errors=“0” working\_cardinality=“0”];  
join14 → log15 [processed=“0”];

log15 [avg\_exec\_time\_ns=“0s” errors=“0” working\_cardinality=“0”];  
log15 → alert16 [processed=“0”];

alert16 [alerts\_inhibited=“0” alerts\_triggered=“0” avg\_exec\_time\_ns=“0s” crits\_triggered=“0” errors=“0” infos\_triggered=“0” oks\_triggered=“0” warns\_triggered=“0” working\_cardinality=“0”];  
}

---

<div class="post-metadata">

**Author:** ![mrAbhishek](https://avatars.discourse-cdn.com/v4/letter/m/c2a13f/32.png) [@mrAbhishek](https://community.influxdata.com/u/mrAbhishek)\
**Post date:** [June 8, 2021, 5:27am UTC](https://community.influxdata.com/t/memory-leak-due-to-join-node/20243/2 "2021-06-08T05:27:57Z")

</div>

@Anaisdg [@staff](https://community.influxdata.com/groups/staff) Please help
