modelop / hadrian

Implementations of the Portable Format for Analytics (PFA)
Apache License 2.0
130 stars 49 forks source link

Memory leak while using PFA model in a system #57

Open simarjotsinghd opened 5 years ago

simarjotsinghd commented 5 years ago

We are getting memory leak issue while invoking the PFA model within a deployed system in OSGi container. The issue is in org.apache.avro.specific.SpecificData class due to the cache CTOR_CACHE. The cache size keeps on increasing and there is no way to remove or limit the cache size. SpecificData class is extended by Hadrian's PFASpecificData scala class and is in use while invoking the model.