tool · inferred from evidence
asyncio semaphore
A concurrency control mechanism in asyncio.
- LangSmith Python SDK memory grows in long-running apps (RunTree kept in memory)
A maintainer confirmed this is expected behavior rather than a leak: the Python SDK keeps the whole run tree (parents, children, inputs/outputs, metadata) in memory while a trace is live, so RSS grows with concurrency and only releases when