系统内存占到百分之九十左右毫无信号,卡死只能强制关机
Tofloor
poster avatar
风吹过的绿洲
deepin
2017-09-06 08:36
Author
本帖最后由 as763190097 于 2017-9-6 00:50 编辑


系统内存占到百分之九十左右毫无信号,卡死只能强制关机
注意:看右边的内存进度条

Reply Favorite View the author
All Replies
avatar
jingle
deepin
2017-09-06 16:27
#1
sudo apt-get install earlyoom
试试  你的top看看那个进程占用比较大?Chrome?
Reply View the author
avatar
风吹过的绿洲
deepin
2017-09-06 22:18
#2
https://bbs.deepin.org/post/145132
sudo apt-get install earlyoom
试试  你的top看看那个进程占用比较大?Chrome?

占用内存达到90%左右会死机,占用最大的应该是idea吧其次是chrome。但是死机没有征兆,我也看不到那个占用进程大。另外wine应用有时候第一次打开会没反应,只能杀死进程,再次启动。
Reply View the author
avatar
风吹过的绿洲
deepin
2017-09-06 22:21
#3
https://bbs.deepin.org/post/145132
sudo apt-get install earlyoom
试试  你的top看看那个进程占用比较大?Chrome?

deepin安装的时候现在可以设置虚拟内存么,现在我手动设置了虚拟内存,不知道有没有效果
Reply View the author
avatar
ARWhooo
deepin
2017-09-06 23:35
#4
你也可以试试systemd:
  1. systemctl set-property user.slice MemoryMax=6G
Copy the Code

限制所有用户进程一共只能使用 6G 内存。
详细介绍可以看这里:
https://www.freedesktop.org/software/systemd/man/systemd.resource-control.html
https://www.csslayer.info/wordpress/diary/limit-user-memory-usage-with-systemd/
Reply View the author
avatar
风吹过的绿洲
deepin
2017-09-07 17:54
#5
https://bbs.deepin.org/post/145132
你也可以试试systemd:

限制所有用户进程一共只能使用 6G 内存。

感谢分享
Reply View the author
avatar
风吹过的绿洲
deepin
2017-09-07 17:56
#6
https://bbs.deepin.org/post/145132
sudo apt-get install earlyoom
试试  你的top看看那个进程占用比较大?Chrome?

我安装了earlyoom还加了8G虚拟内存,得运行一段时间看了
Reply View the author
avatar
fengying6_6
deepin
2017-09-08 03:29
#7
java 没16G内存能玩?
Reply View the author
avatar
8***8@qq.com
deepin
2017-09-08 04:47
#8
https://bbs.deepin.org/post/145132
java 没16G内存能玩?

Windows下能玩
Reply View the author
avatar
8***8@qq.com
deepin
2017-09-08 04:47
#9
加了虚拟内存还会卡,但是不会直接卡死了
Reply View the author