Unpack the jar file:
$ java -jar AEM_6_5_Quickstart.jar -unpack
Start AEM with more memory using command line
$ CQ_JVM_OPTS='-server -Xmx2048m -XX:MaxPermSize=2048M -Djava.awt.headless=true -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=30303' ./start
The above command will also allow you to debug java code in AEM using IntelliJ.
Full course available on https://www.donotstoplearning.com