Forum Controls
Spotlight Features

The Rich Engineering Heritage Behind Dependency Injection

Andrew McVeigh takes us on a tour of the rich heritage behind dependency injection, what it represents, and tells us why its here to stay.
Replies: 37 - Pages: 3   [ Previous | 1 2 3 ]
  Click to reply to this thread Reply
30. At 6:23 PM on Sep 22, 2007, Aman Jain Javalobby Newcomers wrote:

Re: Tuning Eclipse Performance and Avoiding OutOfMemoryExceptions

Rather than answering I have more issues with the Eclipse performance ------

I had been using Eclipse for quite a sometime now. I am working in an organization and I work on an enterprise product being developed on J2EE. Its quite a big product.

I never had to struggle because of the performance of Eclipse while I work. But now working with Eclipse has become a really annoying task.

I have got 2GB RAM on my machine. Before I talk about the problems I am facing, I would like to inform that I have tried the following already -
- increased the heap size to 512M max.
- increased the size for PermGen to 256M.
- Turned off a few features of Eclipse that may slow down it like - turned off code folding, turned off auto code assist (only turning it on while I write code as most of the time I have to debug in the code) and few more.

I also posted my problems on the Eclipse NewsPortal. Everyone suggested the above few points to consider till now.

Actual Problems -
- Eclipse hangs quite frequently and comes back only after 7-10 mins.
- Very often gets OutOfMemory problems whenever I build my code.

When it hangs the top menu bar (File,Edit, Navigate etc menus) becomes 'white' in color and the actual menu disappears. And no matter what you do ( tried pressing 'Ctrl+Break' also )nothin would happen until the next 7-10 mins. Only option is to go the 'Task Manager' and kill the process if you can contain yourself.

Since I am working in an organization so there are few background processes that keeps running (you can't stop them as they are in the network admin, sys admin's control).

But having pretty enough RAM and making use of it also doesn't just helps.

Has anyone got an idea as to what else apart from the above could be done to avoid such things?

Any help is greatly appreaciated. Thanks in advance.
  Click to reply to this thread Reply
31. At 3:38 AM on Sep 23, 2007, Alex Blewitt DeveloperZone Top 100 wrote:

Re: Tuning Eclipse Performance and Avoiding OutOfMemoryExceptions

Can you post your eclipse.ini here?
  Click to reply to this thread Reply
32. At 5:26 AM on Sep 23, 2007, Aman Jain Javalobby Newcomers wrote:

Re: Tuning Eclipse Performance and Avoiding OutOfMemoryExceptions

Hey Alex...

I donot use eclipse.ini to launch the Eclipse rather I specify the vm arguments in the 'properties' dialog (which comes up when u right click(in the case of the Windows, I use Windows XP) on the 'eclipse.exe' icon in the eclipse directory). Anyways arguments that I pass are -

-vmargs -Xms512M -Xmx512M -XX:PermSize=256M -XX:MaxPermSize=256M

Thanks in advance.
  Click to reply to this thread Reply
33. At 5:20 PM on Sep 23, 2007, Alex Blewitt DeveloperZone Top 100 wrote:

Re: Tuning Eclipse Performance and Avoiding OutOfMemoryExceptions

The default is -Xmx512m. I'd try running it higher, especially when you're saying that 1/2 of that is PermGenSpace. It's no wonder you're running out of memory.

Try -Xmx1024m -XX:MaxPermSize=256m

Alex
  Click to reply to this thread Reply
34. At 6:49 PM on Oct 9, 2007, Suresh Krishna Occasional Javalobby Visitor wrote:

Re: Tuning Eclipse Performance and Avoiding OutOfMemoryExceptions

I did have lot of instances of OOM and VMCrash. As described in this article, its dealt in different ways.
#1 Increase the permGenSpace
#2 Increase the min and max heap sizes
#3 Application itself has some memory leaks

Also developer need to be very conscious about the # of applications running on their own box. I have seen these memory issues as i run, Eclipse + Tomcat + Custom Server + Outlook + etc...
So dont expect to make wonders when we have too many JVMs running on your box.
~Suresh Krishna SureshKrishna Sciology
  Click to reply to this thread Reply
35. At 6:54 PM on Oct 9, 2007, Suresh Krishna Occasional Javalobby Visitor wrote:

Re: Tuning Eclipse Performance and Avoiding OutOfMemoryExceptions

I did notice the scenarios you mentioned in my own eclipse development too. I have used the WTP plugins and the moment you ope n a JSP file you are dead. There are couple of other scenarios, that did become a pain. I am using the eclipse 3.2.1.
In any case i also in search of this noble wisdom. Coz, this is pretty hard to explain to the customers when they also face teh same issue.
~Suresh Krishna SureshKrishna Sciology
  Click to reply to this thread Reply
36. At 7:32 PM on Nov 28, 2007, MarkusG Javalobby Newcomers wrote:

Re: Tuning Eclipse Performance and Avoiding OutOfMemoryExceptions

@Aman Jain

I have had the same problems.
The reason was another eclispe project which i had checked out of my company's repository and which i referenced from my own project. This project was referencing libraries of another computer in the network.
I copied the libraries to my own computer and changed the other project, so it was referencing to the ones on my computer.
This solved the problem.
  Click to reply to this thread Reply
37. At 11:30 AM on Jan 3, 2008, sophia Javalobby Newcomers wrote:

Re: Tuning Eclipse Performance and Avoiding OutOfMemoryExceptions

Hi Aman, I had the same setting as you
-vmargs -Xms512M -Xmx512M -XX:PermSize=256M -XX:MaxPermSize=256M.
and myeclipse crashed all the time, then I changed it to


-vmargs -Xms128M -Xmx512M -XX:PermSize=128M -XX:MaxPermSize=256M

The problem is gone. Hope it helps.

ps, i got 2GB memory.

thread.rss_message