Re: [eclipse-users] Overflow of Global/trail stack Error

From: Kish Shen <kisshen_at_...5...>
Date: Mon, 18 Dec 2006 03:22:21 +0000
Hi,

The memory flags such as -g specifies the maximum amount of memory that 
ECLiPSe will allow for that memory area (-g for global stack). It does 
*not* mean that your machine actually have the specified amount of 
memory available.You get stack overflow when you run out of available 
memory, which can be less than what flags such as -g specifies.

The maximum amount of memory available on your machine is the amount of 
real + virtual memory of your machine. No program can use more memory 
that this. Do you know how much total memory your machine have?

Secondly, if you are sharing your machine with other users/processes, 
then you can run out of memory before you reach the total amount of 
memory your machine has, because other processes are using some of the 
memory. In this case, you should be able to use more memory when your 
machine is less busy.

Cheers,

Kish


David Tian wrote:
> Hi,
>
> I used "-g3G" option set eclipse to take maximum 3GB of global/trail stack at
> runtime. However, my program crashed with the following error:
>
> *** Overflow of the global/trail stack in spite of garbage collection!
> You can use the "-g kBytes" (GLOBALSIZE) option to have a larger stack.
> Peak sizes were: global stack 131008 kbytes, trail stack 19136 kbytes
> Abort
>
> I thought the amount of global/trail stack was not enough and checked the stacks
> usage for previous session using "statistics." and got the following
> information:
>
> global_stack_used:      1192 bytes
> global_stack_allocated: 4259840 bytes
> global_stack_peak:      134152192 bytes
> trail_stack_used:       200 bytes
> trail_stack_allocated:  2162688 bytes
> trail_stack_peak:       19595264 bytes
>
> I expected to see that global_stack_peak was as big as 3GB, but
> global_stack_peak (134152192 bytes) was alot less than 3GB. Does this mean it
> was not the shortage of memory which caused the program to crash? So what could
> cause my program to crash and caused the error message to be displayed?
>
> Many thanks,
> David
>
> _______________________________________________
> ECLiPSe-Users mailing list
> ECLiPSe-Users_at_...2...
> http://www.crosscoreop.com/mailman/listinfo/eclipse-users
>   
Received on Mon Dec 18 2006 - 03:22:39 CET

This archive was generated by hypermail 2.3.0 : Wed Sep 25 2024 - 15:13:20 CEST