Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Does a CRM 2011 workflow in a WAIT STATE use system resources, specifically the async service?

Posted on 2014-10-02
6
Medium Priority
?
741 Views
Last Modified: 2014-10-02
We have some workflows waiting on approvals. They show business process status = "Running". I read a blog that says wait conditions use resources via the async service (didn't say what: memory? CPU?).

My question is, does a wait condition in a CRM 2011 workflow use resources, and if so, what kind (memory, CPU, or both), and is it significant.

This question is coming up because our async service is spiking up to using over 36 gigs of memory during the day (at some point, the server then crashes).
0
Comment
Question by:munge
  • 3
  • 3
6 Comments
 
LVL 30

Accepted Solution

by:
Feridun Kadir earned 2000 total points
ID: 40357469
I suppose they do consume resources in that each waiting workflow occupies a row in a database table. Also the async process has to periodically check through all waiting workflows. So there will be an impact on CPU resources but I wouldn't have thought it would be significant unless you have a very large number of waiting workflows.

Perhaps you have jobs that will never end because of errors. You can review these in Settings, System Jobs.
0
 

Author Closing Comment

by:munge
ID: 40357531
Thank you!   I guess the guy that made this post on this blog http://crmtipoftheday.com/2014/04/28/dont-use-wait-conditions/  is misinformed.

I guess technically you could say that using a database row is using resources, but to me "resources" means CPU and/or memory.  And I would guess that the cycling through waiting workflows wouldn't take much CPU either.  Certainly nothing that would push the async service up to using 36 gig of memory and crashing our system!

Thanks again.
0
 
LVL 30

Expert Comment

by:Feridun Kadir
ID: 40357632
I agree that using 36G memory is excessive. Do you have multiple CRM organisations in your deployment? The async service has to service each one.

Since you have on-premise you might want to have a look in the SQL database for the CRM organization and see how many rows you have in the asyncoperationbase table.
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 

Author Comment

by:munge
ID: 40357650
Actually, your last post just turned on the light bulb in my head.  We actually have 3.5 MILLION waiting workflows!  What I didn't think about, is that the async service is cycling through all those quite often...

Between that and a certain plugin we believe is in some kind of infinite loop, I think we're getting close...
0
 

Author Comment

by:munge
ID: 40357653
Also, would you happen to know how often the service cycles through those things?
0
 
LVL 30

Expert Comment

by:Feridun Kadir
ID: 40357736
No I don't.  There's probably an article somewhere on the net about the inner workings of the async service but I don't recall seeing one.
0

Featured Post

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

On Sep 22nd 2014 Microsoft released Update Rollup 1 for Microsoft Dynamics CRM 2013 Service Pack 1 and back in July Update Rollup 3 was released.  So we now have:   Update Rollup 1Update Rollup 2Update Rollup 3Service Pack 1Update Rollup 1 for S…
The new Microsoft OS looks great, is easier than ever to upgrade to, it is even free.  So what's the catch?  If you don't change the privacy settings, Microsoft will, in accordance with the (EULA) you clicked okay to without reading, collect all the…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

927 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question