summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2010-08-02 17:23:57 +0100
committerMatthias Radestock <matthias@rabbitmq.com>2010-08-02 17:23:57 +0100
commit044dc5748dc047e2a1686c709472547f6cf03da8 (patch)
treecd5bd659da62806ee8cd212845b1bd051bdcdd64
parent25040ea8fb2b3a2348e29bf0a522540b9a2d6b05 (diff)
downloadrabbitmq-server-044dc5748dc047e2a1686c709472547f6cf03da8.tar.gz
add Makefile targets to simulate memory pressure
to be used in tests
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index a97838cc..1f15921b 100644
--- a/Makefile
+++ b/Makefile
@@ -179,6 +179,14 @@ stop-rabbit-on-node: all
force-snapshot: all
echo "rabbit_persister:force_snapshot()." | $(ERL_CALL)
+set-memory-alarm: all
+ echo "alarm_handler:set_alarm({vm_memory_high_watermark, []})." | \
+ $(ERL_CALL)
+
+clear-memory-alarm: all
+ echo "alarm_handler:clear_alarm(vm_memory_high_watermark)." | \
+ $(ERL_CALL)
+
stop-node:
-$(ERL_CALL) -q