I am having difficulty running a load test on a simple connection. My setup is CentOS 6, PHP 5.3, Couchbase SDK 2.0 and Apache webserver. I am getting the following error with about 500 GETs per second. It is trying to allocate ALOT of ram.
PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 139698307493912 bytes) in Unknown on line 0
My code below
$cluster = new CouchbaseCluster('127.0.0.1:8091','','');
$bucket = $cluster->openBucket('default');
$data =array(
'key1' => array('value' => 'value1'),
'key2' => array('value' => 'value2')
);
$value = $bucket->upsert($data);
echo "<pre>";
print_r($value);
echo "</pre>";