# Maxium connections to VerneMQ?

**URL:** <https://erlangforums.com/t/maxium-connections-to-vernemq/1063>\
**Category:** VerneMQ Questions\
**Tags:** vernemq-questions\
**Created:** [February 12, 2022, 1:46pm UTC](https://erlangforums.com/t/maxium-connections-to-vernemq/1063 "2022-02-12T13:46:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![baoquach](https://erlangforums.com/letter_avatar_proxy/v4/letter/b/a6a055/32.png) [@baoquach](https://erlangforums.com/u/baoquach)\
**Post date:** [February 12, 2022, 1:46pm UTC](https://erlangforums.com/t/maxium-connections-to-vernemq/1063/1 "2022-02-12T13:46:35Z")

</div>

I read somewhere that VerneMQ support 10,000 ClientId connect per instance. I assume each connection match a unique ClientId.  
This correct statement ?  
Can you please me how to scale if I need to support 20,000 ClientId connection to VerneMQ.

Thank you for your help

---

<div class="post-metadata">

**Author:** ![afa](https://erlangforums.com/user_avatar/erlangforums.com/afa/32/298_2.png) [@afa](https://erlangforums.com/u/afa)\
**Post date:** [February 12, 2022, 3:25pm UTC](https://erlangforums.com/t/maxium-connections-to-vernemq/1063/2 "2022-02-12T15:25:56Z")

</div>

You have to configure for the number of connections you want to allow. This is a per listener config in the `vernemq.conf` file.

Let’s say as an example that you want to start a normal MQTT listener (on TCP), name it `my_tcp_listener`, and want to allow 200k connections:

`listener.tcp.my_tcp_listener.max_connections = 200000`

Note that you’ll have to configure additional resources (namely number of processes in the VM, and number of allowed file descriptors on the OS).
