Re: Memory leak with org.codehaus.groovy.runtime.metaclass.MetaMethodIndex$Entry

2020-10-23 Thread Saravanan Palanichamy
Hello Any help with this is super appreciated regards Saravanan On 2020/09/08 01:25:11, Saravanan Palanichamy wrote: > Upon further analysis, if I call > InvokerHelper.removeClass(clazz) > after I instantiate and use the instance, then things get unloaded correctly. > What is the right w

Re: Memory leak with org.codehaus.groovy.runtime.metaclass.MetaMethodIndex$Entry

2020-09-07 Thread Saravanan Palanichamy
Upon further analysis, if I call InvokerHelper.removeClass(clazz) after I instantiate and use the instance, then things get unloaded correctly. What is the right way to fix this? Is it to call this invoker method for all classes I load or is the injected constructor code the problem? regard

Memory leak with org.codehaus.groovy.runtime.metaclass.MetaMethodIndex$Entry

2020-09-07 Thread Saravanan Palanichamy
Hello I am running into a memory leak issue with Groovy. I am not sure this has been fixed in newer releases. I am on 2.5.3 * I compile my groovy files into a jar at compile time (I do not load dynamically) * I then use this code to load my jar val classloader = URLClassLoader(arrayOf(