langflow icon indicating copy to clipboard operation
langflow copied to clipboard

Sporadic error: SIGKILL! Perhaps out of memory?

Open omerabr opened this issue 1 year ago • 6 comments

Bug Description

There's no clear path to why and when it'll happen. There's no memory issue whatsoever, the Docker is at 50% utilization.

[08/25/25 13:46:04] ERROR 2025-08-25 13:46:04 - ERROR - init.py:1762 init - Worker (pid:1333) was
sent SIGKILL! Perhaps out of
memory?
[08/25/25 13:46:20] ERROR 2025-08-25 13:46:20 - ERROR - chat - chat.py:248 Job not found:
0dba3c73-4816-4304-b4ad-ed2d96930e33.
Error: Job queue not found for job_id:
0dba3c73-4816-4304-b4ad-ed2d96930e33

============================================== 🔍 LANGFLOW MEMORY MONITORING - Mon Aug 25 16:50:12 IDT 2025

📊 Container Resource Usage: CONTAINER CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS langflow-docker 0.33% 972.1MiB / 1.914GiB 49.61% 221MB / 2.71GB 194GB / 5.4GB 15

�� Memory Details Inside Container:

MemTotal: 2006476 kB MemFree: 38324 kB MemAvailable: 158788 kB Buffers: 4340 kB Cached: 157136 kB SwapCached: 0 kB Active: 801528 kB Inactive: 1026124 kB

Reproduction

I have 2 agents, each of which is connected to an MCP tool of its own.

Image

Expected behavior

Not happening.

Who can help?

@Vigtu @italojohnny

Operating System

MacOS Sequoia Version 15.6 (24G84)

Langflow Version

1.5.0.post1

Python Version

None

Screenshot

No response

Flow File

No response

omerabr avatar Aug 25 '25 13:08 omerabr

same problem

Yandextaxidriver avatar Sep 09 '25 12:09 Yandextaxidriver

Same. It's so hard to profile.

betterclever avatar Sep 20 '25 23:09 betterclever

I faced a similar issue, which I resolved by increasing the host memory limits.

colima stop
colima start --memory 8 --cpu 4

or check Docker Desktop Memory Settings Docker Desktop → Settings → Resources → Memory

niedrem avatar Apr 13 '26 13:04 niedrem

Thanks for the report! We were able to reproduce it.

We've created ticket LE-1231 for the engineering team to track the fix.

AntonioABLima avatar May 15 '26 22:05 AntonioABLima

Hi @Yandextaxidriver! To make sure we're tracking the right root cause, a few quick questions about your setup:

  1. How many workers is your instance running? (i.e. did you set LANGFLOW_WORKERS / --workers, or is it the default of 1?)
  2. Are you setting an event delivery mode (LANGFLOW_EVENT_DELIVERY)?
  3. What memory limit is the container running with? Your dump shows MemAvailable: ~158MB on a 2GB container, which is quite tight.

Context: PR #13202 fixed a Job queue not found race that only happens with multiple workers. If you're on a single worker, your SIGKILL / out-of-memory looks like a separate memory issue — the worker dying takes its in-memory job queue with it, producing the same Job not found message from a different cause. Want to confirm before we close this out.

AntonioABLima avatar Jun 08 '26 19:06 AntonioABLima

This topic will be closed due to inactivity.

AntonioABLima avatar Jun 22 '26 13:06 AntonioABLima