Calcite doesn’t use off-heap memory (no native code, no direct ByteBuffers, no Unsafe). So if there are off-heap leaks, look to Calcite’s libraries (e.g. the Cassandra driver) or to Calcite adapters’ use of those libraries.
Julian > On Aug 25, 2016, at 3:45 PM, Shuyi Chen <[email protected]> wrote: > > Hi all, I was using Calcite to query data in Cassandra. I found that there > is memory leak in non-heap space when doing calcite queries. Has someone > spot such issues? Below is an example code snippet I used. Thanks a lot. > > Statement statement = someCalciteConnection.createStatement(); > > ResultSet resultSet = statement.executeQuery(query); > final JSONArray jsonArray = JSONUtil.convertResultSetIntoJSON(resultSet); > statement.close(); > > > Shuyi > > -- > "So you have to trust that the dots will somehow connect in your future."
