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

内存泄露 #9

Open
yiyungent opened this issue May 28, 2022 · 6 comments
Open

内存泄露 #9

yiyungent opened this issue May 28, 2022 · 6 comments
Labels
bug Something isn't working

Comments

@yiyungent
Copy link
Owner

yiyungent commented May 28, 2022

我刚测试发现 QQBotHub 啥插件都不加载,啥子都不做,内存占用++,
我的 OneTree(同样用了PluginCore),加载了一些插件,但内存占用一直没变

1. OneTree (PluginCore, 加载少量插件, 长时间运行, Portainer)

image

2. QQBotHub (PluginCore, 未加载插件,空新启动项目, Portainer)

一开始启动 27MB 左右, 内存++速度非常快!

image

3. QQBotHub (PluginCore, 加载大量插件,长时间运行, Railway)

image

@yiyungent yiyungent added the bug Something isn't working label May 28, 2022
@yiyungent
Copy link
Owner Author

排除 knt.Core 问题

image

@yiyungent
Copy link
Owner Author

本地 Visual Studio QQBotHub

image

等了会,目测一直稳在 84MB

image

@yiyungent
Copy link
Owner Author

经过长时间,Portainer 显示 qqbothub 逐渐稳定在 80+MB , 奇怪 , Railway 怎么会这么高占用,

有时间再测试一下插件

@yiyungent
Copy link
Owner Author

2. QQBotHub (PluginCore, 未加载插件,空新启动项目, Portainer)

过了2小时左右

image

@yiyungent
Copy link
Owner Author

经过反复实验

确定是 PluginCore.AspNetCore.BackgroundServices.PluginTimeJobBackgroundService.DoWork(object state) 的问题

反复执行任务,然而 插件实例 目测 没有成功被 GC 回收

@yiyungent yiyungent pinned this issue Jun 3, 2022
@yiyungent
Copy link
Owner Author

已在 qqbothub:v0.5.3 得到修复

@yiyungent yiyungent unpinned this issue Jan 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant