It's similar to how you do it on the PC, except the eclipse.ini file
lives inside the application bundle. I haven't used a Mac in about 4
months, so I won't try to guide through the menus to look inside the
application bundle from the Finder.

I think you can also specify it somehow in the app's Info.plist file?
I don't remember for sure anymore.

Also: If you have lots of projects open -- close ones you don't need.
Like if you've created an Eclipse project for the ApiDemo -- that
takes a lot of RAM. Even better, delete them (but not from disk). You
can add them to a different workspace. You can even run them in
separate Eclipse instances, so long as each one is looking at a
different workspace.

If you've got a lot of other memory-intensive stuff -- you might just
be starving Eclipse for RAM, forcing it to page a lot, which can be
even worse than GCing a lot. (Especially since it makes GC vastly more
expensive!).

I can tell you that Eclipse runs pretty well on an 8 GB, 8 core Mac
Pro. But people using Macbook Pro's were also pretty happy.

If I were buying a development machine at this point in time, I would
go for 8 GB of RAM. I'm surviving on my 2.5-year-old Dell laptop with
4 GB, but I run and do a lot of stuff, and I spend a lot more time
waiting than I'm happy with. So you might want to consider throwing in
some more RAM.

On Feb 23, 1:38 pm, Michael MacDonald <[email protected]>
wrote:
> On 02/22/10 07:55, Ferm wrote:
>
> It sounds like your Eclipse is running out of memory and GC'ing too
> much.  Make sure the Eclipse launcher is passing the right memory flags
> to the java VM: -Xmx512m or more.  Lots of times the default is 256m
> which is really not enough.  I don't know how you would set that on a
> Mac, though :}

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to