Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug?]: #711

Closed
4 tasks done
zhtoatao opened this issue Dec 21, 2024 · 3 comments
Closed
4 tasks done

[Bug?]: #711

zhtoatao opened this issue Dec 21, 2024 · 3 comments
Labels
bug? Maybe it's a bug

Comments

@zhtoatao
Copy link

请确保您已阅读以上注意事项,并勾选下方的确认框。

  • 我已经仔细阅读上述内容
  • 我已经使用 最新构建 测试过,问题依旧存在。
  • 我已经在 Issue Tracker 中找过我要提出的问题,没有找到相同问题的ISSUE。
  • 我已知晓并同意,此处仅用于汇报程序中存在的问题。若这个 Issue 是关于其他非程序本身问题,则我的 Issue 可能会被无条件自动关闭或/并锁定。(其它疑问请考虑加入TG群询问或在discussions中提问)

Lagrange项目

OneBot

所使用/依赖的Lagrange项目对应的commit

https://github.com/LagrangeDev/Lagrange.Core/releases

运行环境

Linux

运行架构

x64

连接方式

反向 WebSocket

重现步骤

screen -r -d 37820
cd /home/qq_bot/lagrange
chmod +x ./Lagrange.OneBot
./Lagrange.OneBot

期望的结果是什么?

正常运行,不掉线

实际的结果是什么?

频繁掉线

检查到因为内存占用过高被系统kill的日志记录
[1288417.870445] Out of memory: Killed process 239441 (Lagrange.OneBot) total-vm:274451688kB, anon-rss:765692kB, file-rss:0kB, shmem-rss:38392kB, UID:0 pgtables:2280kB oom_score_adj:0
[1345700.476477] Out of memory: Killed process 248905 (Lagrange.OneBot) total-vm:274223532kB, anon-rss:877048kB, file-rss:0kB, shmem-rss:42236kB, UID:0 pgtables:2368kB oom_score_adj:0
[1583960.855534] Out of memory: Killed process 288504 (Lagrange.OneBot) total-vm:274194664kB, anon-rss:944200kB, file-rss:0kB, shmem-rss:42360kB, UID:0 pgtables:2520kB oom_score_adj:0
[1957866.885749] Out of memory: Killed process 533879 (Lagrange.OneBot) total-vm:274344272kB, anon-rss:1157064kB, file-rss:0kB, shmem-rss:43388kB, UID:0 pgtables:2984kB oom_score_adj:0
[2024569.166199] Out of memory: Killed process 618230 (Lagrange.OneBot) total-vm:274497776kB, anon-rss:1164268kB, file-rss:0kB, shmem-rss:41652kB, UID:0 pgtables:3096kB oom_score_adj:0
[2051138.897177] Out of memory: Killed process 657485 (Lagrange.OneBot) total-vm:274532228kB, anon-rss:1167872kB, file-rss:0kB, shmem-rss:38944kB, UID:0 pgtables:3116kB oom_score_adj:0
[2105009.327873] Out of memory: Killed process 665013 (Lagrange.OneBot) total-vm:274351160kB, anon-rss:1172372kB, file-rss:0kB, shmem-rss:39808kB, UID:0 pgtables:3028kB oom_score_adj:0

检查进程
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
702428 root 20 0 261.5g 182876 89416 S 0.7 10.1 0:11.71 Lagrange.OneBot
看上去就很异常的VIRT
PixPin_2024-12-21_20-19-49

简单的复现代码/链接(可选)

No response

Trace 级别日志记录(可选)

No response

补充说明(可选)

No response

@zhtoatao zhtoatao added the bug? Maybe it's a bug label Dec 21, 2024
@ishkong
Copy link
Collaborator

ishkong commented Dec 21, 2024

VIRT不影响 RES只有182876约等于178MB 预期内

@ishkong ishkong closed this as completed Dec 21, 2024
@ishkong ishkong closed this as not planned Won't fix, can't repro, duplicate, stale Dec 21, 2024
@zhtoatao
Copy link
Author

VIRT不影响 RES只有182876约等于178MB 预期内

为什么会OOM,是不是需要改什么设置控制内存?最近被kill的频率很高

@ishkong
Copy link
Collaborator

ishkong commented Dec 22, 2024

VIRT不影响 RES只有182876约等于178MB 预期内

为什么会OOM,是不是需要改什么设置控制内存?最近被kill的频率很高

我不知道,你什么都没有提供,日志也没有,崩溃前内存变大时也没有dump出内存信息,而且其它人也没有遇到类似的问题,我不会算命,无能为力

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug? Maybe it's a bug
Projects
None yet
Development

No branches or pull requests

2 participants