Re: eclipse 5.5 gives error sometimes?

From: Karen E Petrie <>
Date: Wed 27 Nov 2002 05:40:15 PM GMT
Message-Id: <>

Just to let you know, I have Red Hat 8 running on my laptop with 128MB of 
Ram and 256MB of Swap Space, andI have had no problems installing or 
running ECLiPSe 5.5#46. 

I have a suggestion to what the problem could be though. When you 
installed Red Hat 8 on your two machines, did you install them in the same 
way? I noticed that when I was installing Red Hat 8 it let me either have 
the swap partition in a separate partion on my Hard Disk, or to let me 
intergrate the linux partition with the swap space. I chose the first 
option as I had previously partioned the Hard disk and this is the way I 
am use to doing it. But if you chose the second option in one of your 
systems, than perhaps it is not treating the swap space in quite the way 
ECLiPSe expects?

This is just a rough guess, but it might be worth exploring.


>Date: Wed, 27 Nov 2002 17:04:55 +0000
>From: Joachim Schimpf <>
>X-Accept-Language: en
>MIME-Version: 1.0
>To: Eclipse Users List <>
>CC: Sebastian Sardina <>
>Subject: Re: [eclipse-users] eclipse 5.5 gives error sometimes?
>Content-Transfer-Encoding: 7bit
>Sebastian Sardina wrote:
>> I installed eclipse 5.5 in two red hat 8 machines. in one, everything
>> works fine. in the other one I get:
>> [ssardina@cogrobo ssardina]$ eclipse
>> *** ECLiPSe fatal error: Cannot reserve stack space in 
>I don't have redhat 8 and cannot reproduce this on any machine
>we have available.
>A freshly started eclipse should consume less than 5MB of memory
>(by the way, real memory is irrelevant here, what counts is
>virtual memory, i.e. swap space).
>When you run top(1) or free(1) you should see an increase in
>memory usage of max 5MB for every eclipse you start. If you
>see anything different, let us know.
>> strange, I did an strace and here is where the error seems to be:
>> mmap2(NULL, 268435456, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
>> ENOMEM (Cannot allocate memory)
>Eclipse does this call in order to reserve address space for the
>stacks (default 2*128MB). This call should not actually consume any
>memory or reserve swap space, at least it doesn't in the Solaris and
>Linux versions we use for testing. I hope this has not changed
>in recent Linux kernels... It might also be a bug in Redhat 8.
>> It seems my machine (64Mb) does not have sufficient memory to run 
>> as it is.
>> If I use -g 50M to set the global stack to 50Mb, then it works!
>> shouldn't eclipse recognize how much memory the machine has available?
>As I said above, the only limit should be swap space, not real
>memory. Moreover, the memory for the global stack does not get
>allocated all at once, but incrementally as the stack grows.
>If that should be broken in Redhat 8, we need to look into it.
> Joachim Schimpf              /             phone: +44 20 7594 8187
> IC-Parc, Imperial College   /  
> London SW7 2AZ, UK         /
Received on Wed Nov 27 17:49:06 2002

This archive was generated by hypermail 2.1.8 : Wed 16 Nov 2005 06:07:18 PM GMT GMT