Closed Cleam closed 2 years ago
麻烦可以问下 iOS 应用中 CFBundleURLSchemes
是如何设置的值?
我先处理这个问题,等一会 https://github.com/tryzealot/zealot/actions/runs/2306089077 跑完更新下 nightly
tag 后就应该好了
响应这么快,感谢大佬,我晚点试试nightly。
麻烦可以问下 iOS 应用中
CFBundleURLSchemes
是如何设置的值?
新增的IOS应用,CFBundleURLSchemes 为空。
@icyleaf 请教下大佬,我们已经将空的CFBundleURLSchemes
值处理掉了,没有报错了,但是发包频率高的情况下,还是会把服务器卡死(目前只接了2个IOS应用),不知道这个要怎么排查问题?或者大佬是否知道有可能是哪些原因导致?
先确认下打包机器的硬件规格,CPU 和 内存 只要把这俩解决了都不是问题
先确认下打包机器的硬件规格,CPU 和 内存 只要把这俩解决了都不是问题
目前的服务器:
那不应该,我 4 核 2G 内存都能稳定跑几年,iOS 不会特别吃内存,Android 解析会相对比较吃内存的,机器还有其他什么吃资源的服务吗或者部署 zealot 有限制资源吗
那不应该,我 4 核 2G 内存都能稳定跑几年,iOS 不会特别吃内存,Android 解析会相对比较吃内存的,机器还有其他什么吃资源的服务吗或者部署 zealot 有限制资源吗
不知大佬是否有对docker配置进行优化?我这里docker部署了几个服务,也部署了几年,但是自从部署了zealot服务之后,不定时的就会将内存占满,导致服务崩溃,如下内存占满图:
我尝试过一个一个的停掉docker服务,但是当我停掉zealot这个服务的时候,内存一下子就降下来了。尴尬的是我也不知道这个问题出在哪。
docker info 看看
@icyleaf docker info 如下:
Client:
Context: default
Debug Mode: false
Plugins:
app: Docker App (Docker Inc., v0.9.1-beta3)
buildx: Build with BuildKit (Docker Inc., v0.6.3-docker)
scan: Docker Scan (Docker Inc., v0.9.0)
Server:
Containers: 14
Running: 8
Paused: 0
Stopped: 6
Images: 20
Server Version: 20.10.11
Storage Driver: fuse-overlayfs
Logging Driver: json-file
Cgroup Driver: cgroupfs
Cgroup Version: 1
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 7b11cfaabd73bb80907dd23182b9347b4245eb5d
runc version: v1.0.2-0-g52b36a2
init version: de40ad0
Security Options:
seccomp
Profile: default
Kernel Version: 5.15.6-1.el7.elrepo.x86_64
Operating System: CentOS Linux 7 (Core)
OSType: linux
Architecture: x86_64
CPUs: 8
Total Memory: 15.63GiB
Name: 10-42-1-77
ID: E3QL:COS7:2IJW:2QXU:GYPV:B7UO:6T2N:AYDJ:X5YU:7SME:LV6S:YCWU
Docker Root Dir: /data/docker
Debug Mode: false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Registry Mirrors:
https://*****.mirror.aliyuncs.com/
https://hub-mirror.c.163.com/
Live Restore Enabled: false
Default Address Pools:
Base: 192.169.0.0/16, Size: 24
我昨晚看了下,内存占用保持在了50%左右(感觉内存占用每天会不断增加而没有释放),只能通过docker-compose stop
再start
才会释放,restart
都没有释放。
把 storage driver 改成 overlay2 试试吧 https://docs.docker.com/storage/storagedriver/overlayfs-driver/
我们的服务部署在阿里云的 k8s 上面使用 0.25 core 和 512M 内存跑的那么久也没啥问题
@icyleaf 系统暂不支持 overlay2
暂时只能写个定时器 ,定时重启服务。
建议不要使用 CentOS 换个其他主流系统吧 😂 我先关闭了
ok
@icyleaf 昨天将docker容器内存和cpu做了限制之后,发现没有出现内存暴涨的情况,我将定时重启服务的任务也暂时去掉了,打算再观察一阵子,不过看内存占用情况,明显好转了:
内存限制(之前是没做限制的):
感谢经过观察的反馈,后续我会把你情况整理并汇总到 Q&A 里面
部署方式 | How to Deploy
Docker (Default)
部署版本 | Version
latest
反代服务 | Reverse Proxy
nginx
已阅读文档 | Read the document
描述 | Description
一开始,系统只接入了一个IOS应用,运行比较稳定,后面新加入了一个ios应用,在发布较频繁的时候,很容易就把服务器搞崩溃,看了下后台任务监控信息如下(不知是不是失败重试导致服务器崩溃,目前我这里只能靠重启服务器解决):
失败面板:
重试面板:
信息面板:
大佬,能不能帮忙看看,这一般是啥情况引起的?
问题日志 | Relevant log output