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

运行时间久了内存占用出乎意料 #946

Open
2 tasks done
sxhoio opened this issue Jan 3, 2025 · 4 comments
Open
2 tasks done

运行时间久了内存占用出乎意料 #946

sxhoio opened this issue Jan 3, 2025 · 4 comments

Comments

@sxhoio
Copy link

sxhoio commented Jan 3, 2025

Environment

ubuntu 5.15.0-46-generic Docker

Nezha Version

Nezha 1.5.3

Describe the bug

运行时间久了之后会占用大量内存但是又会自动反复释放
![image](https://github.com/user-attachments/assets/4a7a27ed-7bf5-47f9-bd90-323228e65849)

To Reproduce

使用了S3作为本地存储并挂载在了本地目录 机器采用Docker运行的Nezha 机器大概30台

Configuration

Additional Context

Validation

  • I confirm this is a bug about nezha (Nezha Dashboard).
  • I have searched Issues and confirm this bug has been reported before.
@sxhoio
Copy link
Author

sxhoio commented Jan 3, 2025

image
这个是当前占用内存数

@uubulb
Copy link
Contributor

uubulb commented Jan 4, 2025

可以打开 debug,观察一下 pprof 数据

@sxhoio
Copy link
Author

sxhoio commented Jan 5, 2025

OK我找到问题了 目前他采用的是SQLite数据库 然后我把文件挂载到S3然后会反复读取完整文件导致执行速度超过600ms SQLite文本是125M左右然后1000M网卡一次性无法读取所有文件然后照成堵塞了

@uubulb
Copy link
Contributor

uubulb commented Jan 10, 2025

还有其它问题吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants