Large Batch Recipes

Sepasoft MES Module Suite

Large Batch Recipes

"MessageTooLargeException" when dealing with large Batch Recipes

A "MessageTooLargeException" occurs when a Batch Recipe exceeds the default maximum message size of 2048kb (2MB) in a Perspective Session, leading to a WebSocket disconnection. To prevent this, you need to modify the ignition.conf file. Locate the # Java Additional Parameters section and add the following line:

wrapper.java.additional.X=-Dperspective.websocket.max-message-size=#

Replace X with the next sequential parameter number and # with your desired maximum message size in KB. The maximum allowable value is 2147483647 KB (the maximum integer value); anything higher will revert to the default of 2097152 KB. After saving the file, restart the Ignition Gateway service for the changes to take effect.

Optimize Process Cell Update Intervals based on the size of Batch Recipes

To optimize performance, you should throttle the "Update Interval" in your Process Cell settings based on your recipe size. Access this setting by editing a Process Cell under an Area in the Equipment Manager.

  • Large recipes (hundreds of steps/transitions, manual steps taking minutes/hours): Use the longest interval, 1000 mSec.
  • Medium recipes (faster execution than large recipes): Use an interval between 100 and 250 mSec.
  • Small recipes (progress through steps very fast): Use a setting of 25 mSec.

Consider defining Process Cells by recipe size when setting up your Production Equipment Model for best results.

Sepasoft MES Module Suite