You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Donald Smith (JIRA)" <ji...@apache.org> on 2013/10/18 01:52:43 UTC

[jira] [Created] (CASSANDRA-6215) Possible space leak in datastax.driver.core

Donald Smith created CASSANDRA-6215:
---------------------------------------

             Summary: Possible space leak in datastax.driver.core
                 Key: CASSANDRA-6215
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-6215
             Project: Cassandra
          Issue Type: Bug
          Components: Drivers (now out of tree)
         Environment: CentOS 6.4
            Reporter: Donald Smith


I wrote a java benchmark app that uses CQL cassandra-driver-core:1.0.3  and repeatedly saves to column families using code like:
{noformat}
   final Insert writeReportInfo = QueryBuilder.insertInto(KEYSPACE_NAME, REPORT_INFO_TABLE_NAME).value("type",report.type.toString()).value(...) ...

    m_session.execute(writeReportInfo);
{noformat}
After running for about an hour, with -Xmx2000m, and writing about 20,000 reports (each with about 10000 rows), it got: java.lang.OutOfMemoryError: Java heap space.

Using jmap and jhat I can see that the objects taking up space are 
{noformat}
 Instance Counts for All Classes (excluding platform)
1657280 instances of class com.datastax.driver.core.ColumnDefinitions$Definition
31628 instances of class com.datastax.driver.core.ColumnDefinitions
31628 instances of class [Lcom.datastax.driver.core.ColumnDefinitions$Definition;
31627 instances of class com.datastax.driver.core.PreparedStatement
31627 instances of class org.apache.cassandra.utils.MD5Digest 
...
{noformat}



--
This message was sent by Atlassian JIRA
(v6.1#6144)