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.

    评论

报告相同问题?

悬赏问题

  • ¥15 如何在炒股软件中,爬到我想看的日k线
  • ¥15 51单片机中C语言怎么做到下面类似的功能的函数(相关搜索:c语言)
  • ¥15 seatunnel 怎么配置Elasticsearch
  • ¥15 PSCAD安装问题 ERROR: Visual Studio 2013, 2015, 2017 or 2019 is not found in the system.
  • ¥15 (标签-MATLAB|关键词-多址)
  • ¥15 关于#MATLAB#的问题,如何解决?(相关搜索:信噪比,系统容量)
  • ¥500 52810做蓝牙接受端
  • ¥15 基于PLC的三轴机械手程序
  • ¥15 多址通信方式的抗噪声性能和系统容量对比
  • ¥15 winform的chart曲线生成时有凸起