This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
RE: Too Many Heap Sizes error on Windows
- From: "Boehm, Hans" <hans dot boehm at hp dot com>
- To: Syed Ahmed <syedahmed1 at sbcglobal dot net>, "java at gcc dot gnu dot org" <java at gcc dot gnu dot org>
- Date: Mon, 10 Mar 2008 17:50:31 +0000
- Subject: RE: Too Many Heap Sizes error on Windows
- Accept-language: en-US
- Acceptlanguage: en-US
- References: <29107.26158.qm@web81606.mail.mud.yahoo.com>
> -----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.
>