SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
auto-restart

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
auto-restart
Author Message
Ted Olson



Joined: 19 May 2003
Posts: 14

Post auto-restart Reply with quote

What a great solution to my problems, auto-restart the scheduler to clear out the job queues, too bad it does not work. I am running the scheduler on NT 4.0, and not as a service. I enabled periodic restarts. I then selected the time and day options. When the time comes to restart, the scheduler makes a entry in the log Restarting..., then the job clock freezes, and the scheduler never restarts. The scheduler is not locked up, but no other jobs run because the job clock is frozen at the restart time.

Mon May 19, 2003 2:33 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7955

Post Re: auto-restart Reply with quote

I guess it hangs while trying to terminate already running jobs.

If you know which processes should be cleared before restarting schedule a script type job using ProcessKill statement or schedule a program type job using ProcessKill command line utility that can be find in the 24x7 Tips and Scripts archive.

: What a great solution to my problems, auto-restart the scheduler to clear out
: the job queues, too bad it does not work. I am running the scheduler on NT
: 4.0, and not as a service. I enabled periodic restarts. I then selected
: the time and day options. When the time comes to restart, the scheduler
: makes a entry in the log Restarting..., then the job clock freezes, and
: the scheduler never restarts. The scheduler is not locked up, but no other
: jobs run because the job clock is frozen at the restart time.

Mon May 19, 2003 3:50 pm View user's profile Send private message
Ted Olson



Joined: 19 May 2003
Posts: 14

Post Re: auto-restart Reply with quote

There were no other processes running, all the job queues were empty, the server had just been restarted, the scheduler had just been restarted, there were only jobs scheduled to run in the future. I tried it several times, it hangs consistantly.

Ted.

: I guess it hangs while trying to terminate already running jobs.

: If you know which processes should be cleared before restarting schedule a
: script type job using ProcessKill statement or schedule a program type job
: using ProcessKill command line utility that can be find in the 24x7 Tips
: and Scripts archive.

Mon May 19, 2003 3:59 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7955

Post Re: auto-restart Reply with quote

Do you have 24x7 in the system path? Can you run it from anywhere using 24x7.exe command?
Which NT service packs you have installed on the system?

: There were no other processes running, all the job queues were empty, the
: server had just been restarted, the scheduler had just been restarted,
: there were only jobs scheduled to run in the future. I tried it several
: times, it hangs consistantly.

: Ted.

Mon May 19, 2003 4:06 pm View user's profile Send private message
Ted Olson



Joined: 19 May 2003
Posts: 14

Post Re: auto-restart Reply with quote

24x7 is in the system path, and yes it can be ran from the command line from anywere using 24x7.exe. The server is running NT 4.00.1381 (Service Pack 6).

: Do you have 24x7 in the system path? Can you run it from anywhere using
: 24x7.exe command?
: Which NT service packs you have installed on the system?

Mon May 19, 2003 4:13 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7955

Post Re: auto-restart Reply with quote

Please try this:

Create new JAL script type job. Copy the following code to the job script

Dim old_process_id, number
Dim new_process_id, number

ProcessGetID "24X7.EXE", old_process_id
Run "24X7.EXE", "", new_process_id
ProcessKill old_process_id

Schedule this job to run as needed. If it does not work please let me know on which line it fails.

: 24x7 is in the system path, and yes it can be ran from the command line from
: anywere using 24x7.exe. The server is running NT 4.00.1381 (Service Pack
: 6).

Mon May 19, 2003 5:30 pm View user's profile Send private message
Ted Olson



Joined: 19 May 2003
Posts: 14

Post Re: auto-restart Reply with quote

This script works perfectly. The only problem is that I get the notification that another instance of 24x7 Scheduler is already running on this computer.

Ted.

: Please try this: Create new JAL script type job. Copy the following code to
: the job script

: Dim old_process_id, number
: Dim new_process_id, number

: ProcessGetID "24X7.EXE", old_process_id
: Run "24X7.EXE", "", new_process_id
: ProcessKill old_process_id

: Schedule this job to run as needed. If it does not work please let me know on
: which line it fails.

Mon May 19, 2003 7:19 pm View user's profile Send private message
Ted Olson



Joined: 19 May 2003
Posts: 14

Post Re: auto-restart Reply with quote

: This script works perfectly. The only problem is that I get the notification
: that another instance of 24x7 Scheduler is already running on this
: computer, therefore it disables the job timer on the second instance.

: Ted.

Mon May 19, 2003 7:23 pm View user's profile Send private message
Ted Olson



Joined: 19 May 2003
Posts: 14

Post Re: auto-restart Reply with quote

My mistake, I only had the second instance problem during debugging, once it was schedule it works perfect. Thanks for the tip.

Ted.

: This script works perfectly. The only problem is that I get the notification
: that another instance of 24x7 Scheduler is already running on this
: computer.

: Ted.

Mon May 19, 2003 7:32 pm View user's profile Send private message
MikeK



Joined: 28 May 2003
Posts: 21

Post Re: auto-restart Reply with quote

Is anyone else experiencing this problem once again? We upgraded
from v3.4.13 to v3.4.18 last week & have been experiencing
problems with jobs not running.

After some investigation we've realized that all jobs
after a schedule auto-restart did not kick off. Here's what we
see when the auto-restart runs:

- Job clock stops
- "restarting...." added to the log
- Thread count of 24x7 decreases by 1
- CPU for 24x7 goes to 30-50% (dual system)
- 24x7 never restarts

I'd use the script in this thread, but it won't work
if we've got multiple async 24x7.exe's running.

Mike

: My mistake, I only had the second instance problem during debugging, once it
: was schedule it works perfect. Thanks for the tip.

: Ted.

Mon Jun 14, 2004 10:40 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7955

Post Re: auto-restart Reply with quote

What actually happens is 24x7 fails to kill all running jobs or jobs that hanged before restart. It hangs waiting for these jobs to terminate.

A workaround for this issue is suggested here http://www.softtreetech.com/cgi_bin/config.cgi?read=3872
Don't forget to disable auto-restart options.

: Is anyone else experiencing this problem once again? We upgraded
: from v3.4.13 to v3.4.18 last week & have been experiencing
: problems with jobs not running.

: After some investigation we've realized that all jobs
: after a schedule auto-restart did not kick off. Here's what we
: see when the auto-restart runs: - Job clock stops
: - "restarting...." added to the log
: - Thread count of 24x7 decreases by 1
: - CPU for 24x7 goes to 30-50% (dual system)
: - 24x7 never restarts

: I'd use the script in this thread, but it won't work
: if we've got multiple async 24x7.exe's running.

: Mike

Mon Jun 14, 2004 1:07 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.