Skip to content

Commit fc55e17

Browse files
committed
chore: debug
1 parent 0468956 commit fc55e17

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

test/cluster/proxy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ EOF
2828

2929
p=`dirname $0`
3030

31-
PROXY_BIN="java -Xms512m -Xmx16g --add-opens java.base/java.lang=ALL-UNNAMED -DLOG_LEVEL=trace -Djclouds.wire=debug -jar s3proxy.jar --properties $p/s3proxy.properties"
31+
PROXY_BIN="java -Xmx8g --add-opens java.base/java.lang=ALL-UNNAMED -DLOG_LEVEL=trace -Djclouds.wire=debug -jar s3proxy.jar --properties $p/s3proxy.properties"
3232
export S3CMD_ARGS="--access_key=foo --secret_key=bar"
3333
export AWS_ACCESS_KEY_ID=foo
3434
export AWS_SECRET_ACCESS_KEY=bar

test/run-proxy.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ PROXY_FS=$PROXY_FS
2424
PROXY_PORT=${PROXY_PORT:-8080}
2525
TIMEOUT=${TIMEOUT:-10m}
2626

27-
trap 'kill -9 $PROXY_PID' EXIT
27+
trap 'kill -9 $PROXY_PID; kill -9 $PS_PID' EXIT
2828

2929
if [ $CLOUD == "s3" ]; then
3030
sed 's/$PORT/'$PROXY_PORT'/' < test/s3proxy.properties > test/s3proxy_test.properties
@@ -33,7 +33,9 @@ if [ $CLOUD == "s3" ]; then
3333
echo jclouds.provider=filesystem >>test/s3proxy_test.properties
3434
echo jclouds.filesystem.basedir=/tmp/s3proxy >>test/s3proxy_test.properties
3535
fi
36-
PROXY_BIN="java -Xms512m -Xmx16g --add-opens java.base/java.lang=ALL-UNNAMED -jar s3proxy.jar --properties test/s3proxy_test.properties"
36+
PROXY_BIN="java -Xmx8g --add-opens java.base/java.lang=ALL-UNNAMED -jar s3proxy.jar --properties test/s3proxy_test.properties"
37+
(java --version; for i in $(seq 100); do ps aux|grep -e java -e tigrisfs; sleep 7; done) &
38+
PS_PID=$!
3739
export AWS_ACCESS_KEY_ID=foo
3840
export AWS_SECRET_ACCESS_KEY=bar
3941
export ENDPOINT=http://localhost:$PROXY_PORT

0 commit comments

Comments
 (0)