I did some testing with a deployed worker. I used `FinalizationRegistry` and `WeakRef` to track the

I did some testing with a deployed worker.
I used FinalizationRegistry and WeakRef to track the number of existing connections with
console.log
in
wrangler tail
and it seems like the GC never clears them after the request. I tried this also with the SELECT * FROM my_table query too which worked in dev and nothing.

After the connection count reaches around 250-300 I just get a new worker and the number drops to 0.
Was this page helpful?