avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zoltan Farkas (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (AVRO-1708) Memory leak with WeakIdentityHashMap?
Date Mon, 18 Apr 2016 01:22:25 GMT

     [ https://issues.apache.org/jira/browse/AVRO-1708?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Zoltan Farkas resolved AVRO-1708.
---------------------------------
    Resolution: Won't Fix

I am not sure issue was related with WeakIdentityHashMap implementation, and more with the
fact that weak references GC overhead is high..
In any case it would be useful to review the uses of these caches.

> Memory leak with WeakIdentityHashMap?
> -------------------------------------
>
>                 Key: AVRO-1708
>                 URL: https://issues.apache.org/jira/browse/AVRO-1708
>             Project: Avro
>          Issue Type: Bug
>    Affects Versions: 1.8.0
>            Reporter: Zoltan Farkas
>
> WeakIdentityHashMap used in GenericDatumReader has only weak Keys, 
> it seems to grow, and values remain in map which looks like a memory leak...
> java WeakhashMap has Weak Entries which allows the GC to collect a entire entry, which
prevents leaks...
> the javadoc of this class claims: "Implements a combination of WeakHashMap and IdentityHashMap."
which is not really the case



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message