Allocate memory
Dimiter Stamenov
pamir@abv.bg
Tue Feb 12 18:58:00 GMT 2008
In fact I know very well why it's running out of memory - I must fill a large List which consumes the memory.
When I use standard JRE I am starting application with -Xmx128M argument and it is OK, but with gcj I don't know what to do...
May be in this case I can not use gcj at all, what do you think?
>-------- ÎðèãèГГ Г«ГГ® ïèñìî --------
>ГЋГІ: Andrew Haley <aph@redhat.com>
>ГЋГІГîñГГ®: Re: Allocate memory
>Äî: Dimiter Stamenov <pamir@abv.bg>
>Èçïðà òåГГ® ГГ : ÂòîðГГЁГЄ, 2008, Ôåâðóà ðè 12 19:52:33 EET
>----------------------------------
>
>Dimiter Stamenov wrote:
>> OK, but I am getting OutOfMemoryException - so what could be done?
>
>Well, it's either really running out of memory or you've hit a bug.
>
>> Do you mean that I have to rewrite that part of the code in C++?
>
>I wouldn't have thought so. The stack trace should give you an idea why it's
>running out of memory.
>
>Andrew.
>
>
>> >Dimiter Stamenov wrote:
>> >> Hi,
>> >>
>> >> Is there any way in gcj compilation to tell the compiled executable to allocate more memory?
>> >
>> >> I mean something like -Xmx JVM argument when running a pure Java application.
>> >
>> >Not that I know of. It's not something you'd need, anyway:
>> >our gc doesn't allocate memory in a single block as Sun's JVM
>> >does.
>
More information about the Java
mailing list