You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Brandon Williams (JIRA)" <ji...@apache.org> on 2013/10/18 04:40:42 UTC
[jira] [Resolved] (CASSANDRA-6215) Possible space leak in
datastax.driver.core
[ https://issues.apache.org/jira/browse/CASSANDRA-6215?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brandon Williams resolved CASSANDRA-6215.
-----------------------------------------
Resolution: Invalid
If you feel this is a driver problem, you should open a ticket at the driver's jira: https://datastax-oss.atlassian.net/browse/JAVA
> 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)