cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rajanarayanan Thottuvaikkatumana (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-8231) Wrong size of cached prepared statements
Date Sat, 22 Nov 2014 23:39:13 GMT


Rajanarayanan Thottuvaikkatumana commented on CASSANDRA-8231:

I see the following from git log "f02d194 Add missing jamm jar from CASSANDRA-8231 commit"
and I think there is a problem associated with the jar file checked in. While running some
of the tests, I am getting the following error messages 
    [junit] Error opening zip file or JAR manifest missing : /Users/RajT/cassandra-source/cassandra-trunk/lib/jamm-0.3.0.jar


Please have a look at it. Thanks

> Wrong size of cached prepared statements
> ----------------------------------------
>                 Key: CASSANDRA-8231
>                 URL:
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>            Reporter: Jaroslav Kamenik
>            Assignee: Benjamin Lerer
>             Fix For: 2.1.3
>         Attachments: 8231-notes.txt, CASSANDRA-8231-V2-trunk.txt, CASSANDRA-8231-V2.txt,
> Cassandra counts memory footprint of prepared statements for caching purposes. It seems,
that there is problem with some statements, ie SelectStatement. Even simple selects is counted
as 100KB object, updates, deletes etc have few hundreds or thousands bytes. Result is that
cache - QueryProcessor.preparedStatements  - holds just fraction of statements..
> I dig a little into the code, and it seems that problem is in jamm in class MemoryMeter.
It seems that if instance contains reference to class, it counts size of whole class too.
SelectStatement references EnumSet through ResultSet.Metadata and EnumSet holds reference
to Enum class...

This message was sent by Atlassian JIRA

View raw message