Re: How to dump heap on OutOfMemoryError from ant

2006-10-20 Thread Peter Reilly
On 10/20/06, Milan Kubec <[EMAIL PROTECTED]> wrote: Peter Reilly wrote: > On 10/18/06, Steve Loughran <[EMAIL PROTECTED]> wrote: >> Milan Kubec wrote: >> > Hello, >> > I want ant to generate heap dump when OutOfMemoryError happens during >> > the build to find the problem in the task. I tried add

Re: How to dump heap on OutOfMemoryError from ant

2006-10-20 Thread Milan Kubec
Peter Reilly wrote: On 10/18/06, Steve Loughran <[EMAIL PROTECTED]> wrote: Milan Kubec wrote: > Hello, > I want ant to generate heap dump when OutOfMemoryError happens during > the build to find the problem in the task. I tried adding following > switches to .antrc file: -XX:+HeapDumpOnOutOfMemo

Re: How to dump heap on OutOfMemoryError from ant

2006-10-19 Thread Peter Reilly
On 10/18/06, Steve Loughran <[EMAIL PROTECTED]> wrote: Milan Kubec wrote: > Hello, > I want ant to generate heap dump when OutOfMemoryError happens during > the build to find the problem in the task. I tried adding following > switches to .antrc file: -XX:+HeapDumpOnOutOfMemoryError > -XX:HeapDum

Re: How to dump heap on OutOfMemoryError from ant

2006-10-18 Thread Steve Loughran
Milan Kubec wrote: Hello, I want ant to generate heap dump when OutOfMemoryError happens during the build to find the problem in the task. I tried adding following switches to .antrc file: -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=e:\ant.hprof But it doesn't seem to get to the correct p

Re: How to dump heap on OutOfMemoryError from ant

2006-10-18 Thread Sean \(Xuong\) Phu
try updating the ant shell/batch file. I am using 1.6.2 in Windows, so looking at \apache-ant-1.6.2\bin\ant.bat this is what I would do (see where I place your -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=e:\ant.hprof): :runAnt if not "%CLASSPATH%"=="" goto runAntWithClasspath "%_JAVACMD%"

How to dump heap on OutOfMemoryError from ant

2006-10-18 Thread Milan Kubec
Hello, I want ant to generate heap dump when OutOfMemoryError happens during the build to find the problem in the task. I tried adding following switches to .antrc file: -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=e:\ant.hprof But it doesn't seem to get to the correct process, in other word