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
commit9c455da6a7a64b90e0039e93c6546ea6a788ec3e (patch)
treecd5bd659da62806ee8cd212845b1bd051bdcdd64
parent8c2c3dc042ad659afcc4c547fc7adce967942588 (diff)
downloadrabbitmq-server-git-9c455da6a7a64b90e0039e93c6546ea6a788ec3e.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 a97838cc3c..1f15921b6b 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