Ok, I read somewhere the delete (delete myVar;) instruction in JS does free the memory...
I replaced the Object key value by a Map
Time for another spam test of Nostr Proxy
Ok, I read somewhere the delete (delete myVar;) instruction in JS does free the memory...
I replaced the Object key value by a Map
Time for another spam test of Nostr Proxy
Report
11 connected clients
41 subs
75 Mo used memory.
Let's wait few hours...
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