Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » How do I reduce the size of Eclipse 3.2 memory footprint?
How do I reduce the size of Eclipse 3.2 memory footprint? [message #252002] Tue, 11 March 2008 15:40 Go to next message
Eclipse UserFriend
Originally posted by: kwarner.uneedspeed.net

Environment: Win2k SP4; Java 1.5.0.9; 512meg memory;

As you see, I have an old slow, tiny machine. Running Eclipse 3.2
sometimes I run out of memory for my applet/apps.

Two questions:

1) How do I increase the memory available to run Eclipse?

I know how to set the JVM parameters to set the memory limits
for my applets/apps. But I have only a limited amount of physical
memory. But I don't know how to give Eclipse more memory or if
that is even necessary.

2) How do I reduce the overall size of the memory footprint of Eclipse?

For example: When I installed Eclipse 3.2 it came with SQL Development; Team;
Web and XML; Web Services; XDoclet; Plug-in Development; Report Design; Model Validation; Agent Controller; etc.

I don't even know what some of those things are and I never use any of them.
So why should I even load them?

So the question is: how do I uninstall that stuff and will it give me a smaller
memory footprint to do so?

And then, how would I increase the memory available to run Eclipse?
Re: How do I reduce the size of Eclipse 3.2 memory footprint? [message #252008 is a reply to message #252002] Tue, 11 March 2008 18:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: groups.pellaton.li

Hi

Eclipse does not load all installed plug-ins (osgi bundles) during the
startup. Bundles are loaded when needed - either by a user action (like
opening a view or firing a command) or as a dependency of another bundle
that needs to be started (aka lazy loading). This behaviour can be
observed using JConsole in combination with the osgi-console.

Don't worry about too many installed features; as long as you don't use
them they don't affect the memory footprint. The possibly easiest way to
reduce the amount of installed (not loaded) features is downloading the
bare Eclipse SDK instead of a "bloated" all-in-one package.

JVM parameters are the way to assign memory to Eclipse. All parameters
(Xmx, Xms, XX:PermGen, ...) work as expected. Again, the JConsole of the
JDK is a great tool for hunting memory issues as it offers graphical
monitoring of the different JVM memory areas and sizes and their usage.

I must admit depending on what features you plan to use and the size of
your projects, it will be tough finding good settings with 512MB of
physical RAM, especially as Windows already occupies quite a lot of it.

HTH

Michael

DemonDuck wrote:
> Environment: Win2k SP4; Java 1.5.0.9; 512meg memory;
>
> As you see, I have an old slow, tiny machine. Running Eclipse 3.2
> sometimes I run out of memory for my applet/apps.
>
> Two questions:
>
> 1) How do I increase the memory available to run Eclipse?
>
> I know how to set the JVM parameters to set the memory limits
> for my applets/apps. But I have only a limited amount of physical
> memory. But I don't know how to give Eclipse more memory or if
> that is even necessary.
>
> 2) How do I reduce the overall size of the memory footprint of Eclipse?
>
> For example: When I installed Eclipse 3.2 it came with SQL Development; Team;
> Web and XML; Web Services; XDoclet; Plug-in Development; Report Design; Model Validation; Agent Controller; etc.
>
> I don't even know what some of those things are and I never use any of them.
> So why should I even load them?
>
> So the question is: how do I uninstall that stuff and will it give me a smaller
> memory footprint to do so?
>
> And then, how would I increase the memory available to run Eclipse?
Re: How do I reduce the size of Eclipse 3.2 memory footprint? [message #252012 is a reply to message #252008] Tue, 11 March 2008 19:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kwarner.uneedspeed.net

Thanks Michael,

I needed a jump start for my memory. I get to doing things a certain way
and forget all the other details ...

Michael Pellaton wrote:
> Hi
>
> Eclipse does not load all installed plug-ins (osgi bundles) during the
> startup. Bundles are loaded when needed
[stuff deleted]

I forgot then remembered that the way to set memory params is in eclipse.bat

> JVM parameters are the way to assign memory to Eclipse. All parameters
> (Xmx, Xms, XX:PermGen, ...) work as expected.

I've never used JConsole and now I must ask -- how do I do that in Eclipse?

Again, the JConsole of the
> JDK is a great tool for hunting memory issues as it offers graphical
> monitoring of the different JVM memory areas and sizes and their usage.
>

Tell me about it :-(

> I must admit depending on what features you plan to use and the size of
> your projects, it will be tough finding good settings with 512MB of
> physical RAM, especially as Windows already occupies quite a lot of it.
>
> HTH
>
> Michael
>
> DemonDuck wrote:
>
>>Environment: Win2k SP4; Java 1.5.0.9; 512meg memory;
>>
>>As you see, I have an old slow, tiny machine. Running Eclipse 3.2
>>sometimes I run out of memory for my applet/apps.
[stuff deleted]
Re: How do I reduce the size of Eclipse 3.2 memory footprint? [message #252015 is a reply to message #252012] Tue, 11 March 2008 19:55 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kwarner.uneedspeed.net

I looked in my JDK installation -- I don't have JConsole. WTF???

What do I have to do to get it???

DemonDuck wrote:
> Thanks Michael,
>
> I needed a jump start for my memory. I get to doing things a certain way
> and forget all the other details ...
>
> Michael Pellaton wrote:
>
>> Hi
>>
>> Eclipse does not load all installed plug-ins (osgi bundles) during the
>> startup. Bundles are loaded when needed
>
> [stuff deleted]
>
> I forgot then remembered that the way to set memory params is in
> eclipse.bat
>
>> JVM parameters are the way to assign memory to Eclipse. All parameters
>> (Xmx, Xms, XX:PermGen, ...) work as expected.
>
>
> I've never used JConsole and now I must ask -- how do I do that in Eclipse?
>
> Again, the JConsole of the
>
>> JDK is a great tool for hunting memory issues as it offers graphical
>> monitoring of the different JVM memory areas and sizes and their usage.
>>
>
> Tell me about it :-(
>
>> I must admit depending on what features you plan to use and the size of
>> your projects, it will be tough finding good settings with 512MB of
>> physical RAM, especially as Windows already occupies quite a lot of it.
>>
>> HTH
>>
>> Michael
>>
>> DemonDuck wrote:
>>
>>> Environment: Win2k SP4; Java 1.5.0.9; 512meg memory;
>>> As you see, I have an old slow, tiny machine. Running Eclipse 3.2
>>> sometimes I run out of memory for my applet/apps.
>
> [stuff deleted]
Re: How do I reduce the size of Eclipse 3.2 memory footprint? [message #252017 is a reply to message #252012] Wed, 12 March 2008 02:22 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: newsgroups.pellaton.li

Hi

> I've never used JConsole and now I must ask -- how do I do that in Eclipse?
Everything you need to do is explained in Sun's article "Using JConsole
to Monitor Applications" that can be found here:

http://java.sun.com/developer/technicalArticles/J2SE/jconsol e.html

The JConsole was introduced in the JDK 1.5.0, however it's only
distributed in the JDK package, but not in the JRE.


The usage of the osgi console is explained here:
http://www-128.ibm.com/developerworks/blogs/page/CompApps?en try=using_the_osgi_console_to
http://www.ibm.com/developerworks/library/os-ecl-osgiconsole /index.html

HTH

Michael
Re: How do I reduce the size of Eclipse 3.2 memory footprint? [message #252020 is a reply to message #252017] Wed, 12 March 2008 05:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kwarner.uneedspeed.net

Hi Michael,

I updated my JDK from 1.5.0.9 to 1.5.0.15 and now I have JConsole
and the rest of the development tools.

So I run JConsole outside of Eclipse as I run my applet and find
the PID in the Task Manager?

And thanks for taking the time to help...

Ken

Michael Pellaton wrote:
> Hi
>
>
>>I've never used JConsole and now I must ask -- how do I do that in Eclipse?
>
> Everything you need to do is explained in Sun's article "Using JConsole
> to Monitor Applications" that can be found here:
>
> http://java.sun.com/developer/technicalArticles/J2SE/jconsol e.html
>
> The JConsole was introduced in the JDK 1.5.0, however it's only
> distributed in the JDK package, but not in the JRE.
>
>
> The usage of the osgi console is explained here:
> http://www-128.ibm.com/developerworks/blogs/page/CompApps?en try=using_the_osgi_console_to
> http://www.ibm.com/developerworks/library/os-ecl-osgiconsole /index.html
>
> HTH
>
> Michael
Re: How do I reduce the size of Eclipse 3.2 memory footprint? [message #252022 is a reply to message #252017] Wed, 12 March 2008 05:51 Go to previous message
Eclipse UserFriend
Originally posted by: kwarner.uneedspeed.net

Did a quick read -- boy those guys are smart...

Maybe I can figure all that stuff out to the point
where it's useful.

Michael Pellaton wrote:
> Hi
>
>
>>I've never used JConsole and now I must ask -- how do I do that in Eclipse?
>
> Everything you need to do is explained in Sun's article "Using JConsole
> to Monitor Applications" that can be found here:
>
> http://java.sun.com/developer/technicalArticles/J2SE/jconsol e.html
>
> The JConsole was introduced in the JDK 1.5.0, however it's only
> distributed in the JDK package, but not in the JRE.
>
>
> The usage of the osgi console is explained here:
> http://www-128.ibm.com/developerworks/blogs/page/CompApps?en try=using_the_osgi_console_to
> http://www.ibm.com/developerworks/library/os-ecl-osgiconsole /index.html
>
> HTH
>
> Michael
Previous Topic:Multiple undo required for a single change.
Next Topic:Query on tooltip functionality on F2
Goto Forum:
  


Current Time: Fri Apr 18 07:34:26 EDT 2025

Powered by FUDForum. Page generated in 0.03816 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top