apache - Linux loop script: Cannot allocate memory -
i face huge problem script on linux. work on apache2 server , have execute php script every seconds update database (yes, every second, i'm sure). that, created script :
#!/bin/bash while [ -f "monfichier" ] php fichier.php >> log.txt sleep 1 done exit 0
this script runs while , stops , error message : "fork: cannot allocate memory"
actually works fine , after while, plenty of defunct processes generated , because these processes memory full.
about php file index.php file codeigniter framework parameters fonction call. updates database checking data.
i'm sorry can't provide source code (confidential) function fast (less second)
did body have problem? thanks!
either php script takes more 1 second execute , have lot of parallel php invocation, or takes lot of memory. either way, nobody can source of shell script.
Comments
Post a Comment