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
After re-starting the registry, I ran "docker stats registry" and observed the memory usage. Each push to the registry slowly increases the memory usage until it finally falls over. Even if the images have not changed, the memory usage still grows on each push attempt.
I think I found out the root cause. In the Azure SDK, we didn't defer resp.Body.Close() in some hot code paths (i.e. upload blob) by mistake and apparently the connection just stays there dangling, gets a hold to the 4 MB chunks it uploads.
I'm going to add all the missing defer statements to the Azure Go SDK today and will work on updating the vendored package today.
Activity
dmp42 commentedon Jun 11, 2015
ping @ahmetalpbalkan
ahmetb commentedon Jun 11, 2015
ack I can reproduce the behavior, I'll be back with a fix.
ahmetb commentedon Jun 11, 2015
I think I found out the root cause. In the Azure SDK, we didn't
defer resp.Body.Close()in some hot code paths (i.e. upload blob) by mistake and apparently the connection just stays there dangling, gets a hold to the 4 MB chunks it uploads.I'm going to add all the missing defer statements to the Azure Go SDK today and will work on updating the vendored package today.
dmp42 commentedon Jun 11, 2015
@ahmetalpbalkan thanks a lot for the super fast reaction here and for taking care of this.
You rock! :)
ahmetb commentedon Jun 12, 2015
Fix at #623.
ahmetb commentedon Jun 12, 2015
@dmp42 you guys are the ones really rock everyday!
jesper commentedon Jun 12, 2015
Thanks so much - you folks are amazing! <3
storage/driver/azure: Update vendored Azure SDK
storage/driver/azure: Update vendored Azure SDK
storage/driver/azure: Update vendored Azure SDK