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

Hi Marc,
On 6 May 2011 21:03, Marc Khouzam <marc.khouzam@xxxxxxxxxxxx> wrote:
>
> Does anyone have any tricks or suggestions to address this problem?

Pass:  -XX:-HeapDumpOnOutOfMemoryError in your VM options as part of
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


Back to the top