There is some background on the original issue in this post, however the question I am asking is changing, so opening a new thread: Mosquitto (MQTT) - Client connection from [ip address] denied access by tcpd - #5 by TotallyInformation
Does anyone know if the number of open files in Mosquitto should increase over time?
After some testing, I have found out how to increase the number reported when running this:
sudo netstat -natp | grep ESTABLISHED.*mosquitto | wc -l
Every time I restart flows or do a full deploy (by this, I mean Deploy: Restart Flows or Deploy: Full Deploy - there is no change if I do any other type of Deploy e.g. modified flows or modified nodes) from my Debian Server (running Mosquitto), the count goes up by 268. Should this happen?
for example, it jumped from 3,582 to 3,850 to 4,118 after subsequent restarts.
Some background detail on the setup is here: MQTT open files keeps increasing - #11 by alex88 - Mosquitto MQTT Broker - Cedalo - Forum
It's like the old connections are not being closed, but new ones are being created on each restart.
Maybe this is normal behaviour...
Summary:
Debian Server running Mosquitto - connections increase by 268 on each "Restart Flows"
Debian NR Env - connections increase by 1 on each restart (despite there being 2x mqtt subscriptions in this Env)
3x Pi Envs - connections do not increase on restart - there are 1x, 2x and 3x mqtt subscriptions (so 6x in total) across the 3x Pis
I can't see a pattern based on Mosquitto Client version numbers or anything else (just now) as to what might be the root cause.
EDIT: additional info
I am running NR 2.2.2
The Debian Server is Debian 11; refer below
EDIT2: From early testing the open files count does not seem to increase unless I do one of the 2x deploys, as above. I will keep an eye on it though and report back, if it changes.