Sencha Cmd 7.2 not picking up _JAVA_OPTIONS: -Xms512m -Xmx4096m, and it causes out of memory issue.
_JAVA_OPTIONS: -Xms512m -Xmx4096m
You can edit the sencha.vmoptions file inside the Sencha Cmd install directory.
The downside is that this has to be done on every build machine.