Forum Moderators: coopster
/usr/bin/php -q /home/user/file.php
I have been noticing that that there are multiple versions of it left open in memory it seems(by looking at top -c)
The file is basically a php files that compares and updates a mysql db.
I am not doing anything to end the file..
What is the proper way of doing this...
php
and then
if needed
mysql..
Dont see a bunch of open mysql connections though
Trying to make this file efficient as possible as it can drag down the server when it runs for 5-10 min
Thanks in advance!
B
you could try extending the times between executions to see if that helps to identify.
Those files could also be hanging as eelix mentioned, it's very difficult to figure out why. You could make it verbose by adding a ton of echos for each step and then run it from the command line and see what it does. You may be able to identify something that way.