Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 Siddhi CEP 独立库的模式查询在 10k 事件上每 5 分钟定期检测未发生的事件。观察记忆逐渐增加。为什么会发生这种情况?
未发生流检测的内存占用
在您的查询中,您没有包含在模式查询的选项中。这将导致与模式不匹配的事件随着时间的推移而累积。这就是为什么你观察到内存随着时间的推移而增加。拥有一个 within 语句将提示 Siddhi 删除比该时间更早的事件释放内存。
例如:从 a1 -> b1 在 10 分钟内