首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Heroku torchserve应用程序崩溃,状态0退出。

Heroku torchserve应用程序崩溃,状态0退出。
EN

Stack Overflow用户
提问于 2022-03-17 08:10:47
回答 1查看 57关注 0票数 0

我在赫罗库免费的迪诺部署火炬手。部署工作正常,但应用程序运行不正常。

LOG1:

代码语言:javascript
复制
2022-03-17T02:11:10.352655+00:00 heroku[web.1]: Starting process with command `torchserve --start --ncs --model-store model_store --models squeezenet1_1.mar`
2022-03-17T02:11:11.558957+00:00 app[web.1]: Setting JAVA_TOOL_OPTIONS defaults based on dyno size. Custom settings will override them.
2022-03-17T02:11:11.701395+00:00 app[web.1]: Picked up JAVA_TOOL_OPTIONS: -Xmx300m -Xss512k -XX:CICompilerCount=2 -Dfile.encoding=UTF-8
2022-03-17T02:11:11.896962+00:00 heroku[web.1]: Process exited with status 0
2022-03-17T02:11:12.059922+00:00 heroku[web.1]: State changed from starting to crashed

LOG2:

代码语言:javascript
复制
2022-03-17T05:17:29.472219+00:00 heroku[web.1]: Starting process with command `torchserve --start --ncs --model-store model_store --models squeezenet1_1.mar`
2022-03-17T05:17:30.854303+00:00 app[web.1]: Setting JAVA_TOOL_OPTIONS defaults based on dyno size. Custom settings will override them.
2022-03-17T05:17:31.304897+00:00 heroku[web.1]: Process exited with status 0
2022-03-17T05:17:31.364160+00:00 heroku[web.1]: State changed from starting to crashed

另外,我的requirements.txt:

代码语言:javascript
复制
-f https://download.pytorch.org/whl/cpu/torch_stable.html
future
psutil
requests
captum
packaging
numpy
cython
wheel
pillow==9.0.1
torch==1.10.0+cpu
torchvision==0.11.1+cpu
torchaudio==0.10.0+cpu
torchtext==0.11.0
torchserve==0.5.3

runtime.txt

代码语言:javascript
复制
python-3.8.12

system.properties

代码语言:javascript
复制
java.runtime.version=1.8.0_322
EN

回答 1

Stack Overflow用户

发布于 2022-03-17 08:59:09

默认情况下,torchserve在后台模式下运行。将--前台添加到Procfile中的torchserve命令中,修正了这一点。(此外,torchserve还需要java运行时11.0.14.1 )

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71508938

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档