« Return to Thread: Frequent java.lang.OutOfMemoryError: Java heap space error

Re: Frequent java.lang.OutOfMemoryError: Java heap space error

by Steve Loughran :: Rate this Message:

Reply to Author | View in Thread

Ravi Roy wrote:

> Hi Steve,
>
> Build was started and I run Jconsole and at the time when Heap space problem
> occurred following is the jconsole output :
>
> Regards,
> Ravi
>
>
> VM Summary
> Monday, December 10, 2007 5:44:00 PM CET
> ------------------------------------------
> Connection name:
> pid: 860 sun.tools.jconsole.JConsole
> Virtual Machine:
> Java HotSpot(TM) Client VM version 1.6.0_03-b05
> Vendor:
> Sun Microsystems Inc.
> Name:
> 860@buildserver
> Uptime:
> 2 minutes
> Process CPU time:
> 8.515 seconds
> JIT compiler:
> HotSpot Client Compiler
> Total compile time:
> 1.239 seconds
>  Live threads:
>  30
> Peak:
>  34
> --------------------------------
> Daemon threads:
>  18
> Total threads started:
> 183
> Current classes loaded:
> 3,121
> Total classes loaded:
> 3,165
> Total classes unloaded:
>    44
> Current heap size:
>  5,740 kbytes
> Maximum heap size:
> 65,088 kbytes
> Committed memory:
> 9,892 kbytes
> Pending finalization:
> 0 objects
> Garbage collector:
> Name = 'Copy', Collections = 162, Total time spent = 0.319 seconds
> Garbage collector:
> Name = 'MarkSweepCompact', Collections = 6, Total time spent = 0.485 seconds

Looks like it is cruise that is out of memory; its heap is still stuck
at 64MB. I dont know how you increment its memory count, but assume it
is documented somewhere. If it is not an environment variable, edit the
.bat file that starts it up

-steve

--
Steve Loughran                  http://www.1060.org/blogxter/publish/5
Author: Ant in Action           http://antbook.org/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@...
For additional commands, e-mail: user-help@...

 « Return to Thread: Frequent java.lang.OutOfMemoryError: Java heap space error