Try to increase Java memory size in AJS.
increase the Java VM setting of Adaptive Job Server.
- Open the Central Management Console
- Browse to the Servers page
- Open the properties of Adaptive Job Server
- In the Command Line Parameters, locate the string Xmx, then change it to Xmx2g ( 2G of RAM). Depending on the complexity and data size, you may need to use Xmx4g.
- Save and Close.
- Restart the Adaptive Job Serve