Java进程内存占用过高怎么办?
Tofloor
poster avatar
zhengxiaochuang
deepin
2017-08-01 00:45
Author
java进程占用内存太多 ,有时候直接会导致系统卡死
Reply Favorite View the author
All Replies
avatar
134******40
deepin
2017-08-01 01:02
#1
你运行啥java程序能占用这么多内存?
Reply View the author
avatar
159******54
deepin
2017-08-01 01:57
#2
haoqi 跑什么了
Reply View the author
avatar
duanyao
deepin
2017-08-01 03:09
#3
java 不是有 -Xmx 参数来设置最大堆大小嘛,不过把这个改小了也可能导致你的 java 进程崩溃。
Reply View the author
avatar
zhengxiaochuang
deepin
2017-08-01 21:59
#4
https://bbs.deepin.org/post/143525
你运行啥java程序能占用这么多内存?

我就跑了一个eclipse 今天已经重启一次了 只能强制关机 时间用的越长 内存飚的越高 最后就死机了
Reply View the author
avatar
duanyao
deepin
2017-08-01 22:42
#5
https://bbs.deepin.org/post/143525
我就跑了一个eclipse 今天已经重启一次了 只能强制关机 时间用的越长 内存飚的越高 最后就死机了 ...

你可以装 earlyoom 来防止卡死: https://bbs.deepin.org/post/141744

但 eclipse 似乎不应该如此,难道有内存泄漏?你的 eclipse 装了什么插件?升级到最新试试。
Reply View the author
avatar
134******40
deepin
2017-08-01 22:45
#6
https://bbs.deepin.org/post/143525
我就跑了一个eclipse 今天已经重启一次了 只能强制关机 时间用的越长 内存飚的越高 最后就死机了 ...

我每次都开eclipse、Android studio、netbeans、mysql还有windows虚拟机也没你这个eclipse这么夸张,你先看看你安装eclipse版本和jdk版本,以及运行什么程序导致内存泄漏。我怀疑你这是某个程序吃内存光吃不吐,导致内存暴涨。
Reply View the author
avatar
justforlxz
deepin
2017-08-01 23:08
#7
java不占内存,还有谁占内存。
Reply View the author
avatar
billy123456
deepin
2017-08-01 23:50
#8
https://bbs.deepin.org/post/143525
java不占内存,还有谁占内存。

kvm吃内存吃cpu
Reply View the author
avatar
justforlxz
deepin
2017-08-02 00:31
#9

最吃资源的是操作系统,我强烈建议删除操作系统,以解放资源。
Reply View the author
avatar
billy123456
deepin
2017-08-02 02:25
#10
https://bbs.deepin.org/post/143525
最吃资源的是操作系统,我强烈建议删除操作系统,以解放资源。

firefox开多点页面吃的资源很容易比ubuntu刚登陆时多
Reply View the author