Lower memory usage?

1. Caddy version (caddy version):

docker caddy:2 sha256:2721e97adcec739105d14978b5eafb916a9174c643402360ce0397d490c25f49

2. How I run Caddy:


a. System environment:

Docker, AMD64

d. My complete Caddyfile or JSON config:

unifi.home.local {
	reverse_proxy {
		to https://:8443
		transport http {

hass.home.local {
	reverse_proxy {
		to :8123

influxdb.home.local {
	reverse_proxy {
		to :9999

3. The problem I’m having:

Memory usage seems high for my overall usage. Currently using 29.36MiB

4. Error messages and/or full log output:


5. What I already tried:


6. Links to relevant resources:

What kind of memory usage were you expecting? For many applications, ~30MBs of RAM is quite low!

Are you running in a memory-restricted environment?

It’s also worth noting that if you’re sensitive to memory usage, you may not want to run Caddy inside Docker, as that will (very slightly) increase memory overhead.

Finally, there is a pprof debug endpoint that is available at your admin endpoint, at http://localhost:2019/debug/pprof/ by default. You can use that endpoint to inspect memory allocations if you wish to identify high memory allocations.


Coming from NGINX, and working on low memory SBCs / embedded devices, I watch memory like a hawk. Overall, I was able to get the memory down to 17MB, and I will keep pushing it lower. :slight_smile:

Can you provide more details? As it currently stands, the number doesn’t mean anything.

This topic was automatically closed after 30 days. New replies are no longer allowed.