简体   繁体   中英

PHP CLI Timeout Issue

I have a PHP CLI script that continually times out, and I can't figure out the source of the timeout. Seemingly "randomly" the script will stop (with no PHP error in the logs) and give the following output to console:

timeout, elapsed_time = 60

I'm setting PHP's time limit via set_time_limit(0); intermittently but it doesn't seem to be making a difference.

Besides that, PHP is supposed to throw an error if it hits its timeout, and no error is thrown, so could this timeout be triggered by something other than PHP?

The script is started by a bash script ".sh" on a Ubuntu machine.

Thanks!

Thanks to everyone who helped me out.

I tried running the script through nohup and the timeout issue seems to have disappeared. Hope this helps someone else!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM