<div>Wondering why this crashes when vm_memory_high_watermark is set?</div><div><br></div><div>This message "vm_memory_high_watermark set. Memory used:935,079,976 allowed:858,993,459" is rather intriguing, or am I missing something? (The commas were inserted by me in order to make the number more legible.)</div>
<div><br></div><div>Environment:</div><ul><li>Windows 7 X64 (4GB memory)</li><li>RabbitMQ 1.7.2</li><li>Erlang R13B04</li></ul><div>rabbitmq.config</div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;">
<div><div>[</div></div><div><div> {rabbit, [{vm_memory_high_watermark, 0.4}]},</div></div><div><div> {rabbit, [{memory_alarms, true}]},</div></div><div><div> {mnesia, [{dump_log_write_threshold, 1000}]},</div></div><div>
<div> {rabbit, []}</div></div><div><div>].</div></div></blockquote><div><br></div><div>Running these two clients:</div>
<div><ul><li>MulticastMain -y 0 -s 128 -e e -t fanout -r 1100 -f persistent</li><li>MulticastMain -x 0 -e e -t fanout -y 10 -n 500 -q 1000</li></ul><div>The broker crashed with:</div></div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;">
<div><div><div>Thu Apr 01 15:22:19 2010</div></div></div><div><div><div>Slogan: eheap_alloc: Cannot allocate 153052320 bytes of memory (of type "heap").</div></div></div><div><div><div>System version: Erlang R13B04 (erts-5.7.5) [smp:2:2] [rq:2] [async-threads:30]</div>
</div></div><div><div><div>Compiled: Mon Feb 22 20:02:36 2010</div></div></div></blockquote><div><div><div><br></div><div>--- this is the log file ---</div></div><div><div><div>=INFO REPORT==== 1-Apr-2010::15:15:04 ===</div>
<div>Memory limit set to 819MB.</div><div><br></div><div>=INFO REPORT==== 1-Apr-2010::15:15:04 ===</div><div>disk_log: repairing "c:/AMQP/RabbitMQ/rabbitmq_server-1.7.2/db/BIGPOOH-mnesia/ra</div><div>bbit_persister.LOG" ...</div>
<div>=INFO REPORT==== 1-Apr-2010::15:15:08 ===</div><div>Repaired persister log - 501 recovered, 0 bad</div><div>=INFO REPORT==== 1-Apr-2010::15:15:21 ===</div><div>Rolling persister log to "c:/AMQP/RabbitMQ/rabbitmq_server-1.7.2/db/BIGPOOH-mnes</div>
<div>ia/rabbit_persister.LOG.previous"</div><div>=INFO REPORT==== 1-Apr-2010::15:15:22 ===</div><div>started TCP Listener on <a href="http://0.0.0.0:5672">0.0.0.0:5672</a></div><div>=INFO REPORT==== 1-Apr-2010::15:17:50 ===</div>
<div>accepted TCP connection on <a href="http://0.0.0.0:5672">0.0.0.0:5672</a> from <a href="http://127.0.0.1:37477">127.0.0.1:37477</a></div><div>=INFO REPORT==== 1-Apr-2010::15:17:50 ===</div><div>starting TCP connection <0.315.0> from <a href="http://127.0.0.1:37477">127.0.0.1:37477</a></div>
<div>=INFO REPORT==== 1-Apr-2010::15:18:08 ===</div><div>accepted TCP connection on <a href="http://0.0.0.0:5672">0.0.0.0:5672</a> from <a href="http://127.0.0.1:37484">127.0.0.1:37484</a></div><div>=INFO REPORT==== 1-Apr-2010::15:18:08 ===</div>
<div>starting TCP connection <0.339.0> from <a href="http://127.0.0.1:37484">127.0.0.1:37484</a></div><div>=INFO REPORT==== 1-Apr-2010::15:18:08 ===</div><div>accepted TCP connection on <a href="http://0.0.0.0:5672">0.0.0.0:5672</a> from <a href="http://127.0.0.1:37485">127.0.0.1:37485</a></div>
<div>=INFO REPORT==== 1-Apr-2010::15:18:08 ===</div><div>starting TCP connection <0.345.0> from <a href="http://127.0.0.1:37485">127.0.0.1:37485</a></div><div>=INFO REPORT==== 1-Apr-2010::15:18:08 ===</div><div>accepted TCP connection on <a href="http://0.0.0.0:5672">0.0.0.0:5672</a> from <a href="http://127.0.0.1:37488">127.0.0.1:37488</a></div>
<div>=INFO REPORT==== 1-Apr-2010::15:18:08 ===</div><div>starting TCP connection <0.352.0> from <a href="http://127.0.0.1:37488">127.0.0.1:37488</a></div><div>=INFO REPORT==== 1-Apr-2010::15:18:09 ===</div><div>accepted TCP connection on <a href="http://0.0.0.0:5672">0.0.0.0:5672</a> from <a href="http://127.0.0.1:37489">127.0.0.1:37489</a></div>
<div>=INFO REPORT==== 1-Apr-2010::15:18:09 ===</div><div>starting TCP connection <0.362.0> from <a href="http://127.0.0.1:37489">127.0.0.1:37489</a></div><div>=INFO REPORT==== 1-Apr-2010::15:18:10 ===</div><div>accepted TCP connection on <a href="http://0.0.0.0:5672">0.0.0.0:5672</a> from <a href="http://127.0.0.1:37490">127.0.0.1:37490</a></div>
<div>=INFO REPORT==== 1-Apr-2010::15:18:10 ===</div><div>starting TCP connection <0.371.0> from <a href="http://127.0.0.1:37490">127.0.0.1:37490</a></div><div>=INFO REPORT==== 1-Apr-2010::15:18:11 ===</div><div>accepted TCP connection on <a href="http://0.0.0.0:5672">0.0.0.0:5672</a> from <a href="http://127.0.0.1:37491">127.0.0.1:37491</a></div>
<div>=INFO REPORT==== 1-Apr-2010::15:18:11 ===</div><div>starting TCP connection <0.383.0> from <a href="http://127.0.0.1:37491">127.0.0.1:37491</a></div><div>=INFO REPORT==== 1-Apr-2010::15:18:12 ===</div><div>accepted TCP connection on <a href="http://0.0.0.0:5672">0.0.0.0:5672</a> from <a href="http://127.0.0.1:37492">127.0.0.1:37492</a></div>
<div>=INFO REPORT==== 1-Apr-2010::15:18:12 ===</div><div>starting TCP connection <0.393.0> from <a href="http://127.0.0.1:37492">127.0.0.1:37492</a></div><div>=INFO REPORT==== 1-Apr-2010::15:18:13 ===</div><div>accepted TCP connection on <a href="http://0.0.0.0:5672">0.0.0.0:5672</a> from <a href="http://127.0.0.1:37493">127.0.0.1:37493</a></div>
<div>=INFO REPORT==== 1-Apr-2010::15:18:13 ===</div><div>starting TCP connection <0.404.0> from <a href="http://127.0.0.1:37493">127.0.0.1:37493</a></div><div>=INFO REPORT==== 1-Apr-2010::15:18:16 ===</div><div>accepted TCP connection on <a href="http://0.0.0.0:5672">0.0.0.0:5672</a> from <a href="http://127.0.0.1:37494">127.0.0.1:37494</a></div>
<div>=INFO REPORT==== 1-Apr-2010::15:18:16 ===</div><div>starting TCP connection <0.419.0> from <a href="http://127.0.0.1:37494">127.0.0.1:37494</a></div><div>=INFO REPORT==== 1-Apr-2010::15:18:20 ===</div><div>accepted TCP connection on <a href="http://0.0.0.0:5672">0.0.0.0:5672</a> from <a href="http://127.0.0.1:37496">127.0.0.1:37496</a></div>
<div>=INFO REPORT==== 1-Apr-2010::15:18:20 ===</div><div>starting TCP connection <0.440.0> from <a href="http://127.0.0.1:37496">127.0.0.1:37496</a></div><div>=INFO REPORT==== 1-Apr-2010::15:18:37 ===</div><div>Rolling persister log to "c:/AMQP/RabbitMQ/rabbitmq_server-1.7.2/db/BIGPOOH-mnes</div>
<div>ia/rabbit_persister.LOG.previous"</div><div>=INFO REPORT==== 1-Apr-2010::15:20:25 ===</div><div>Rolling persister log to "c:/AMQP/RabbitMQ/rabbitmq_server-1.7.2/db/BIGPOOH-mnes</div><div>ia/rabbit_persister.LOG.previous"</div>
<div>=INFO REPORT==== 1-Apr-2010::15:21:38 ===</div><div>vm_memory_high_watermark set. Memory used:935079976 allowed:858993459</div><div>=INFO REPORT==== 1-Apr-2010::15:21:39 ===</div><div> alarm_handler: {set,{vm_memory_high_watermark,[]}}</div>
<div>=INFO REPORT==== 1-Apr-2010::15:21:41 ===</div><div>vm_memory_high_watermark clear. Memory used:857734144 allowed:858993459</div><div>=INFO REPORT==== 1-Apr-2010::15:21:41 ===</div><div> alarm_handler: {clear,vm_memory_high_watermark}</div>
<div>=INFO REPORT==== 1-Apr-2010::15:21:54 ===</div><div>Rolling persister log to "c:/AMQP/RabbitMQ/rabbitmq_server-1.7.2/db/BIGPOOH-mnes</div><div>ia/rabbit_persister.LOG.previous"</div><div>=INFO REPORT==== 1-Apr-2010::15:22:12 ===</div>
<div>vm_memory_high_watermark set. Memory used:874137976 allowed:858993459</div><div>=INFO REPORT==== 1-Apr-2010::15:22:12 ===</div><div> alarm_handler: {set,{vm_memory_high_watermark,[]}}</div><div>=INFO REPORT==== 1-Apr-2010::15:22:15 ===</div>
<div>vm_memory_high_watermark clear. Memory used:829796064 allowed:858993459</div><div>=INFO REPORT==== 1-Apr-2010::15:22:15 ===</div><div> alarm_handler: {clear,vm_memory_high_watermark}</div><div>=INFO REPORT==== 1-Apr-2010::15:22:17 ===</div>
<div>vm_memory_high_watermark set. Memory used:861047168 allowed:858993459</div><div>=INFO REPORT==== 1-Apr-2010::15:22:17 ===</div><div> alarm_handler: {set,{vm_memory_high_watermark,[]}}</div></div><div><br></div><div>
--- end of log file ---</div><div>---</div></div>John Apps<br>(49) 171 869 1813<br>
</div>