My crontab is crashing when I run a script that inserts a lot of lines on MySQL Database, but when I run a script that inserts a few lines it runs properly. Is there some configuration file of cron? Maybe some config about use of memory.
|
feedback
|
|
You need to find the reason of the script crashing. Here are some points to check:
| |||
feedback
|
|
Using a cron job to insert "don't know how many" rows into MySQL is bad design. First of all determine if the cron jobs get enough time to finish the insert, by proper logging outside of the normal cron process. Then, when you have determined that yes, it does take too much time, reduce the frequency of the cron job, or reduce the number of inserts during one run. | |||
|
feedback
|