Too Many Heap Sizes error on Windows

Boehm, Hans hans.boehm@hp.com
Mon Mar 10 17:51:00 GMT 2008


> -----Original Message-----
> From: java-owner@gcc.gnu.org [mailto:java-owner@gcc.gnu.org]
> On Behalf Of Syed Ahmed
> Sent: Tuesday, March 04, 2008 9:16 AM
> To: java@gcc.gnu.org
> Subject: Too Many Heap Sizes error on Windows
>> Is there a way I can optimize the garbage collection when
> using gcj like max and min parameters.
I don't think that's the problem here.
>> My application is doing some file operations and uses around
> 96 Meg of Memory on Sun's JVM (Windows OS).
> The same application when compiled with GCJ uses upto 512 Meg
> and then crashes with the "Too Many Heap Sizes Error".
The "Two many heap sections" error in large part reflects a Windows-specific bug that was recently fixed in the GC source.
The large size difference indicates another problem. Calling GC_dump() from a debugger, or setting the GC_DUMP_REGULARLY environment variable (and possibly the GC_PRINT_STATS variable) might give you some idea what's in the heap and what's causing it.
Hans
>> I am using libgcj4.3 and application is running on WindowsXP.
>


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /