kallaspriit / Cassandra-PHP-Client-Library

Cassandra PHP-based client library for managing and querying your Cassandra cluster
http://cassandra-php-client-library.com
103 stars 25 forks source link

(intentional?) memory leak #31

Open alandsidel opened 11 years ago

alandsidel commented 11 years ago

Simple loop inserting rows with a UTF8 key and 128k of binary data results in memory exhaustion. Loop is calling simply fopen, fread, fclose, and $cassandra->set().

Is there some internal caching going on somewhere that can be turned off? If not, perhaps something in the set() call stack is referencing the data in a static and thus caching it unintentionally.

kallaspriit commented 11 years ago

I'll take a look whether I'll spot anything suspicious.