Java Virtual Machine memory allocation
If performance is slow, or if you receive an Out of Memory error when processing a large number of records, configure the amount of heap memory that batch will be using before a batch run by adding -Xmx<MAX_MEM>m to the command line.
Example:
java -cp .;e1-server-batch.jar;<LIBRARIES>
-Xmx512m com.pb.engageone.server.batch.na.runner.CommandLineRunner -domain e1Domain -template "EngageOne Simple Template" -deliveryOption "ARCHIVE_ONLY" -dir "c:\batch input"
For more JVM tuning advice, see the link below:
https://docs.oracle.com/cd/E13222_01/wls/docs81/perform/JVMTuning.html