PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Which one of the following, or something better, should I use? I want to run the script every 5 minutes, and I already tried that with the first one "/usr/local/bin/php /home/mydomain/public_html/~subdomains/post.php " and I believe it caused my server to go to load of 300+ and freeze. Did I do it wrong or how should i do it so it doesn't f up my server like that?
and also tried at 10 and 15 minute intervals. At ALL three amounts of time plus x tried each command, all of it froze my server. I had to call the DC several times last night to get my server manually rebooted because shell/ssh would lock up after the load would sky rocket. ALL of the 512 mb ram would be eaten plus 500mb+ of the 1000 mb swap file would be eaten as well (that I could see, it would stop responding at that point...
Fella's, what should I do? I really need to use this script and i'm only using it on 20 or so blogs where my friend is using it on 10x the amount without the same problems as me....
Which statement is best, or What statement should I use to run a PHP script from shell ( added in cron every 30 mins ) and I want to protect it from using up all the ram and cpu and locking up my server.
Look at that swap usage, usually the server never taps the swap or only for < 20 megs, the php script has been running for 30 minutes now and using up 350 MEGS!!!
Now I can' edit this php script, but can I put something added in that will flush ram every 5 minutes or how would I do that?
yea, it's because the script does NOT post every time it's ran, it only posts 3 times a day randomly throughout 24 hours, times 20 blogs..... so basically the REASON for running it every 30 minutes is to make it as diverse time posting as possible, you know, lol.... not look automated...