- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Problem with Cron
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2003 02:42 AM
06-16-2003 02:42 AM
Problem with Cron
I have setup a weekly cron job to take an ignite image from one of our servers. Every week however I notice that the cron jobs are failing as It percieves there to be more than 100 jobs running. I understand this is the reason my cron job is failing I just cannot work out whats causing it (well I have an idea)
Every 15 mins on the system a job such as 10203494.u runs however I do not believe this relates to any cronjob we have in the /var/spool/cron/crontabs files. I can see these .u jobs are standard across all servers. The problem I have is that when I do a ps -ef on cron and dig down I can see loads of /usr/bin/sh processes which I believe are causing the problem and are generated by these .u jobs. Has anyone any idea why the jobs are simply not finishing and any further checks I can make.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2003 02:47 AM
06-16-2003 02:47 AM
Re: Problem with Cron
there is a known issue where cron does not release coorectly its jobs. all its son remain alive and flood up the kernel table.
Have you a recent patch for it ?
Also you may hit a limit for the maximum number os process per user.
What are your kernel parameters ?
HTH
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2003 02:55 AM
06-16-2003 02:55 AM
Re: Problem with Cron
most likely some jobs are scheduled but do/did not end properly. Then cron may complain that the queue is full or something similar.
You can check /var/adm/cron/log to get a hint.
Other possibility would be a low value for the nproc kernel parameter.
Check with sar -v 1 1 what is listed below proc-sz (actual/maximum). In that case you should have syslog messages indicating process table full. I'd rule out that first.
Regards,
Bernhard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2003 03:13 AM
06-16-2003 03:13 AM
Re: Problem with Cron
Hi,
You can see all system messsages in your system mail. type elm to read it. All cron jobs have the subject as "cron". There you'll find details for jobs and any error messages.
Please make sure you don't have your make_recovery tapes write-protected. This happes and backup is taken in this case.....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2003 04:04 AM
06-16-2003 04:04 AM
Re: Problem with Cron
If you have tusc installed then modify the start of these jobs which don't die to pick up its own PID and then start:-
tusc
This file can then be examined to see where it is "sticking".
If you do not have tusc then here:-
http://www.stokely.com/unix.sysadm.resources/shareware.www.html
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2003 04:16 AM
06-16-2003 04:16 AM
Re: Problem with Cron
tusc -f -p -o /output/file /path/to/binary
-f will cause tusc to trace child processes
-p will print out the PID on each line
-o will send output to the designated file
tusc can be invoked with the PID or the name of a command to trace.
Youc an also attach to one of your hung jobs and see what is happening (if it is spinning, waiting on I/O, etc). Try
tusc