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

内存占用过大,被杀死,请问那一部分占用了这么大的内存 #11

Open
Ming-XF opened this issue Apr 24, 2023 · 2 comments

Comments

@Ming-XF
Copy link

Ming-XF commented Apr 24, 2023

我在云服务器上运行该程序
服务器配置为1G内存,2核CPU
在提取出内容后程序被杀死
我想要尝试做一下内存优化,请问这个代码哪个部分可能占用了大量的内存

@SkywalkerDarren
Copy link
Owner

用的是直接运行吗?
可能是faiss加载索引时占用内存导致的

@SkywalkerDarren
Copy link
Owner

可以试试postgres,如果不能解决的话可以继承Storage来实现其他自定义的存储方式,欢迎PR~

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