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
|