D
D
DuD2014-06-17 23:45:06
linux
DuD, 2014-06-17 23:45:06

There are many CRON processes in the list, is this normal?

Previously, somehow I did not pay attention, but recently I sorted the processes by name and saw a strange picture. For example, CRON'a 42 pieces, somehow too much =). Is it normal? Or is it 1 process and I'm just not looking at it that way? I was guided by PID, it is different.
e2aeb19707cb45a18c3f15420f2d1d1d.PNG
Or here is the file /root/backup/do-backup.sh in the cron once with a start at 0 hours. And on the screen below there are several of them.
d6eb1ac6ca9340d5b6ead55e9d09b506.PNG
The task looks like this:
* 0 * * * /root/backup/do-backup.sh >> /root/backup/log.log 2>&1

Answer the question

In order to leave comments, you need to log in

4 answer(s)
D
dykky, 2014-06-18
@dykky

Is it normal for /USR/SBIN/CRON to be capitalized? In Unixes, the case of letters matters. Is it a crown???

O
okneigres, 2014-07-11
@okneigres

Servers periodically crashed due to such a problem with crowns in status D. Googling English-language resources led to finding this: "I have seen this happen before, it was always associated with a developing disk or disk controller fault. Check your hardware fault log too."
In this state, the server generally behaved strangely, attempts to write something to disk hang processes, and then the entire system (although reading worked out). On my servers, I updated the kernel to the latest, other strange problems were solved along the way. While I'm watching.

P
Pavel Selivanov, 2014-06-18
@selivanov_pavel

Most likely, do-backup.sh runs too long, or even hangs. To make sure that this is the case, and not a feature of the script that creates a bunch of forks, you can use ps -o pid,cmd,lstart -p $PID1,$PID2,...
the PID of all processes - it will show the time when which one of them was launched.

I
Igor, 2014-06-18
@merryjane

Show the crontab itself or the file where the cron tasks are registered. Maybe somewhere in the notation they made a mistake and they often run for you.
You can also check by the logs, there will be messages at what time what tasks are running.
I also recommend paying attention to the load on the disk. In your screenshots, half of the processes are in state D. This means that the disk is currently unable to cope and makes the processes wait.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question