Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Number of threads to use in a batch processing

(1) ShareShare
ReportReport
Posted on by 116
Hi experts, 
I have a doubt on maximum usage of threads in a batch process. I am right now using /Top picking/ strategy to allocate tasks to each threads in sys operation. The maximum number of threads that Microsoft recommends to set is about 16. My doubt is, can we use all the 16 threads or about 15 threads when we are running our batch job in multithreading sys operation? There are some jobs that will be run by default for some standard processes, right? Will those get affected if I use about 15 threads? I don't have any exact requirement for heavy load processing. I am just trying to understand whether it will impact anything else if use the maximum capability of threads. Any suggestions are appreciated. 
 
Thanks in advance, 
John. 
  • Suggested answer
    Kevin Xia Profile Picture
    Microsoft Employee on at
    Number of threads to use in a batch processing
    Hi,
    You can refer to this blog post: Priority-based batch scheduling in Dynamics 365 - ariste.info. It introduces about priority-based batch scheduling. Or you can refer to this official document: Batch processing and batch servers - Finance & Operations | Dynamics 365 | Microsoft LearnThis article describes batch processing and batch servers, and how to plan for their use.
    Best regards,
    Kevin
  • Andreas Raithel Profile Picture
    4,915 Super User 2025 Season 1 on at
    Number of threads to use in a batch processing
    Hy John,
     
    you are on the right track, as batch jobs setup and moinitoring is crucial to avoid business process breaks.
    If no threads are avaialable for other important batch jobs they will be queued until thraeds ara available again.
     
    So planning of batch jobs is very important, starting point is here to understand the priority based batch configuration Priority-based batch scheduling - Finance & Operations | Dynamics 365 | Microsoft Learn and for more planing and documentation this also a good approach for Sysadmins Batch Jobs; Take control of the executions | Kurt Hatlevik – Dynamics 365 Blog
     
    Hope this helps
     
    Herzliche Grüße / kind regards,
     
    Andreas Raithel
    D365FO Solution Architect
  • André Arnaud de Calavon Profile Picture
    294,017 Super User 2025 Season 1 on at
    Number of threads to use in a batch processing
    Hi John,
     
    Technically, you can set up all the available batch threads. The result is that when a new batch task should be executed and no threads are available, it will queue up the tasks until there is another one available. 
     
    From an implementation point of view, you would need to check what batch processes you need. Which are critical? At what time are they running? When you know possible overlaps and priorities, you can determine what number of threads to allocate.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,017 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,852 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans