-
1. Re: Out of Memory
maxandersen May 30, 2007 5:16 PM (in response to mcsous)did you set the maxpermsize ?
-
2. Re: Out of Memory
mcsous May 30, 2007 5:36 PM (in response to mcsous)Yes,
I used the follow arguments:
-clean -vmargs -Xms512m -Xmx512m -XX:MaxPermSize=128m
Thanks -
3. Re: Out of Memory
maxandersen May 31, 2007 2:00 AM (in response to mcsous)and you get outofmemory as soon as you start ?
weird because I run with about the same settings and don't have a problem. -
4. Re: Out of Memory
mcsous May 31, 2007 10:57 AM (in response to mcsous)No,
The problem occurs after some time, when I stated Tomcat, open some xhtml and java files and web.xml or faces-config.xml.
Ps.: I run and eclipse become slow as soon as I start.
Thanks. -
5. Re: Out of Memory
maxandersen May 31, 2007 11:04 AM (in response to mcsous)Are you 100% sure that the settings are actually taking effect ?
-
6. Re: Out of Memory
fabricio.lemos May 31, 2007 5:08 PM (in response to mcsous)The same problem occurs with me and with a lot of guys of my work. We are running on Windows (2000 and XP) with 1GB RAM and JDK 1.5. Sometimes a Out of memory message shows and other times the eclipse just crash with no message.
-
7. Re: Out of Memory
maxandersen May 31, 2007 5:26 PM (in response to mcsous)damn - I can only get there if i start doing huge hql queries or something that I know eats memory.
Are you also running with the permsize set ?
I guess i'll need to investigate this some more...would be great with some reproduciable setup. -
8. Re: Out of Memory
fabricio.lemos May 31, 2007 5:39 PM (in response to mcsous)My configurations in eclipse.ini file are:
eclipse -clean -vmargs -Xms512m -Xmx512m -XX:MaxPermSize=256m
The problem appears at most when I start the Jboss in the Server View or when I open a XHTML file (even a very small one) in the Exadel HTML Editor.
I´m using eclipse 3.2.2 and WTP 1.5.4. -
-
-
11. Re: Out of Memory
ishabalov May 31, 2007 6:01 PM (in response to mcsous)What is the project size? Did you migrates recently from older Eclipse? What was actually consumed before you have out of memory? Can you try to load Eclipse under remote management like I explain there http://blog.exadel.com/?p=9
and see memory graph? 512M for some projects may be really insufficient. -
12. Re: Out of Memory
fabricio.lemos May 31, 2007 6:44 PM (in response to mcsous)It is a really small project. It has only 10 Java classes, 3 XHTML files and some configuration files. The other projects from my workspace are all closed, except for one that is also small.
I will try the remote management as described.
thank you! -
13. Re: Out of Memory
dgolovin May 31, 2007 7:30 PM (in response to mcsous)"fabricio.lemos" wrote:
My configurations in eclipse.ini file are:
eclipse -clean -vmargs -Xms512m -Xmx512m -XX:MaxPermSize=256m
The problem appears at most when I start the Jboss in the Server View or when I open a XHTML file (even a very small one) in the Exadel HTML Editor.
I´m using eclipse 3.2.2 and WTP 1.5.4.
There are errors in eclipse.ini file, that's the reason of OutOfMemory exception:
1. 'eclipse -clean' should be removed, that's for sure, I've just checked it.
2. Place every parameter on separate line. Your eclipse.ini must look like
-vmargs
-XX:MaxPermSize=256M
-Xmx512M
You can check that eclipse is picked up your parameters through Windows Task Manager. I did it this way. If something is wrong java process uses around 140M (I also have 1G) of memory and never exceeds 150M for big projects. -
14. Re: Out of Memory
maxandersen Jun 1, 2007 7:27 AM (in response to mcsous)Inspired by this and similar threads:
http://blog.xam.dk/archives/68-Eclipse-and-memory-settings.html