Periodic processes

2006-08-21 Thread Robert Fitzpatrick
I have a FreeBSD 6.0 server that the periodic processes don't seem to
complete and build up until our monitor complains about the number of
processes and I killall. How would I go about figuring out which process
is the problem or if there is a cron issue? Can't find any errors in the
messages or cron log. After a few days, this is what I see and have to
kill:

26347  ??  Is 0:00.01 /bin/sh -c periodic daily
26349  ??  I  0:00.01 /bin/sh - /usr/sbin/periodic daily
26355  ??  I  0:00.02 /bin/sh - /usr/sbin/periodic daily
26356  ??  I  0:00.00 /bin/sh - /usr/sbin/periodic daily
26401  ??  I  0:00.01 /bin/sh /etc/periodic/daily/400.status-disks
28108  ??  Is 0:00.01 /bin/sh -c periodic weekly
28110  ??  I  0:00.01 /bin/sh - /usr/sbin/periodic weekly
28117  ??  I  0:00.01 /bin/sh - /usr/sbin/periodic weekly
28118  ??  I  0:00.00 /bin/sh - /usr/sbin/periodic weekly
28129  ??  I  0:00.01 /bin/sh - /etc/periodic/weekly/310.locate
28136  ??  IN 0:00.01 /bin/sh /usr/libexec/locate.updatedb
28140  ??  IN 0:00.01 /bin/sh /usr/libexec/locate.mklocatedb -presort
61416  ??  Is 0:00.01 /bin/sh -c periodic daily
61417  ??  I  0:00.01 /bin/sh - /usr/sbin/periodic daily
61424  ??  I  0:00.02 /bin/sh - /usr/sbin/periodic daily
61425  ??  I  0:00.00 /bin/sh - /usr/sbin/periodic daily
61470  ??  I  0:00.01 /bin/sh /etc/periodic/daily/400.status-disks
92450  ??  Is 0:00.01 /bin/sh -c periodic daily
92451  ??  I  0:00.02 /bin/sh - /usr/sbin/periodic daily
92458  ??  I  0:00.02 /bin/sh - /usr/sbin/periodic daily
92459  ??  I  0:00.00 /bin/sh - /usr/sbin/periodic daily
92504  ??  I  0:00.01 /bin/sh /etc/periodic/daily/400.status-disks
98286  ??  Is 0:00.01 /bin/sh -c periodic daily
98289  ??  I  0:00.01 /bin/sh - /usr/sbin/periodic daily
98295  ??  I  0:00.03 /bin/sh - /usr/sbin/periodic daily
98296  ??  I  0:00.00 /bin/sh - /usr/sbin/periodic daily
98341  ??  I  0:00.01 /bin/sh /etc/periodic/daily/400.status-disks

-- 
Robert

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Periodic processes

2006-08-21 Thread Dan Nelson
In the last episode (Aug 21), Robert Fitzpatrick said:
 I have a FreeBSD 6.0 server that the periodic processes don't seem to
 complete and build up until our monitor complains about the number of
 processes and I killall. How would I go about figuring out which process
 is the problem or if there is a cron issue? Can't find any errors in the
 messages or cron log. After a few days, this is what I see and have to
 kill:
 
 26347  ??  Is 0:00.01 /bin/sh -c periodic daily
 26349  ??  I  0:00.01 /bin/sh - /usr/sbin/periodic daily
 26355  ??  I  0:00.02 /bin/sh - /usr/sbin/periodic daily
 26356  ??  I  0:00.00 /bin/sh - /usr/sbin/periodic daily
 26401  ??  I  0:00.01 /bin/sh /etc/periodic/daily/400.status-disks
 28129  ??  I  0:00.01 /bin/sh - /etc/periodic/weekly/310.locate
 28136  ??  IN 0:00.01 /bin/sh /usr/libexec/locate.updatedb
 28140  ??  IN 0:00.01 /bin/sh /usr/libexec/locate.mklocatedb -presort

Run ps axl and trace what processes are being launched by those
periodic scripts (using the PID and PPID columns) until you find one
not in an I or S state.  You can also install pstree from ports to
make the job a little easier.

Judging by the hanging periodic script names, it looks like you may
have a filesystem that's hung, possibly an NFS mount where the other
system is down.

-- 
Dan Nelson
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]