We are getting error message “Cannot allocate as_string” when we are trying to write into Aerospike using PHP client library. The strange thing is that this is happening only in few cases (problematic objects have around 60kB). Most of the writes are successfully finished. We are using igbinary serialization but even if we change it to default PHP serialization we are still experiencing the same problem.
We found that that the error could originate from this: https://github.com/aerospike/aerospike-client-php/blob/master/src/aerospike/aerospike_transform.h (line 293-299). But the constant AS_MAX_STORE_SIZE is set to 1024 so I don’t see how it correlates with size of our object.