-
Notifications
You must be signed in to change notification settings - Fork 180
Thread pool dies and does not recover #183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The issue is obvious by looking at the terminal output. Notice each batch of commands gets progressively smaller.
🧵 The Core Problem: Threads Were Dying Silently Over Time🔍 Root Cause # 1: Use of a Shared Generator (
|
Thanks for merging! |
Thread pool dies and does not recover
I’ve encountered an issue where Interlace’s thread pool gradually dies off and never recovers, eventually slowing down execution to a crawl (only a couple of threads left running) — even when commands do not crash.
Reproduction Steps
Create a large list of targets:
Create a minimal script called
crashy.sh
(no crash, just sleep):#!/bin/bash sleep 2
Make it executable:
In one terminal, sleep for 2 secs and then start monitoring thread activity:
In a second terminal, quickly run:
interlace -tL targets.txt -c './crashy.sh _target_' -threads 15
Optionally, monitor active subprocesses:
Observed Behavior
-threads 15
).Expected Behavior
Let me know if I can help test any fix or branch!
@codingo @prodigysml
The text was updated successfully, but these errors were encountered: