Is it useful to run GC.start periodically?

Hi, I've a server based on Ruby EventMachine. I'm wondering if it
makes sense to periodically (i.e. each 2 minutes) run GC.start
command.

AFAIK Ruby does it by itself "sometimes", so probably running GC.start
every 2 minutes is of little use.

Thanks.

···

--
Iñaki Baz Castillo
<ibc@aliax.net>

If you don't know if you should run GC.start, then you shouldn't be
running GC.start.

-----Messaggio originale-----

···

Da: Iñaki Baz Castillo [mailto:ibc@aliax.net]
Inviato: giovedì 1 dicembre 2011 20:49
A: ruby-talk ML
Oggetto: Is it useful to run GC.start periodically?

Hi, I've a server based on Ruby EventMachine. I'm wondering if it makes
sense to periodically (i.e. each 2 minutes) run GC.start command.

AFAIK Ruby does it by itself "sometimes", so probably running GC.start every
2 minutes is of little use.

Thanks.

--
Iñaki Baz Castillo
<ibc@aliax.net>

--
Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP autenticato? GRATIS solo con Email.it http://www.email.it/f

Sponsor:
ING DIRECT Conto Arancio. 4,20% per 12 mesi, zero spese, aprilo in due minuti!
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid924&d)-12

-----Messaggio originale-----

···

Da: Steve Klabnik [mailto:steve@steveklabnik.com]
Inviato: giovedì 1 dicembre 2011 21:04
A: ruby-talk ML
Oggetto: Re: Is it useful to run GC.start periodically?

If you don't know if you should run GC.start, then you shouldn't be running
GC.start.

--
Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP autenticato? GRATIS solo con Email.it http://www.email.it/f

Sponsor:
Capodanno a Riccione, Pacchetto Relax: Mezza Pensione + bagno turco + solarium + massaggio. Wifi e parcheggio gratis. 2 giorni euro 199 a persona
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid978&d)-12