Replies: 1 comment 2 replies
-
Addressed in b8ff116. Stale connections are closed every minute now, MaxKeys is reduced to 5000, MaxConnsPerKey to 5. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I noticed that a server running maddy has lots of open sockets:
(this is a screenshot from netdata, the number is thousands of sockets)
After restarting maddy the number drops close to zero and starts to slowly creep up again. Is this normal, and what might be causing this? Could there be potential problems if the number continues to rise?
Right now, with maddy relatively recently restarted if I run
lsof
and grep formaddy
, I get:Most of the entries in there look like so:
Is this maddy keeping a cache of idle connections or something else?
Not sure if related, but looking at
internal/smtpconn/pool/pool.go
, it looks like cache entries are evicted from cache only when the cache is already full:MaxKeys is 20000 and the default MaxConnsPerKey is 10, so the cache could contain up to 200K connections, isn't this too much?
Beta Was this translation helpful? Give feedback.
All reactions