diff --git a/java/examples/src/main/java/PaddleServingClientExample.java b/java/examples/src/main/java/PaddleServingClientExample.java index ceab6fa789fa3f622c23efb478ca49b3833bde77..cdc11df130095d668734ae0a23adb12ef735b2ea 100644 --- a/java/examples/src/main/java/PaddleServingClientExample.java +++ b/java/examples/src/main/java/PaddleServingClientExample.java @@ -85,7 +85,7 @@ public class PaddleServingClientExample { System.out.println("connect failed."); return false; } - succ = client.setRpcTimeoutMs(10000); // cpu + succ = client.setRpcTimeoutMs(20000); // cpu if (succ != true) { System.out.println("set timeout failed."); return false; diff --git a/tools/serving_build.sh b/tools/serving_build.sh index fff272f2acba9ff5aa1a64a98341251d30012708..ec26095a9439fe8d1b466e79695a9d9f26b7c46c 100644 --- a/tools/serving_build.sh +++ b/tools/serving_build.sh @@ -539,7 +539,7 @@ function java_run_test() { cd ../../python/examples/grpc_impl_example/yolov4 # pwd: /Serving/python/examples/grpc_impl_example/yolov4 python -m paddle_serving_app.package --get_model yolov4 tar -xzvf yolov4.tar.gz - check_cmd "python -m paddle_serving_server.serve --model yolov4_model --port 9393 --use_multilang > /dev/null &" + check_cmd "python -m paddle_serving_server.serve --model yolov4_model --port 9393 --use_multilang --mem_optim > /dev/null &" cd ../../../java/examples # /Serving/java/examples java -cp target/paddle-serving-sdk-java-examples-0.0.1-jar-with-dependencies.jar PaddleServingClientExample yolov4 src/main/resources/000000570688.jpg kill_server_process