This week's book giveaways are in the Cloud and AI/ML forums.
We're giving away four copies each of Cloud Native Patterns and Natural Language Processing and have the authors on-line!
See this thread and this one for details.
Win a copy of Cloud Native PatternsE this week in the Cloud forum
or Natural Language Processing in the AI/ML forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Eclipse Out of memory error

 
Ranch Hand
Posts: 640
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
author
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
trupti nigam
Ranch Hand
Posts: 640
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 640
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have

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

Thanks,
Trupti
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!