Batch Job Optimization
Use this skill when AX batch runtime, nightly processing, retail jobs, AIF/services, or SysOperation workloads are suspected performance drivers.
Inputs
- Batch job and task history with start time, end time, status, company, class, and AOS.
- SQL wait/query/blocking evidence for the same time window.
- AOS event logs, performance counters, and user session patterns.
- Deployment or configuration change timestamps for before/after comparison.
- Historical runtime trends, SLA targets, and maintenance-window boundaries.
- Batch-group and AOS assignment across environments where environment drift is suspected.
Analysis
- Find long-running jobs, retry patterns, failures, and runtime variance.
- Detect overlapping high-load jobs and collisions with user activity, integrations, or maintenance.
- Correlate batch windows with SQL waits, blocking, top queries, TempDB pressure, and file latency.
- Compare normal days with business-critical windows such as month-end close, inventory close, MRP, statement posting, and EDI imports.
- Forecast whether job duration will breach the target window based on recent trends.
- Identify performance debt: recurring jobs whose findings are repeatedly deferred.
- Separate tuning actions into scheduling, parallelism, AX code/query review, SQL maintenance, data lifecycle, and infrastructure capacity.
Collision Patterns
Flag these patterns explicitly:
- Multiple heavy jobs using the same table family in the same window.
- Batch jobs overlapping with index/statistics maintenance, backups, ETL, or reporting.
- Long-running jobs assigned to an overloaded AOS while other AOS nodes are idle.
- Frequent retries or partial failures that increase total load.
- Jobs with rising duration trend after deployments or data-volume growth.
- Posting, settlement, inventory, retail, or integration jobs causing repeat blocking roots.
- Jobs that fit in test but fail in production due to data volume, AOS assignment, or schedule drift.
- Custom batch classes whose SQL signature or Trace Parser stack dominates the runtime.
Recommendations
Prefer low-risk operational changes first: reschedule conflicting jobs, split oversized workloads, adjust batch groups or AOS assignment, and validate maintenance windows. Escalate to SQL or X++ changes only when evidence supports it.
Each recommendation must include expected effect, affected business process, operational risk, validation window, owner, and rollback path. For GxP environments, describe the change as a proposal requiring approval, not an instruction to execute.
SLA Forecast Output
When trend data exists, include:
- Current average runtime and p95 runtime.
- Weekly or monthly growth rate.
- Target window and remaining buffer.
- Predicted breach horizon.
- Confidence and data limitations.
- Recommended decision date.
1---2name: batch-job-optimization3description: Analyze Dynamics AX 2012 batch jobs, SysOperation workloads, collisions, runtime trends, and SQL side effects to recommend safer scheduling and tuning actions.4---56# Batch Job Optimization78Use this skill when AX batch runtime, nightly processing, retail jobs, AIF/services, or SysOperation workloads are suspected performance drivers.910## Inputs1112- Batch job and task history with start time, end time, status, company, class, and AOS.13- SQL wait/query/blocking evidence for the same time window.14- AOS event logs, performance counters, and user session patterns.15- Deployment or configuration change timestamps for before/after comparison.16- Historical runtime trends, SLA targets, and maintenance-window boundaries.17- Batch-group and AOS assignment across environments where environment drift is suspected.1819## Analysis20211. Find long-running jobs, retry patterns, failures, and runtime variance.222. Detect overlapping high-load jobs and collisions with user activity, integrations, or maintenance.233. Correlate batch windows with SQL waits, blocking, top queries, TempDB pressure, and file latency.244. Compare normal days with business-critical windows such as month-end close, inventory close, MRP, statement posting, and EDI imports.255. Forecast whether job duration will breach the target window based on recent trends.266. Identify performance debt: recurring jobs whose findings are repeatedly deferred.277. Separate tuning actions into scheduling, parallelism, AX code/query review, SQL maintenance, data lifecycle, and infrastructure capacity.2829## Collision Patterns3031Flag these patterns explicitly:3233- Multiple heavy jobs using the same table family in the same window.34- Batch jobs overlapping with index/statistics maintenance, backups, ETL, or reporting.35- Long-running jobs assigned to an overloaded AOS while other AOS nodes are idle.36- Frequent retries or partial failures that increase total load.37- Jobs with rising duration trend after deployments or data-volume growth.38- Posting, settlement, inventory, retail, or integration jobs causing repeat blocking roots.39- Jobs that fit in test but fail in production due to data volume, AOS assignment, or schedule drift.40- Custom batch classes whose SQL signature or Trace Parser stack dominates the runtime.4142## Recommendations4344Prefer low-risk operational changes first: reschedule conflicting jobs, split oversized workloads, adjust batch groups or AOS assignment, and validate maintenance windows. Escalate to SQL or X++ changes only when evidence supports it.4546Each recommendation must include expected effect, affected business process, operational risk, validation window, owner, and rollback path. For GxP environments, describe the change as a proposal requiring approval, not an instruction to execute.4748## SLA Forecast Output4950When trend data exists, include:5152- Current average runtime and p95 runtime.53- Weekly or monthly growth rate.54- Target window and remaining buffer.55- Predicted breach horizon.56- Confidence and data limitations.57- Recommended decision date.