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

How do I actively free memory #651

Open
CG-man opened this issue Mar 15, 2024 · 0 comments
Open

How do I actively free memory #651

CG-man opened this issue Mar 15, 2024 · 0 comments

Comments

@CG-man
Copy link

CG-man commented Mar 15, 2024

这个包我成功连接了我的telegram账户,但是我的服务器内存太小了,只有1G,我设置了4G的swap文件,但是貌似并没有被使用,
不过作为一个没有图形界面的聊天接收器,用nodejs需要用到1G以上的内存是不正常的, 我想知道我是否可以主动释放内存或者将那些历史消息从内存中清理出去,防止我的程序出现内存溢出

I successfully connected my telegram account with this package, but my server memory was too small, only 1G, I set up 4G swap file, but it seems not used, but as a chat receiver without graphical interface, it is not normal to use more than 1G memory with nodejs. I want to know if I can actively free up memory or clean those historical messages from memory, To prevent my program from running out of memory.

node version: 16.20.2
os: centos 7
mem: 1G


Thanks to the developer for making such a great tool, it's really great to use

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

1 participant