PaddlePaddle / Serving

A flexible, high-performance carrier for machine learning models(『飞桨』服务化部署框架)
Apache License 2.0
898 stars 250 forks source link

使用java client出现grpc网络异常 #842

Closed ltnsace closed 3 years ago

ltnsace commented 4 years ago

我使用了官方文档中的java client文档中的教程测试,在调用最后的请求是出现了网络异常。 我确定服务端是存活的并且在另外一台机器上运行python客户端是正常的。 请问是不是目前不支持windows操作系统的java客户端。

以下是控制台出现的警告以及错误

2020-09-18 10:13:56 org.nd4j.linalg.factory.Nd4jBackend load INFO: Loaded [CpuBackend] backend 2020-09-18 10:13:56 org.nd4j.nativeblas.NativeOpsHolder INFO: Number of threads used for linear algebra: 4 2020-09-18 10:13:56 org.nd4j.linalg.cpu.nativecpu.CpuNDArrayFactory createBlas WARN: CPU Feature Check Warning 2020-09-18 10:13:56 org.nd4j.linalg.cpu.nativecpu.CpuNDArrayFactory createBlas WARN: Warning: Initializing ND4J with Generic x86 binary on a CPU with AVX/AVX2 support 2020-09-18 10:13:56 org.nd4j.linalg.cpu.nativecpu.CpuNDArrayFactory createBlas WARN: Using ND4J with AVX/AVX2 will improve performance. See deeplearning4j.org/cpu for more details 2020-09-18 10:13:56 org.nd4j.linalg.cpu.nativecpu.CpuNDArrayFactory createBlas WARN: Or set environment variable ND4J_IGNORE_AVX=true to suppress this warning 2020-09-18 10:13:56 org.nd4j.linalg.cpu.nativecpu.CpuNDArrayFactory createBlas WARN: ***** 2020-09-18 10:13:56 org.nd4j.nativeblas.Nd4jBlas INFO: Number of threads used for OpenMP BLAS: 4 2020-09-18 10:13:57 org.nd4j.linalg.api.ops.executioner.DefaultOpExecutioner printEnvironmentInformation INFO: Backend used: [CPU]; OS: [Windows 10] 2020-09-18 10:13:57 org.nd4j.linalg.api.ops.executioner.DefaultOpExecutioner printEnvironmentInformation INFO: Cores: [4]; Memory: [6.7GB]; 2020-09-18 10:13:57 org.nd4j.linalg.api.ops.executioner.DefaultOpExecutioner printEnvironmentInformation INFO: Blas vendor: [OPENBLAS] Get Client config failed: io.grpc.StatusRuntimeException: UNAVAILABLE: Network closed for unknown reason connect failed.

Process finished with exit code 0

github-actions[bot] commented 4 years ago

Message that will be displayed on users' first issue

barrierye commented 4 years ago

我确定服务端是存活的并且在另外一台机器上运行python客户端是正常的。

请问启动服务端时是否添加了use_multilang参数(启动多语言服务端)?在该台win机器上用Python 多语言版client能否正常访问(多语言 Python Server&Client)?

barrierye commented 4 years ago

pypi上的python whl与当前(2020.09.24)的Java SDK不匹配,需要使用最新的安装包(server和client都要更新):https://github.com/PaddlePaddle/Serving/blob/develop/doc/LATEST_PACKAGES.md