rabbitmqctl set_vhost_limits: too may arguments

119 views
Skip to first unread message

michael sleeuwagen

unread,
Sep 11, 2023, 3:27:50 AM9/11/23
to rabbitmq-users
Hi,

I'm trying to increase the vhost connection limits with the command rabbitmqctl set_vhost_limits --p vNext_JDH '{"max-connections": 256}' but I get the error message that there are too many arguments. The command is documented on the RabbitMQ site and everything looks fine to me. I also tried it with --vhost argument but I get the same error message.

This is the full command and error message:

D:\Program Files\RabbitMQ Server\rabbitmq_server-3.11.10\sbin>rabbitmqctl set_vhost_limits --p vNext_JDH '{"max-connections": 256}'
Error (argument validation): Invalid options for this command:
--p :
Arguments given:
        set_vhost_limits --p vNext_JDH '{max-connections: 256}'

[1mUsage [0m

rabbitmqctl [--node <node>] [--longnames] [--quiet] set_vhost_limits [--vhost <vhost>] <definition>

Kind Regards,
Michael

Michal Kuratczyk

unread,
Sep 11, 2023, 3:46:08 AM9/11/23
to rabbitm...@googlegroups.com
It's -p (one hyphen) or --vhost, but not --p.

--
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 view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/44067802-2899-44b6-9fb2-2933ed670a7fn%40googlegroups.com.


--
Michał
RabbitMQ team

michael sleeuwagen

unread,
Sep 11, 2023, 10:00:32 AM9/11/23
to rabbitmq-users
Hi,
I get the same message with one hyphen:

D:\Program Files\RabbitMQ Server\rabbitmq_server-3.11.10\sbin>rabbitmqctl set_vhost_limits -p vNext_JDH '{"max-connections": 256}'
Error (argument validation): too many arguments.
Arguments given:
        set_vhost_limits -p vNext_JDH '{max-connections: 256}'


[1mUsage [0m

rabbitmqctl [--node <node>] [--longnames] [--quiet] set_vhost_limits [--vhost <vhost>] <definition>


Op maandag 11 september 2023 om 09:46:08 UTC+2 schreef Michal Kuratczyk:

michael sleeuwagen

unread,
Sep 11, 2023, 10:03:48 AM9/11/23
to rabbitmq-users
I also tried with --vhost but I get the same error message(too many arguments)

Op maandag 11 september 2023 om 16:00:32 UTC+2 schreef michael sleeuwagen:

mislukte appelsien

unread,
Sep 13, 2023, 5:39:24 AM9/13/23
to rabbitmq-users
Dear Michel Sleeuwagen,

You can also change the vhost_limits in de GUI
Go to the webpage of your RabbitMQ-server
then ADMIN -> LIMITS 

Set / update a virtual host limit

Vilius Šumskas

unread,
Sep 13, 2023, 9:00:22 AM9/13/23
to rabbitm...@googlegroups.com

Hi,

 

check your single/double quotes. On Windows CMD they wreak havoc sometimes. Maybe something like "{\"max-connections\": 256}" will work better.

 

--

    Vilius

Reply all
Reply to author
Forward
0 new messages