a!Start process-more than 1000 instances

Certified Lead Developer

Hi All,

can use MNI configuration for start process smart service. As we have an advantage of process will start different or same engine  based on the load and memory consumption will not be much .

Bcoz, we have design where we need start more than 1000 process instances ? 

will it allow iterate more than 1000 atleast incase of start process smart service -since memory issue will handled by loading into different engine?

  Discussion posts and replies are publicly visible

Parents Reply Children
  • Another solution which I can think of is, using a loop instead of MNI. You can create a loop and increment the count based on the number of instances you want to create. To avoid the 1000 node instances error, select the "Delete previously completed/cancelled instances" in the "Other" tab of the nodes (Script Task and Start Process Smart Service). Refer to the below screenshots.

    Deleting the instances will free up the memory thus, won't affect even if you create 1000+ instances. However, I advise you to revisit your design and try to process in batches, if possible.

  • I strongly advise against this - it doesn't really alleviate the memory problems because there is still some memory usage by instances that are deleted. Plus, if you're deleting the instances it's impossible to troubleshoot what is going on. In general a loop in your process is worse than using MNI because you're executing triple the nodes (because now you've added a gateway and script task), you're updating a variable 1000 times (which also has an impact on memory), and of course you can still run into limits.

  • I agree with the other points but for the troubleshooting, using the Start Process Smart Service will still have the instances of the child process (accessible from Monitoring) even after "Delete previously completed/cancelled instances" is checked for the node. It just deletes the node instances. Am I missing something?

  • Ok that's fair - "impossible to troubleshoot" was probably too strong a point. The main issue with troubleshooting is if you go into monitor the process node you wouldn't see something like "1000 instances"; instead you would need to drill into the Process Details, which is more challenging to find what you're looking for. I still in general would not recommend using the "Delete previous completed/canceled processes" because it just adds confusion and doesn't save you much in terms of memory.