donglu5041 2013-07-19 10:24
浏览 83

Symfony任务意外内存

I am using Symfony task php5.2. Here is a portion of my code:

array of images

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();
}

problem is memory_get_usage(); always returning same value but when i am using top command memory is increasing nonstop.

Is there any bug in symfony task or php5.2 or wso.

  • 写回答

1条回答 默认 最新

  • doutuo6689 2013-07-19 11:35
    关注

    Have you tried memory_get_usage(true)?

    Also, have you considered that it might not be PHP that is using the memory? But some other library you are using?

    评论

报告相同问题?

悬赏问题

  • ¥15 在获取boss直聘的聊天的时候只能获取到前40条聊天数据
  • ¥20 关于URL获取的参数,无法执行二选一查询
  • ¥15 液位控制,当液位超过高限时常开触点59闭合,直到液位低于低限时,断开
  • ¥15 marlin编译错误,如何解决?
  • ¥15 有偿四位数,节约算法和扫描算法
  • ¥15 VUE项目怎么运行,系统打不开
  • ¥50 pointpillars等目标检测算法怎么融合注意力机制
  • ¥20 Vs code Mac系统 PHP Debug调试环境配置
  • ¥60 大一项目课,微信小程序
  • ¥15 求视频摘要youtube和ovp数据集