[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [cdt-dev] JUnit tests cause Out-of-memory errors
|
This was actually very helpful because it showed me that it was
not a memory leak I was seeing :-) It was a leak of pipes
through the Spawner class. I have opened
https://bugs.eclipse.org/345164
and posted a potential fix.
With the fix, I can run 450 tests instead of 150.
Then I run out of memory :-)
I'll use your trick for that too.
Thanks!
Marc
> -----Original Message-----
> From: cdt-dev-bounces@xxxxxxxxxxx
> [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of James Blackburn
> Sent: Saturday, May 07, 2011 5:55 AM
> To: CDT General developers list.
> Subject: Re: [cdt-dev] JUnit tests cause Out-of-memory errors
>
> On 6 May 2011 21:19, James Blackburn <jamesblackburn@xxxxxxxxx> wrote:
> > Pass: -XX:-HeapDumpOnOutOfMemoryError in your VM options as part of
>
> Should of course be: -XX:+HeapDumpOnOutOfMemoryError ...
>
> James
>
> > your launch (for the Sun JVM). When you hit a memory limit (heap or
> > permgen) you'll see a message in your console about it writing out a
> > .hprof file (usually in the same directory as java was
> invoked from).
> > Use Eclipse memory analyzer to examine the file and it'll help you
> > pinpoint the leak:
> > http://www.eclipse.org/mat/
> > It's likely that the thing leaking will stick out like a sore thumb.
> > Cheers,
> > James
> >
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/cdt-dev
>