duanmiyang6201 2014-04-22 08:51
浏览 98

proc_open长时间运行的Symfony控制台应用程序中打开的文件过多

I built a console app with Symfony Console component. It supposed to be run for 5 hours. But after running 2 hours i have a proc_open(): unable to create pipe Too many open files error in Symfony\Component\Console\Application.php on line 985.

I tried gc_collect_cycles in my loop, but got the same error.

Is this a Symfony Console component bug or i should not run an app for this long (but i have to)?

  • 写回答

2条回答 默认 最新

  • duandian8251 2014-05-29 12:41
    关注

    This issue is related to: https://bugs.php.net/bug.php?id=47396

    Apparently you're working on a lot of resources in your app. It's not a Symfony Console bug, it's a PHP bug.

    You can use another programming language or modify your program in order to open less files.

    评论

报告相同问题?

悬赏问题

  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作