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

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 ...


> 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:
> It's likely that the thing leaking will stick out like a sore thumb.
> Cheers,
> James

Back to the top