mirror of
https://github.com/mempool/mempool.git
synced 2026-08-13 12:33:11 +02:00
[ops] log backend server socket counts
This commit is contained in:
parent
6be3a641b2
commit
235ffba805
1 changed files with 10 additions and 0 deletions
|
|
@ -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`);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue