5 ## this script attempts to limit memory of rs-serve and see how it behaves.
6 ## it doesn't work for me though. Setting $LIMIT < 5000 causes the shell process
7 ## to run out of memory, but any higher number doesn't cause rs-serve to run out
9 ## In either case, this probably only works anyway if /proc/sys/vm/overcommit_memory
10 ## is adjusted, so requires root privileges.
13 echo "Running with ulimit -v $LIMIT"
14 SERVER_PID=`bash <<EOF
16 ./rs-serve --port 8181 >limitcheck-server.log 2>&1 &
20 if [ "$SERVER_PID" == "" ] ; then
21 echo "Server not started!"
25 echo "Server started as $SERVER_PID"
28 . scripts/run-requests.sh