Doctrine似乎在执行单个简单查询时占用了超过4MB的RAM:
print memory_get_peak_usage()." <br>\n";
$q = Doctrine_Query::create()
->from('Directories d')
->where('d.DIRECTORY_ID = ?', 5);
$dir = $q->fetchOne();
print $dir['name']." ".$dir['description']."<br>\n";
print memory_get_peak_usage()." <br>\n";
/*************** OUTPUT: **************************
6393616
testname testdescription
10999648
/***************************************************/
这是一个测试数据库,并且里面的数据很少 - 我查询的项目除了显示在此处的内容以外不包含任何其他数据。
我的系统设置可能存在问题,还是Doctrine的标准内存使用情况?