Php Symfony任务意外内存

Php Symfony任务意外内存,php,symfony1,symfony-1.4,wso2,php-5.2,Php,Symfony1,Symfony 1.4,Wso2,Php 5.2,我正在使用Symfonytaskphp5.2。以下是我代码的一部分: 图像数组 foreach($array as $k=>$v) { abc(); // function call which will cope images from one server to another // by using file_get_content in a php variable and using api(wso). echo memory_get_usa

我正在使用
Symfony
taskphp5.2。以下是我代码的一部分:

图像数组

foreach($array as $k=>$v)
{
    abc(); // function call which will cope images from one server to another
           // by using file_get_content in a php variable and using api(wso).
    echo memory_get_usage();
}
问题是
memory\u get\u usage()总是返回相同的值,但当我使用top命令时,内存会不断增加


symfony任务、php5.2或wso中是否存在任何错误。

您是否尝试过
内存使用率(true)


另外,您是否考虑过使用内存的可能不是PHP?但是您正在使用的其他库?

编辑您的问题,并在高负载时放置top的输出。