I think I found the problem and it's in nostr-tools. It looks like a promise is never resolved when a relay is offline, and keep adding a new promise (which will never be resolved) every time a message is send.
Trying to find a fix without break anything
Every webapp using nostr-tools is affected, but it's not really a problem if you close or refresh the page.
It's more a problem for servers with a persistent connection