Linked by martini on Wed 29th Jun 2011 09:50 UTC
Thread beginning with comment 479151
To view parent comment, click here.
To read all comments associated with this story, please click here.
To view parent comment, click here.
To read all comments associated with this story, please click here.
It varies depending on the system. But using a ton of memory is a problem for Java applications as it will trigger more frequent garbage collections which I think may be behind some of the sluggish behaviour.
Well, keep in mind that by default, Java limits itself to 256Mb of heap space. If you find that an app is sluggish and seems to do a lot of garbage collection, you can increase the amount of heap space that the JVM is allowed to use. Allowing it to use 512Mb is often suggested for complex apps like IDEs. You can set that with the -Xmx option.
To be honest I only accuse an app of taking up too much memory when I notice system wide slowdowns and or swapping. Eclipse is sluggish, so maybe I attribute that to memory, when it could just be the GUI speed problem regardless of memory.
It's very possibly what I mentioned above. Even if you have 4GB or more of RAM in your system. the JVM by default will not use more than 256Mb unless you tell it that it is OK.
Garbage collection usually doesn't cause slowdowns in most desktop applications because Java tries to do it as an idle task when the application isn't doing much of anything else. And of of course, desktop applications spend a lot of idle time waiting for the user to do something.
For comparison Kdevelop is using 98 Mb right now. SlickEdit worked great on my 7 year old system with 128 mb total
Sure. but again, Kdevelop doesn't have nearly the power or features that Eclipse does. I prefer IDEA myself, so I'm not that familiar with Eclipse settings. But you can reduce memory usage by disabling unneeded modules in Eclipse. For example, if you don't do Enterprise Web development, you can disable the EE modules. If you don't need SQL database support, you can disable the SQL support modules. You can also disable version control modules for version control systems you aren't using, and so on.





Member since:
2006-07-14
It varies depending on the system. But using a ton of memory is a problem for Java applications as it will trigger more frequent garbage collections which I think may be behind some of the sluggish behaviour. To be honest I only accuse an app of taking up too much memory when I notice system wide slowdowns and or swapping. Eclipse is sluggish, so maybe I attribute that to memory, when it could just be the GUI speed problem regardless of memory.
For comparison Kdevelop is using 98 Mb right now. SlickEdit worked great on my 7 year old system with 128 mb total.
That's true today on my year old system.