内存限制设置为819MB,共4095MB - RabbitMQ - 如何设置set_vm_memory_high_watermark

时间:2015-10-08 15:48:18

标签: erlang rabbitmq rabbitmq-exchange

我的rabbitMQ服务一启动就崩溃了。这项服务在过去两年里运行良好,但突然间,它停止了工作。我看着日志,看到了这个:

=INFO REPORT==== 8-Oct-2015::11:40:56 ===
Starting RabbitMQ 3.0.2 on Erlang R16B

=INFO REPORT==== 8-Oct-2015::11:40:56 ===
Limiting to approx 8092 file handles (7280 sockets)

=WARNING REPORT==== 8-Oct-2015::11:40:56 ===
Only 2048MB of 4095MB memory usable due to limited address space.

=INFO REPORT==== 8-Oct-2015::11:40:56 ===
Memory limit set to 819MB of 4095MB total.

=INFO REPORT==== 8-Oct-2015::11:40:56 ===
Disk free limit set to 1000MB

=INFO REPORT==== 8-Oct-2015::11:40:56 ===
msg_store_transient: using rabbit_msg_store_ets_index to provide index

=INFO REPORT==== 8-Oct-2015::11:40:56 ===
msg_store_persistent: using rabbit_msg_store_ets_index to provide index

=INFO REPORT==== 8-Oct-2015::11:40:56 ===
started TCP Listener on [::]:5672

=ERROR REPORT==== 8-Oct-2015::11:40:56 ===
Error in process 

所以我决定运行以下commad:

  rabbitmqctl set_vm_memory_high_watermark 0.5

会出现以下错误:

Setting memory threshold on rabbit@sn4324324 to 0.5 ...
Error: unable to connect to node rabbit@sn4324324: nodedown

DIAGNOSTICS
===========

nodes in question: [rabbit@sn4324324]

hosts, their running nodes and ports:
- sn4324324: [{rabbitmqctl601389,64542}]

current node details:
- node name: rabbitmqctl601389@sn4324324
- home dir: C:\Users\TestUser
- cookie hash: /GF4XhumN66/5SsNp0a8gQ==

如何设置set_vm_memory_high_watermark的值

0 个答案:

没有答案