• 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
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Eclipse 3 memory consumption

 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
In an attempt to give my Eclipse 3 installation more memory, I'm using the -vmargs arguments:
�vmargs -Xms64m �Xmx512m

However, Eclipse tells me I only have a maximum of 64M available. I have tried the exact same parameters on a colleague's Eclipse 3 installation and she gets the full 512M available.
I am running JDK 1.4.2_03 and she's running _05.
Any clues?

Andy
Ps - I know how much Eclipse is using because I'm using a plugin called Memory Manager that shows memory usage.
 
author and iconoclast
Posts: 24203
43
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The heap parameters you're using tell the JVM to start with a 64MB Java heap, and allow it to grow to 512MB if needed. If you call Runtime.totalMemory() when the heap is at the initial size, you'll get 64MB as the answer; but as more memory is needed, this number will go up. I'm not familiar with the plugin you mention, but I suspect that all it's doing is telling you what totalMemory() returns.

Now, if you find that Eclipse reports an OutOfMemoryError while this plugin says the heap is 64MB, then there is a problem that I can't explain. But I suspect you won't.
 
Andy Deighton
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for that. However, the odd thing is that across 2 PCs, the answers are different.. Curiouser and curiouser..
 
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is your colleague running another build of Eclipse or different plugins?
 
Andy Deighton
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nope. Same Eclipse 3, same memory manager plugin. Maybe it's a VM thing?
 
Ernest Friedman-Hill
author and iconoclast
Posts: 24203
43
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe she has some additional plugins installed, or more projects in her workspace?
[ January 06, 2005: Message edited by: Ernest Friedman-Hill ]
 
Andy Deighton
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, the loaded projects were different, in fact, she had more, but it seems odd how the reported amount of MAX memory was different. I'll try not to worry about it too much, but it has certainly prevented me from using chunky tools like MyEclipse because it runs out of memory. I guess I'm jealous of her installation cos she has 1/2 Gig available to Eclipse!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic