[ https://issues.apache.org/jira/browse/CALCITE-1885?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16090373#comment-16090373 ]
Julian Hyde commented on CALCITE-1885: -------------------------------------- I don't quite understand what you are proposing. Can you create a pull request so I can review? > calcite code gen make many class in perm and it cant be gc > ----------------------------------------------------------- > > Key: CALCITE-1885 > URL: https://issues.apache.org/jira/browse/CALCITE-1885 > Project: Calcite > Issue Type: Bug > Reporter: yiming.xu > Assignee: Julian Hyde > > calcite code gen make many class in perm and it cant be gc, how to unload > that class, i need help ! thx! > this is log for cluster env , i find it locked in classload and > Class.forname01: > java.lang.Thread.State: BLOCKED (on object monitor) > at > org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1735) > - waiting to lock <0x0000000340001cf8> (a > io.kyligence.kap.ext.CustomizedWebappClassloader) > at > io.kyligence.kap.ext.CustomizedWebappClassloader.loadClass(CustomizedWebappClassloader.java:76) > at java.lang.ClassLoader.loadClass(ClassLoader.java:411) > - locked <0x00000005f9805b18> (a > org.codehaus.janino.ByteArrayClassLoader) > at java.lang.ClassLoader.loadClass(ClassLoader.java:357) > at Baz.bind(Unknown Source) > at > org.apache.calcite.jdbc.CalcitePrepare$CalciteSignature.enumerable(CalcitePrepare.java:331) > at > org.apache.calcite.jdbc.CalciteConnectionImpl.enumerable(CalciteConnectionImpl.java:294) > at > org.apache.calcite.jdbc.CalciteMetaImpl._createIterable(CalciteMetaImpl.java:553) > at > org.apache.calcite.jdbc.CalciteMetaImpl.createIterable(CalciteMetaImpl.java:544) > at > org.apache.calcite.avatica.AvaticaResultSet.execute(AvaticaResultSet.java:193) > at > org.apache.calcite.jdbc.CalciteResultSet.execute(CalciteResultSet.java:67) > at > org.apache.calcite.jdbc.CalciteResultSet.execute(CalciteResultSet.java:44) > java.lang.Thread.State: BLOCKED (on object monitor) > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Class.java:348) > at > org.codehaus.janino.ClassLoaderIClassLoader.findIClass(ClassLoaderIClassLoader.java:78) > at org.codehaus.janino.IClassLoader.loadIClass(IClassLoader.java:254) > - locked <0x00000005e9802818> (a > org.codehaus.janino.ClassLoaderIClassLoader) -- This message was sent by Atlassian JIRA (v6.4.14#64029)