Task Engine runs on JVM (Java Virtual Machine). By default, the JVM heap size is 1GB, which is usually enough to accommodate the data used by Task Engine.

However, larger heap size may be required under some circumstances, for example, when the average size of the parameters in a task is very large. Under these circumstances, the following log item is recorded in Task Engine log files. If this log item appears regularly, you need to increase the heap size.

java.lang.OutOfMemoryError: Java heap space

Example: Modify JVM heap size to 1500 MB.

1.Under the C:\Program Files\NetBrain\Task Engine\ directory, open the TaskEngineServices.xml file with a text editor.

2.Modify the -Xms and -Xmx arguments to 1500m.

<arguments> -Xms1500m -Xmx1500m -XX:+HeapDumpOnOutOfMemoryError -XX: +UseConcMarkSweepGC

3.Open the Task Manager to restart the Task Engine service. On the Details tab, check whether the currently used memory is reasonable with the heap size change.