espertechinc / esper

Esper Complex Event Processing, Streaming SQL and Event Series Analysis
GNU General Public License v2.0
842 stars 259 forks source link

Question: memory allocation of filter #287

Closed kaicao closed 2 months ago

kaicao commented 3 months ago

Hi,

Thank you for the great work on Esper!

From time to time we have saw increasing of heap usage and GC when running multiple Esper filters. Thus hard to tell which filter(s) may have consumed more heap memory than others.

Is there anyway to get metrics regarding how much heap memory filter is using? If not easily achieved, any metrics to know count of items within window and how many partitions are created by the GROUP BY? So that user can estimate whether its misbehaving or needs improvement on the statement code.

bernhardttom commented 2 months ago

There is a library and API that is part of Enterprise Edition that can report memory use as a breakdown.