[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform] Re: Exception in thread "Java indexing" java.lang.OutOfMemoryError: Java heap space

"Walter Harley" <wharley@xxxxxxx> wrote in message 
news:ek2srs$ot1$1@xxxxxxxxxxxxxxxxxxxx
> What if you add something like -Xmx512m to the VM args in the launch 
> dialog? That is, just give it more memory?

Well, this was a good suggestion, but it does not work consistently.

I have tried to add Thread.sleep(5000) to my test code to delay the 
AntRunner for a while but this too is inconsistent.

The error is always the same, OOM in java indexing which leads me to suspect 
that the problem is caused by my calling AntRunner.run too soon.

I never get the error if I run the test manually from the UI, so it is very 
much related to being kicked off in a junit environment, so the question 
remains --- how to detect that java index is running and how to pause it or 
wait for it to finish?

I am not able to find anything in help about java indexing, or how one might 
disable it.

Michael