Alright,
I’m thinking of creating a webscript that depends on cronjob..
I’m wondering, would it ever make any server damages for the amount of crontabs ?
lets say i have 50 crontabs to be done everyday, would it ever hurt the server ?
if no, what’s the max amount of crontabs to be added in a linux server @ 512MB memory
When you create a new job the
crondaemon call the functionjob_add(job.c), this function alloc the memory to the job and add it to the tail of the job list.The job is allocated on the heap, so theorically you’re limited just by the RAM installed on your machine.
Some notes from the CRON code:
The job structure:
Each user crontab entry is defined by:
And the user struct:
You can see that this structs does not cosume a lot of memory.
If you’re curious about how the implementation of
cronwork, you can see the code here : cron ubuntu source.