由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - Linux下eclipse老出现out of memory的情况
相关主题
哪位高人给个Kdevelop的小例子 (转载)ubuntu 16.04 好像比14.04 难用
ruby,python有没有自己的ide?.NET 的环境下用C++,可是无法debug是怎么回事?
开发用笔记本,macbook or Ubuntu?【贴图】这个人的Emacs + GDB 是怎么做出来的? (转载)
【讨论】 你认为Linux里写C++代码用什么editor最方便:emacs (转载)debug的问题
用linux真费劲,经常出现莫名其妙的问题open source都快搞得大家没饭吃了
求教linux下debug的问题Eclipse Java IDE 的project主目录在Linux下不是很flexible呀
SOS: Ubuntu开机进不去GUI,也进不去TTY (转载)C++现在写起来真舒服啊
Ubuntu 14.04 LTS: Why you should not use it, at all装了centos7,实验了一下qt creator c++
相关话题的讨论汇总
话题: linux话题: eclipse话题: memory话题: 4gb话题: xx
进入Programming版参与讨论
1 (共1页)
c******g
发帖数: 63
1
用VM Player跑Ubuntu 12.04 LTS,分的内存是2 GB。在eclipse中编C++程序,平时编
辑跑程序没什么问题,但是用debug做断点追踪时,动不动就出现PermSpace的error,
大部分显示的都是out of memory,然后只能在terminal里kill掉这个eclipse进程重来
。在网上找了些解法,就是设置eclipse.ini,把一些内存参数调大。但是我也不知道
根据这个虚拟机内系统的性能,怎样才是一个合理的配置。我目前加大了内存的配置,
仍然频繁存在crash。
openFile下的-vmargs
-Dosgi.requiredJavaVersion=1.6
-XX:MaxPermSize=400m
-Xms512m
-Xmx512m
请有经验的大虾指教解决方案!多谢!
g*****g
发帖数: 34805
2
Here are my settings. But I have 16GB memory. In my opinion, you'll need at
least 4GB memory to avoid memory issue with Eclipse, it's a memory hog.
-vmargs
-XX:+UseParallelGC
-XX:PermSize=512M
-XX:MaxPermSize=1024M
-Xss2m
-Xms1024m
-Xmx2048m

【在 c******g 的大作中提到】
: 用VM Player跑Ubuntu 12.04 LTS,分的内存是2 GB。在eclipse中编C++程序,平时编
: 辑跑程序没什么问题,但是用debug做断点追踪时,动不动就出现PermSpace的error,
: 大部分显示的都是out of memory,然后只能在terminal里kill掉这个eclipse进程重来
: 。在网上找了些解法,就是设置eclipse.ini,把一些内存参数调大。但是我也不知道
: 根据这个虚拟机内系统的性能,怎样才是一个合理的配置。我目前加大了内存的配置,
: 仍然频繁存在crash。
: openFile下的-vmargs
: -Dosgi.requiredJavaVersion=1.6
: -XX:MaxPermSize=400m
: -Xms512m

c******g
发帖数: 63
3
Thanks for your suggestions! I will try it.
By ">=4GB" do you mean that I need to use ">= 4GB" for the virtual machine
Linux, or simply the eclipse needs 4 GB (which means I need to give
something like 6GB to the Linux)?

at

【在 g*****g 的大作中提到】
: Here are my settings. But I have 16GB memory. In my opinion, you'll need at
: least 4GB memory to avoid memory issue with Eclipse, it's a memory hog.
: -vmargs
: -XX:+UseParallelGC
: -XX:PermSize=512M
: -XX:MaxPermSize=1024M
: -Xss2m
: -Xms1024m
: -Xmx2048m

g*****g
发帖数: 34805
4
Your VM needs at least 4GB. I am running multiple Java server and client
apps locally for testing sometimes and I need a lot of memory. Your use case
is probably not as demanding. I think if you can give 4GB to the linux VM
it will be much better, and 6GB won't hurt at all.

【在 c******g 的大作中提到】
: Thanks for your suggestions! I will try it.
: By ">=4GB" do you mean that I need to use ">= 4GB" for the virtual machine
: Linux, or simply the eclipse needs 4 GB (which means I need to give
: something like 6GB to the Linux)?
:
: at

t****t
发帖数: 6806
5
现在这年头, 2G够干什么用的...连手机都有2G内存了.

【在 c******g 的大作中提到】
: 用VM Player跑Ubuntu 12.04 LTS,分的内存是2 GB。在eclipse中编C++程序,平时编
: 辑跑程序没什么问题,但是用debug做断点追踪时,动不动就出现PermSpace的error,
: 大部分显示的都是out of memory,然后只能在terminal里kill掉这个eclipse进程重来
: 。在网上找了些解法,就是设置eclipse.ini,把一些内存参数调大。但是我也不知道
: 根据这个虚拟机内系统的性能,怎样才是一个合理的配置。我目前加大了内存的配置,
: 仍然频繁存在crash。
: openFile下的-vmargs
: -Dosgi.requiredJavaVersion=1.6
: -XX:MaxPermSize=400m
: -Xms512m

1 (共1页)
进入Programming版参与讨论
相关主题
装了centos7,实验了一下qt creator c++用linux真费劲,经常出现莫名其妙的问题
哪种c++IDE能做类似于Matlab那样调试?求教linux下debug的问题
有啥arm linux可以用的轻量js IDE吗?SOS: Ubuntu开机进不去GUI,也进不去TTY (转载)
代码开源了Ubuntu 14.04 LTS: Why you should not use it, at all
哪位高人给个Kdevelop的小例子 (转载)ubuntu 16.04 好像比14.04 难用
ruby,python有没有自己的ide?.NET 的环境下用C++,可是无法debug是怎么回事?
开发用笔记本,macbook or Ubuntu?【贴图】这个人的Emacs + GDB 是怎么做出来的? (转载)
【讨论】 你认为Linux里写C++代码用什么editor最方便:emacs (转载)debug的问题
相关话题的讨论汇总
话题: linux话题: eclipse话题: memory话题: 4gb话题: xx