Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] JUnit tests cause Out-of-memory errors

It turned out that the bug was not in Spawner, but in how
we were using it.  Thanks to James and Toni for figuring this out.

I've added comments and javadoc in Spawner in an attempt to 
better document how it should be used.

Marc 

> -----Original Message-----
> From: cdt-dev-bounces@xxxxxxxxxxx 
> [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Marc Khouzam
> Sent: Monday, May 09, 2011 12:06 PM
> To: 'CDT General developers list.'
> Subject: 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
> > 
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/cdt-dev
> 

Back to the top