[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

gem problems: install "bulk updating..." gets oom killed: no memory.

itsastickup

4/30/2009 11:32:00 AM

Hello,

ruby 1.8.4, gems 1.0.1

On a 256MB VPS my gem installs blow up. I had this problem when the
VPS was at 128MB, then upgraded to 256 and it went away. But now it's
happening again. It doesn't matter how many processes I kill to make
free memory I still run out. This time around I can't justify
upgrading the VPS.

I also can't update the gem system in case this is a bug that's been
fixed: the same thing happens.

Any help appreciated.
4 Answers

Farrel Lifson

4/30/2009 11:43:00 AM

0

2009/4/30 itsastickup <lorrimang@googlemail.com>:
> Hello,
>
> ruby 1.8.4, gems 1.0.1

That version of gems is really old. The version on my box is 1.3.1. I
think there are some backwards incompatibilities between the newer and
older versions which can cause issues such as what you describe. See
if upgrading to a newer gems version helps.

Farrel
--
Aimred - Ruby Development and Consulting
http://www....

itsastickup

4/30/2009 12:00:00 PM

0

>
> > Hello,
>
> > ruby 1.8.4, gems 1.0.1
>
> That version of gems is really old. The version on my box is 1.3.1. I
> think there are some backwards incompatibilities between the newer and
> older versions which can cause issues such as what you describe. See
> if upgrading to a newer gems version helps.

Thanks for that.

Is there a way of upgrading without the memory problems? I've tried
gem install <url to 1.3.1>

but it still insists on "Bulk updating..." and dies.

itsastickup

4/30/2009 2:28:00 PM

0


> Is there a way of upgrading without the memory problems?  I've tried
> gem install <url to 1.3.1>
>
> but it still insists on "Bulk updating..." and dies.

So the solution seems to be to use the -B option to avoid the bulk
update feature. It then gets each one at a rate of 7 a second for
22,000: I had to wait an hour, but the following worked:

gem update --system -B 100000000

Eric Hodel

4/30/2009 6:53:00 PM

0

On Apr 30, 2009, at 07:30, itsastickup wrote:
>> Is there a way of upgrading without the memory problems? I've tried
>> gem install <url to 1.3.1>
>>
>> but it still insists on "Bulk updating..." and dies.
>
> So the solution seems to be to use the -B option to avoid the bulk
> update feature. It then gets each one at a rate of 7 a second for
> 22,000: I had to wait an hour, but the following worked:
>
> gem update --system -B 100000000

You can also upgrade my manually upgrading, see the last set of
install instructions here:

http://rubyforge.org/forum/forum.php?foru...