lindenlab / caddy-s3-proxy

s3 proxy plugin for caddy
Apache License 2.0
68 stars 21 forks source link

high cpu after 32 days with caddy-s3-proxy #64

Open Dinfangion opened 10 months ago

Dinfangion commented 10 months ago

https://github.com/caddyserver/caddy/issues/5647

Dinfangion commented 10 months ago

pprof output debug pprof001-debug

Dinfangion commented 10 months ago

pprof output heap pprof001-heap

mcrute commented 1 month ago

I'm seeing something similar to this as well as OOM killing of the Caddy process. A quick glance at the code and it's not closing the Body of its S3 responses, which are just plain http.Response structs (if you dig deep enough into the SDK). My guess is that it's leaking memory. Preparing and testing a patch to see if this is the case.