Re: About Memory Allocation
Dalibor Topic <[email protected]> Tue, 31 Mar 2009 21:32:06 +0200
| Newsgroups | gmane.comp.java.vm.kaffe.general |
|---|---|
| Message-ID | <[email protected]> |
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