[ops] log backend server socket counts

This commit is contained in:
mononaut 2026-07-04 09:10:20 +00:00
parent 6be3a641b2
commit 235ffba805
No known key found for this signature in database
GPG key ID: BFD16BE592A9CD8D

View file

@ -400,6 +400,16 @@ class Server {
this.warnedHeapCritical = false;
this.maxHeapSize = 0;
this.lastHeapLogTime = now;
this.server?.getConnections((error, count) => {
if (!error) {
logger.debug(`${count} open TCP sockets`);
}
});
this.serverUnixSocket?.getConnections((error, count) => {
if (!error) {
logger.debug(`${count} open unix sockets`);
}
});
}
}