[rabbitmq-discuss] RABBITMQ_SERVER_ERL_ARGS on Windows

Cordell, Ron Ron.Cordell at RelayHealth.com
Tue Sep 10 16:41:03 BST 2013


Oops, my mistake. The reference to RABBITMQ_SERVER_ERL_ARGS is indeed in
the rabbitmq-service.bat:

set ERLANG_SERVICE_ARGUMENTS= ^
-pa "!RABBITMQ_EBIN_ROOT!" ^
-boot start_sasl ^
-s rabbit boot ^
!RABBITMQ_CONFIG_ARG! ^
+W w ^
+A30 ^
+P 1048576 ^
+Q 65536 ^
-kernel inet_default_connect_options "[{nodelay,true}]" ^
!RABBITMQ_LISTEN_ARG! ^
!RABBITMQ_SERVER_ERL_ARGS! ^
-sasl errlog_type error ^
-sasl sasl_error_logger false ^
-rabbit error_logger {file,\""!LOGS:\=/!"\"} ^
-rabbit sasl_error_logger {file,\""!SASL_LOGS:\=/!"\"} ^
-rabbit enabled_plugins_file \""!RABBITMQ_ENABLED_PLUGINS_FILE:\=/!"\" ^
-rabbit plugins_dir \""!RABBITMQ_PLUGINS_DIR:\=/!"\" ^
-rabbit plugins_expand_dir \""!RABBITMQ_PLUGINS_EXPAND_DIR:\=/!"\" ^
-os_mon start_cpu_sup false ^
-os_mon start_disksup false ^
-os_mon start_memsup false ^
-mnesia dir \""!RABBITMQ_MNESIA_DIR:\=/!"\" ^
!RABBITMQ_SERVER_START_ARGS! ^
!STAR!



Cheers,

ron

On 9/10/13 8:37 AM, "Cordell, Ron" <Ron.Cordell at RelayHealth.com> wrote:

>Yes, thanks - that's exactly why I am attempting to use the
>RABBITMQ_SERVER_ERL_ARGS
>
>However, I find that the environment variable has no effect when
>installing RabbitMQ/Erlang as a Windows Service.
>If I modify the rabbitmq-service.bat install file to add the +Q parameter
>it works. From examining the rabbitmq-service.bat file I don't see where
>the RABBITMQ_SERVER_ERL_ARGS is actually referenced. Is this intentional?
>
>Cheers,
>
>ron
>
>On 9/10/13 2:38 AM, "Simon MacMullen" <simon at rabbitmq.com> wrote:
>
>>On 10/09/2013 10:29AM, Emile Joubert wrote:
>>> On 09/09/13 18:34, Cordell, Ron wrote:
>>>> >I would like to set the +Q parameter and it appears that I should
>>>> >use RABBITMQ_SERVER_ERL_ARGS parameter.
>>> Note that you can achieve the same effect by setting ERL_MAX_PORTS on
>>> current versions of Erlang.
>>
>>Note for people reading this in the future: ERL_MAX_PORTS is scheduled
>>for removal in Erlang R17, so after that point you *must* use +Q in
>>RABBITMQ_SERVER_ERL_ARGS.
>>
>>Cheers, Simon
>>
>>-- 
>>Simon MacMullen
>>RabbitMQ, Pivotal
>



More information about the rabbitmq-discuss mailing list