Highlighted
Super Contributor.
Super Contributor.
1901 views

VC runs slower under Windows Task Scheduler?

Jump to solution

Just replaced Server For COBOL 5.1 with COBOL Server 2.3 on our (virtual) Windows Server 2008 production server.  We have four native Windows programs that are run at night via Windows Task Scheduler.  Two of these programs are running almost as fast (approx. 10% slower) as when they were Net Express, but the other two are running 6-8 times longer.  When the two "slow" programs are executed manually they run in about the same times as when they were Net Express!

Anybody know what in COBOL Server would run so much slower under Task Scheduler than when run manually?

0 Likes
1 Solution

Accepted Solutions
Highlighted
Absent Member.
Absent Member.

RE: VC runs slower under Windows Task Scheduler?

Jump to solution

Hi,

Windows Task Scheduler will by default run tasks at a "Below Normal" priority. You can check this in Task Manager. This can cause performance issues. To reset the priority you need to highlight your task and then then right click and export. Edit the XML field for priority and change from 7 (Below Normal) to 6 (Normal).  Delete the Task and then import. If you now run you should see the task running as Normal in Task Manager.

I've not found any way to configure this in the Task Scheduler GUI so it is a slightly clunky procedure.

If this doesn't resolve the issue then I would suggest raising a Support Case.

Regards

David

View solution in original post

0 Likes
4 Replies
Highlighted
Absent Member.
Absent Member.

RE: VC runs slower under Windows Task Scheduler?

Jump to solution

Hi,

Windows Task Scheduler will by default run tasks at a "Below Normal" priority. You can check this in Task Manager. This can cause performance issues. To reset the priority you need to highlight your task and then then right click and export. Edit the XML field for priority and change from 7 (Below Normal) to 6 (Normal).  Delete the Task and then import. If you now run you should see the task running as Normal in Task Manager.

I've not found any way to configure this in the Task Scheduler GUI so it is a slightly clunky procedure.

If this doesn't resolve the issue then I would suggest raising a Support Case.

Regards

David

View solution in original post

0 Likes
Highlighted
Super Contributor.
Super Contributor.

RE: VC runs slower under Windows Task Scheduler?

Jump to solution

Of course I'll give this a try for tonight's runs and let you know the results, but it doesn't answer why these two programs run soooo slooow under COBOL Server compared to Server For COBOL.  Specifically, what is it that these two programs are doing that is operating so differently between the COBOL Server and Server For COBOL run-times that Task Scheduler has such a huge affect on the former and not the latter?  It can't be a general thing because our other two programs running under Task Scheduler are executing in approximately the same times as their Net Express counterparts.

So it's bugging me; where or what is the difference?

0 Likes
Highlighted
Super Contributor.
Super Contributor.

RE: VC runs slower under Windows Task Scheduler?

Jump to solution

Sorry, forget all above.

The long run times were Friday night, 1-Jan-2016, the second night the programs were run under COBOL Server.  When I checked the run times for last (Monday) night, 4-Jan-2016, I found them to be about the same as their Net Express counterparts!  I have gone back and checked the run times for the first (Thursday) night, 31-Dec-2015, under COBOL Server and they were also about the same as under Net Express.

So apparently something extraneous was going on with the server (backups maybe? patching?) on Friday night during our scheduled times and that is what skewed the times.

So for now I guess all is good.

And thank you for priority info, we'll keep that in mind.

0 Likes
Highlighted
Absent Member.
Absent Member.

RE: VC runs slower under Windows Task Scheduler?

Jump to solution

Thanks for confirming.

Regards

David

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.