[kaffe] About Memory Allocation

Dalibor Topic robilad at kaffe.org
Tue Mar 31 12:32:06 PDT 2009


Sammy Chen wrote:
> The result executed on kaffe vm is
>     Hello.java Used Memory: 2,518,214 bytes
>     Hello World!
>     Hello.java Used Memory: 3,169,202 bytes
> 
> But, if running on sun vm, the result is
>     Hello.java Used Memory: 186,736 bytes
>     Hello World!
>     Hello.java Used Memory: 186,736 bytes
> 
> Could anyone tell me what the problem is? How can I reduce memory
> usage on kaffe vm?

By default, Kaffe's own GC allocates a large chunk of memory for its
use. I'd suggest looking at using boehm-gc with Kaffe, and then 
working with the Kaffe VM code base to make it less memory demanding 
on startup - but that may be a bit of a longer project. 

cheers,
dalibor topic



More information about the kaffe mailing list