[ https://issues.apache.org/jira/browse/CASSANDRA-6215?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13799228#comment-13799228 ]
Donald Smith commented on CASSANDRA-6215: ----------------------------------------- Created https://datastax-oss.atlassian.net/browse/JAVA-201 > 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)