A thousand connections between Grafana and InfluxDB

I am logging about a dozen values to InfluxDB v2 every 5 seconds, and also have a dashboard on Grafana auto-refreshing every 5 seconds.

It seems like after about half an hour the dashboard stops working, and netstat shows a thousand connections between Grafana and InfluxDB. Has anyone encountered this?

Thanks

> netstat -a|grep 9999
   tcp        0      0 localhost:34282         localhost:9999          ESTABLISHED 1677/grafana-server
   ... x~1000
   tcp6       0      0 localhost:9999          localhost:33926         ESTABLISHED 2562/influxd
   ... x~1000