You are not logged in.

#1 2009-06-11 18:25:27

Basu
Member
From: Cornell University
Registered: 2006-12-15
Posts: 296
Website

Giving eclipse more memory

I need to hook up a debugger to this really large java app that's failing on me. I need to give the JVM more memory so that I can run the Eclipse debug tools on it. I'm using the stock eclipse via Pacman. I tried running eclipse from the command line with the command

eclipse -Xmx768M

that works for normal jars, but I don't know if it will work with the eclipse Arch installs. I still get an out of memory exception and I'm not sure if that's because it doesn't use more memory or because 768M isn't enough. I'm pushing my physical memory so I'd really like to be sure that I'm actually using more memory before I look into moving to another machine.
Thanks
Basu


The Bytebaker -- Computer science is not a science and it's not about computers
Check out my open source software at Github

Offline

#2 2009-06-11 20:39:00

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: Giving eclipse more memory

You need to pass that option to the VM running your program, not to eclipse. In eclipse select:
  Window > Preferences > Java > Installed JREs
select your current JRE and set the options you want to pass to the VM running your program in the field "Default VM Arguments", so in your case add "-Xmx768m" (no quotes).

EDIT: as a side note, you can also configure the VM per project.

Last edited by Ramses de Norre (2009-06-11 20:39:52)

Offline

Board footer

Powered by FluxBB