On 11/12/2012 4:24 PM, Jim Janney wrote:
> "sl@exabyte" <> writes:
>
>> I gather that PHP daemon suffers from memory leak problem due to its garbage
>> collector mechanism.
>>
>> Since java also adopts the garbage collector mechanism, would java daemon
>> suffers from the same memory problem ?
>
> Probably not: not all implementations of GC are equal, and you can't
> generalize from one to another. For what it's worth, Twitter is in the
> process of migrating from Ruby to Java due to problems with memory
> management, and claims to be happy with the results:
>
> http://www.theregister.co.uk/2012/11...saved_by_java/
The article is not very specific - "manage memory more efficiently" do
not tell much about the issues.
But other sources explain. Ruby do use mark and sweep like Java and
not ref count as PHP. But it has no generations and are global stop
during the entire GC. Which is not as good as modern Java GC's.
Arne