php/timeout/connection to server reset?

后端 未结 6 1502
甜味超标
甜味超标 2021-01-06 02:42

I have a php script that needs to run for quite some time.

What the script does:

  • connects to mysql
  • initiates anywhere from 100 to 100,000 cURL
6条回答
  •  南笙
    南笙 (楼主)
    2021-01-06 03:13

    What's in the apache error_log? Are you reaching the memory limit?

    EDIT: Looks like you are reaching your memory limit. Do you have access to PHP.ini? If so, you can raise the memory_limit there. If not, try running curl or wget binaries using the exec or shell_exec functions, that way they run as separate processes, not using PHP's memory.

提交回复
热议问题