Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have developed 2 workflows. Both are run manually. The first workflow starts the second, waits for it to finish, and then carries on. There are no problems really, it's just that once the second workflow is started, it is in Starting state for around 5 minutes and then it finally kicks off. When I checked the details, it said that the workflow is in Starting state due to the heavy load of the machine. I don't believe that this is the actual case because my machine has 8GB of RAM and it's an isolated development machine and I am the only user accessing SharePoint.

Is there any way to improve the performance through code? Should I pay attention to something that might be the cause of this behavior, other than resources leaking (which I checked already)? Thanks.

share|improve this question
    
What type of activities do you have in the second workflow? do you have any wait, pause, or task processes –  dfminky Oct 5 '12 at 14:47
    
The second workflow is making workflow tasks and updates the workflow item properties based on the task completion. But second workflow activities are completely unrelated to my problem as they happen after the workflow is started. I am concerned about the time it takes to start the second workflow. –  Boris Oct 5 '12 at 16:08

1 Answer 1

up vote 0 down vote accepted

If SharePoint is under load or thinks that your workflow is heavy then it'll send it to be processed in the backgound using the workflow timer job, which by default run every 5 minutes.

For more information see How to Improve Workflow Performance in SharePoint Server 2010 and Estimate performance and capacity planning for workflow in SharePoint Server 2010

But expect your workflows to have this behaviour in production. This is by design.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.