ITMS upgrade take a long time because of too slow schedules recreation
Last Updated November 16, 2018
The customer noticed that during the upgrade it took about 3 hours to recreate 977 schedules on his SMP and about 10 hours on another SMP with 2,000 schedules.
Off-box upgrade may take very long time because of the low performance of task-schedule handling during the upgrade process.
When a task or a job is scheduled to run in the future, a task schedule is created in the Configuration Management Database (CMDB) and a scheduled task is created in the Windows Task Scheduler. The task will run at the specified time. After the task runs, the task schedule remains in the CMDB and the scheduled task in the Windows Task Scheduler even if it has no future occurrence. The growing number of scheduled tasks can cause performance issues for Windows Task Scheduler.
Upgrades to ITMS 8.5
Configuring task 12 of 80: Configure Altiris Task Management Installation.
During an upgrade, registry entry "RecreateAllSchedulesPostUpgrade" gets placed in HKLM\Software\Altiris\eXpress\Notification Server. On next service start after upgrade (performed by SIM), AEXSVC will detect this entry and will launch recreation of all schedules. This is the same recreation that gets performed by "Recreate schedules" schedule that runs weekly. After completion, registry entry will be removed. Synchronization was added to prevent schedule execution if schedule recreation execution is already in progress.
Note that the problem lies within standard Windows API calls that are used to re-create the schedules. Also, schedule re-creation speed can be affected by antivirus software.
This issue has been reported to the Symantec Development team. Code has been optimized to minimize calls for slow API's. A fix has been added to the next release (currently targeted to ITMS 8.5 RU1).
Possible workaround is to reduce the number of schedules by running ‘Clean up Task Schedules’ (which is available since 8.1.RU2) prior to upgrade:
Go to Settings>All Settings>Notification Server> Task Settings>Clean Up Task Schedules
The Clean up Task Schedules task lets you disable or delete the schedules that have no occurrence in the future. Note: The existing schedules are re-saved during the upgrade. Running the Clean up Task Schedules task immediately after the upgrade does not disable or delete these schedules.
Subscribing will provide email updates when this Article is updated. Login is required to Subscribe