face-app 服务重启
cd ~/workspace
docker-compose restart face-app
查看抓图进程状态
通过发送post请求,然后查看日志就可以
post request:
url: http://ip:5000/camera/status
type: application/json
data: {"id": 1}
查看日志
tail /data/docker/face-app/camera.log
process_pool: {6: <Process(Process-1, started daemon)>, 7: <Process(Process-2, started daemon)>, 8: <Process(Process-3, started daemon)>}
状态为 started daemon 表示当前摄像头正常运行,stopped daemon 表示摄像头不正常运行
摄像头id 和 process_pool 的 数字对照表:
查看抓图进程数量
top 命令,查看root 用户 python进程,cpu占用通常100%左右的那些