-
Notifications
You must be signed in to change notification settings - Fork 155
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
SFTP OOM Error #726
Comments
A few comments/questions:
|
Haven't reproduced yet but this all makes sense. I will come back with more comprehensive logging, etc. if I can come up with a minimal reproduction. |
More likely an issue with our profiling than asyncssh |
My profiler is reporting very large memory allocation (many GB) from asyncssh
compression.py
from a few concurrent read calls for relatively small files.At the time of the OOM there was no space left on the remote device.
I'll try to reproduce, but my hunch would be that memory isn't freed properly if the compress call succeeds and the flush call fails here:
asyncssh/asyncssh/compression.py
Lines 72 to 76 in e8169bf
Are you open to a PR that frees any allocation or explicitly deletes the
zlib.compressobj
on failure here?The text was updated successfully, but these errors were encountered: