aspose file tools*
The moose likes Other Open Source Projects and the fly likes Eclipse Out of memory error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Eclipse Out of memory error" Watch "Eclipse Out of memory error" New topic
Author

Eclipse Out of memory error

trupti nigam
Ranch Hand

Joined: Jun 21, 2001
Posts: 613
Hello all,

SOme times i get out of memory error when I try to debug project in eclipse.Theres are no errors in the code.
If i restart my PC and start eclipse again it goes away
Does any one knows how to handle this out of memory error.It says before starting eclipse from comandline give options to increase the memory.Does anyone know how to do that?

Thanks,
Trupti
Brian Sam-Bodden
author
Greenhorn

Joined: Aug 31, 2004
Posts: 25
Trupti,
Hi, have you installed any plugins recently. Every once in a blue moon I get OOM errors and most of the time they were cause by a plugin. In your case it happens only when debugging right? I've read post of people setting the VM arguments for the debugging profile like:

Menu>Run>Debug>Arguments(Tab)
Set VM args to something like -mx300

Give that a try.


Co-Author of <a href="http://www.amazon.com/exec/obidos/ASIN/1590591259/ref=jranch-20" target="_blank" rel="nofollow">Enterprise Java Development on a Budget</a>
trupti nigam
Ranch Hand

Joined: Jun 21, 2001
Posts: 613
Brian,

Thanks for the reply,
but I am trying to debugg a remote java application and for that there is no VM Arguments option available.

Thanks,
Trupti
Brian Sam-Bodden
author
Greenhorn

Joined: Aug 31, 2004
Posts: 25
What App Server or Web Container are you trying to debug into. It might be the way you are setting the VM parameters on the server for debugging. I'm remote debugging a Weblogic Application and the parameters I use are:

-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=2015 -ms64m -mx64m

What are yours?
trupti nigam
Ranch Hand

Joined: Jun 21, 2001
Posts: 613
I have

-Xdebug -Xrunjdwp:transport=dt_socket,address=8001,suspend=n,server=y

Thanks,
Trupti
Abhay Chaudhary
Greenhorn

Joined: Dec 07, 2004
Posts: 1
You can start eclipse with following arguments
eclipse.exe -vmargs -Xmx256M to take care of this error.

If you are using windows the easy way is to create a shortcut and in the
target parameter of shortcut supply these parameters.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Eclipse Out of memory error
 
Similar Threads
Eclipse 3.3.0 J2EE Hanging
How to control Eclipse's memory usage
Eclipse crashes everyday
how to know the heap size ?
How to increase eclipse heap size?