When execute the AEM jar via command prompt using
"java -Xmx5130m -jar <path>\aem-author-4502.jar -gui"
it shows the below error dialog box
But when I run the jar by double clicking it works fine.
Can anyone facing the same before or any solution to overcome this.?
Java version 8
AEM jar version 6.4
Your current execution includes a path D:/AEM-Jar/author/aem-author-4502.jar
Can you switch to D:/AEM-Jar/author/ and run the execution command from that path?
After reviewing the exception logs which is complaining about the insufficient heap size, it is advised that your allocated heap does not exceed 50% of your total RAM. Having said that if you have 2P GB RAM, increasing to -XmxPG should be okay.
To fix the error, it is recommended to increase -Xmx depending on the instance RAM size as calculated above.
Hope this helps!!
java -XX:MaxPermSize=256m -Xmx1024M -jar <Name of jar file>
I believe you have followed the technical requirements listed here. https://docs.adobe.com/docs/en/aem/6-1/deploy/technical-requirements.html#Virtual%20&%20Cloud%20Comp...
Difference I can notice in your scenario with the command line startup and double clicking jar is maxheap size allocation.
Can you please try this below solutions:
1.Remove the -Xmx param and try to run the jar. (This will pick the standard heapsize. Suggesting this to know if the issue is due to heapsize allowcation in the system).
2. Please check the stderr.log. you should see the errors related to startup here.