Hi @manzoor77 ,
on linux systems, everything is a file, including a TCP connection, so most likely, you do have lots of connections also.
Can you monitor the output of lsof -n -u mattermost
on your Mattermost server? It would also be interesting to see the amount of connections in their different states on your Mattermost server.
Can you also run this command to check it? As an example on my test system, I do have 1514 established connections and 22 in the listening state:
# lsof -n -i | sed -n 's/^.*(\(.*\))$/\1/p' | sort | uniq -c | sort -rn
1514 ESTABLISHED
22 LISTEN