Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

I'm getting an error that says 'too many new instances created: 503". I'm doing a lot of lookups in this logic element so I think this has something to do with it.

Answer:

503 is the number of instances created. The number comes from the application xml config file: 

<formulaEngine>
    <script>
      <maxInstances>500</maxInstances>
      <timeoutInSec>5</timeoutInSec>      
      <findMaxResults>200</findMaxResults>      
    </script>
  </formulaEngine>

The maxInstances is set to 500 by default. 


Do you think it would fix the problem to call some of the lookups in a different element? Is 500 the max number of instances for one element or the entire logic?

It seems that it is per formula (those variables live in instances of the class named FormulaSandbox). 


Is there a way to increase or remove this limit?

We've allowed ourselves quite a bit of leeway in dedicated instances, but in a shared instance we do have to limit the resource usage in a formula. The limit is per script, i.e formula element, so spreading out logic would help. The first thing to do would be to review the code though.

As a workaround, try to spread out the logic between more elements. 

  • No labels