You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the image below, memory usage is stable with prune_db_connections as described in bikeshedder/deadpool#273, plus malloc_trim(0). Then disabling prune_db_connections shows a clear memory leak.
Heaptrack shows two leaks, both around BytesMut usage:
this would likely fix the leak if it's actually a bug in BytesMut usage and not something like closed connections never being freed. and it'd be a good opportunity to confirm/deny the performance difference that motivated the change originally
The text was updated successfully, but these errors were encountered:
I've tried to write a reproduction script, but it doesn't leak memory. If there is a bug in BytesMut usage it might be around the exact handling of messages sent/received to a remote database, using both regular queries (with heavy use of array binds) and binary COPY FROM, and with some queries resulting in unique constraint errors.
In the image below, memory usage is stable with
prune_db_connections
as described in bikeshedder/deadpool#273, plusmalloc_trim(0)
. Then disablingprune_db_connections
shows a clear memory leak.Heaptrack shows two leaks, both around
BytesMut
usage:Related discussions online:
Possible debugging steps:
Possible fixes:
BytesMut
usage and not something like closed connections never being freed. and it'd be a good opportunity to confirm/deny the performance difference that motivated the change originallyThe text was updated successfully, but these errors were encountered: