Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Saving a file raises mem usage by ~20MB
Saving a file raises mem usage by ~20MB [message #131682] Wed, 15 December 2004 21:16 Go to next message
Eclipse UserFriend
Originally posted by: t-n-t.f-a-s-t-m-a-i-l.fm

I just installed Eclipse 3.0.1 and CDT 2.1 RC6 on my XP machine with
Java 1.4.2_06. I'm trying to evaluating whether it is usable.

I created a project to compile a very small wxWidgets app consisting of
only 3 files. I noticed though that after almost every save operation,
the Mem Usage of javaw.exe would increase by around 20MB and sometimes a
lot more. For example, I just did it again and the mem usage jumped from
118MB to 188MB!

This initially caused the problem where I would get a message Save
Failed:null and subsequent actions would either cause erratic behaviour
or a message saying that I have to close the Workbench. I increased the
heap memory to 512MB and have seen a mem usage of up to around 330MB.

Also, when saving a file the CPU usage stays at around 99 for quite a
few seconds making it rather annoying. This also happens sometimes when
switching from file to file.

So, my question is if all of the above is normal behaviour or if it's
something to do with my setup. BTW, I'm running on an Athlon XP3000+
with 1Gig RAM.

I would appreciate any replies and comments.

Cheers,
Theo
Re: Saving a file raises mem usage by ~20MB [message #131847 is a reply to message #131682] Thu, 16 December 2004 02:43 Go to previous messageGo to next message
Eclipse UserFriend
TNT wrote:
> So, my question is if all of the above is normal behaviour or if it's
> something to do with my setup. BTW, I'm running on an Athlon XP3000+
> with 1Gig RAM.

I use Eclipse 3.1M3 with CDT 2.1RC6 under XP on a P4 2.4GHz with 512M of
RAM.

Eclipse+CDT does eat up a lot of memory, I'm almost always above 200M
but barely above 300M. I've never had the kind of problem you describe
and my projects are a lot bigger than 3 files. The only annoying thing I
found is that if you minimise Eclipse to do something else then Windows
will recycle the RAM and when you get back to eclipse it will take very
long time to get back to normal. I've found a plugin (only for windows)
which ensure Windows doesn't recycle Eclipse memory if idle, it also
make eclipse a bit more responsive I found (but I may be wrong). You may
want to try it:
http://suif.stanford.edu/pub/keepresident/
Re: Saving a file raises mem usage by ~20MB [message #131887 is a reply to message #131682] Thu, 16 December 2004 09:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Astar.tut.by

TNT wrote:

> This initially caused the problem where I would get a message Save
> Failed:null

same problem with small project (~10 files)

> Also, when saving a file the CPU usage stays at around 99 for quite a
> few seconds making it rather annoying. This also happens sometimes when
> switching from file to file.

This is most annoying trouble for me.

Eclipse 3.0.1, CDT 2.1RC4

>
> Cheers,
> Theo
Re: Saving a file raises mem usage by ~20MB [message #131977 is a reply to message #131887] Fri, 17 December 2004 02:58 Go to previous messageGo to next message
Eclipse UserFriend
Astar wrote:
> TNT wrote:
>> Also, when saving a file the CPU usage stays at around 99 for quite a
>> few seconds making it rather annoying. This also happens sometimes
>> when switching from file to file.

Have you tried to turn the C++ indexer off, in the project settings?

I know it's not a nice fix but I also did find that the C++ indexer on
windows is taking loads of resources, at least I think it is.
Re: Saving a file raises mem usage by ~20MB [message #132158 is a reply to message #131977] Sun, 19 December 2004 10:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: t-n-t.f-a-s-t-m-a-i-l.fm

> Have you tried to turn the C++ indexer off, in the project settings?
>

Thanks for the suggestions.

I tried the plugin you mentioned and I tried turning the indexer off and
nothing seems to have changed. It's still very slow when saving files
and it takes ages to switch from one file to another when they are first
opened.

I think for the time being I'll stick with BorlandX even though there
are many things about Eclipse/CDT that I like.

Cheers
Re: Saving a file raises mem usage by ~20MB [message #132592 is a reply to message #131847] Thu, 23 December 2004 11:29 Go to previous message
Eclipse UserFriend
Gael Martin wrote:

> TNT wrote:
>> So, my question is if all of the above is normal behaviour or if it's
>> something to do with my setup. BTW, I'm running on an Athlon XP3000+
>> with 1Gig RAM.
>
> I use Eclipse 3.1M3 with CDT 2.1RC6 under XP on a P4 2.4GHz with 512M of
> RAM.
>
> Eclipse+CDT does eat up a lot of memory, I'm almost always above 200M
> but barely above 300M. I've never had the kind of problem you describe
> and my projects are a lot bigger than 3 files. The only annoying thing I
> found is that if you minimise Eclipse to do something else then Windows
> will recycle the RAM and when you get back to eclipse it will take very
> long time to get back to normal. I've found a plugin (only for windows)
> which ensure Windows doesn't recycle Eclipse memory if idle, it also
> make eclipse a bit more responsive I found (but I may be wrong). You may
> want to try it:
> http://suif.stanford.edu/pub/keepresident/

Seems like much of this would be JVM, which might mean it doesn't raise so
much for the application itself.
Previous Topic:CDT question from the yahoo newsgroup 68HC12
Next Topic:3rd party compiler integration
Goto Forum:
  


Current Time: Wed Sep 17 11:04:23 EDT 2025

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

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

Back to the top