Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.

如何减少内存占用? #86

Open
amitbha opened this issue Jan 23, 2019 · 7 comments
Open

如何减少内存占用? #86

amitbha opened this issue Jan 23, 2019 · 7 comments

Comments

@amitbha
Copy link

amitbha commented Jan 23, 2019

Description

electronic-wechat 总共开了6个进程,内存占用 800+。
虽然总共 6G 内存,但开个浏览器、虚拟机,感觉也开始不够用了,swap 都用了一半。
进程数能否减少?

Specifications

  • Version of Electron (run $ electron --version): v2.3.0
  • OS: ArchLinux
@kooritea
Copy link
Owner

进程数是electron根据打开的窗口自动控制的
6个进程应该是包含了设置页的渲染进程,关掉设置页会自动退出
800mb的确有点多(我实际使用5个进程总共只有450mb左右

能看一下每个进程分别的内存大小吗

@amitbha
Copy link
Author

amitbha commented Jan 23, 2019

还没登录就600m了,用一用就到800了,并没有开设置页。用htop的res内存值算的
fs-19-01-23 19 06

@amitbha
Copy link
Author

amitbha commented Feb 27, 2019

有新的选择了:Revery!

Revery is kind of like super-fast, native Electron - with bundled React-like/Redux-like libraries and a fast build system - all ready to go!

https://github.com/revery-ui/revery

@kooritea
Copy link
Owner

关注

@jack-zhang123
Copy link

@amitbha 弱弱的问下,你这个截图,有树形的怎么出来的,htop? 加什么参数呀

@amitbha
Copy link
Author

amitbha commented Mar 5, 2019

@amitbha 弱弱的问下,你这个截图,有树形的怎么出来的,htop? 加什么参数呀

htop支持设置的:按F2-- Display option -- tree view

@jack-zhang123
Copy link

@amitbha 弱弱的问下,你这个截图,有树形的怎么出来的,htop? 加什么参数呀

htop支持设置的:按F2-- Display option -- tree view

谢谢

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

No branches or pull requests

3 participants