RabbitMQ Windows sockets limited to 7280

821 views
Skip to first unread message

alain.d...@alyacom.fr

unread,
Jul 12, 2016, 11:50:38 AM7/12/16
to rabbitmq-users
Hi

I haved installed RabbitMQ 3.6.3, on a Windows server 2012 R2 box, and  the sockets available is 7280, How can I increase this limit ?

Michael Klishin

unread,
Jul 12, 2016, 3:12:44 PM7/12/16
to rabbitm...@googlegroups.com
Just like you do it for other processes, e.g. https://msdn.microsoft.com/en-us/library/aa560610(v=bts.20).aspx
mentions one configurable value that is relevant for supporting large numbers of concurrent connections.

This may vary from version to version.

On Tue, Jul 12, 2016 at 6:50 PM, <alain.d...@alyacom.fr> wrote:
Hi

I haved installed RabbitMQ 3.6.3, on a Windows server 2012 R2 box, and  the sockets available is 7280, How can I increase this limit ?

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
MK

Staff Software Engineer, Pivotal/RabbitMQ

alain.d...@alyacom.fr

unread,
Jul 13, 2016, 4:48:02 AM7/13/16
to rabbitmq-users
I defined the MaxUserPort value 65534 and rebooted the machine : the RabbitMQ is still 7280

I defined again the value to 5000 : the value is also 7280, so it means that RabbitMQ doesn't care at all of the MaxUserPort value...

any other idea ?

Michael Klishin

unread,
Jul 13, 2016, 7:16:53 AM7/13/16
to rabbitm...@googlegroups.com, alain.d...@alyacom.fr
RabbitMQ has no way of ignoring OS-wide limits, just like any other process.

I'm not a Windows expert but we see that it is sometimes required to re-install the service
on Windows for some system changes to have effect, see http://www.rabbitmq.com/configure.html.
It would be quite surprising if OS-level resource limits required it again, I don't know
much about Windows. 

On 13 July 2016 at 11:48:09, alain.d...@alyacom.fr (alain.d...@alyacom.fr) wrote:
> I defined the MaxUserPort value 65534 and rebooted the machine : the
> RabbitMQ is still 7280
>
> I defined again the value to 5000 : the value is also 7280, so it means
> that RabbitMQ doesn't care at all of the MaxUserPort value...
>
> any other idea ?
>
> Le mardi 12 juillet 2016 17:50:38 UTC+2, alain.d...@alyacom.fr a écrit :
> >
> > Hi
> >
> > I haved installed RabbitMQ 3.6.3, on a *Windows* server 2012 R2 box, and
> > the sockets available is 7280, How can I increase this limit ?
> >
> >
>
> --
> You received this message because you are subscribed to the Google Groups "rabbitmq-users"
> group.
> To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
> To post to this group, send an email to rabbitm...@googlegroups.com.

Karl Nilsson

unread,
Jul 13, 2016, 8:29:34 AM7/13/16
to rabbitm...@googlegroups.com
Hi Alain,

This is limited is enforced by the erlang runtime. You can use the ERL_MAX_PORTS environment variable to override the erlang default. I am not sure how, if at all, it interacts with the MaxUserPort setting.

Cheers
Karl
Karl Nilsson

Staff Software Engineer, Pivotal/RabbitMQ

alain.d...@alyacom.fr

unread,
Jul 13, 2016, 8:51:27 AM7/13/16
to rabbitmq-users
Thanks for your quick answer,
but unfortunatly it doesn't work either, i unsinstalled then reinstalled the service, then the "available sockets" is still 7280

On Linux plateform this ressource is the result of a calculation  : 80% of the Opened files allowed, What is the calculation
on windows ?

Michael Klishin

unread,
Jul 13, 2016, 8:55:36 AM7/13/16
to rabbitm...@googlegroups.com, alain.d...@alyacom.fr
At some point ERL_MAX_PORTS was scheduled for removal, I am not 100% sure if that
actually happened but the +Q VM flag performs the same function.

See http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/2013-September/030003.html,
http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/2013-September/030002.html,
http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/2013-September/029994.html,
http://erlang.org/doc/man/erl.html

(that's the old discontinued RabbitMQ mailing list, if you're curious)

Karl Nilsson

unread,
Jul 13, 2016, 9:30:30 AM7/13/16
to rabbitm...@googlegroups.com, alain.d...@alyacom.fr
I tested this with erlang R19 and it did increase the available socket descriptors shown in the management UI so it appears it hasn't been removed as yet! Maybe someone forgot. The number shown was roughly 80% of what I set the variable too.

Alain, how did you add the environment variable? I just added ERL_MAX_PORTS to the system environment variables and restarted the service for it to take effect.

Cheers
Karl

alain.d...@alyacom.fr

unread,
Jul 13, 2016, 10:03:00 AM7/13/16
to rabbitmq-users
Hi ,

I came to the same point, I modified the rabitmq-service.bat with +Q 65534, then it works now.

Thank you very much for your help
Reply all
Reply to author
Forward
0 new messages