I'm running Alfresco 5.2.0, SDK 3.0.1 (all in one) locally on my machine. Unfortunately build and page loading takes too much time. What is the best way to improve it? Even if I gave 8GB to Tomcat and JVM it doesn't help.
How are you running your project?
Are you using the run.sh/run.bat file or using maven directly?
How is your MAVEN_OPTS set?
Share more context.
I use two ways to run my project:
1. Through maven directly with following command defined in run configuration: clean install alfresco:run and VM options: -Xms8G -Xmx10G -XXaltjvm=dcevm -javaagent:PATH TO HOTSWAP AGENT
2. Through run.bat
Of course the first way is a bit slower due to Hotswap agent.
MAVEN_OPTS are set as it is shown in the picture below.
One way to speed up development is to not execute the clean install goals (after one first initial run), and only use the alfresco:run goal. If you've added hotswap agent, most files will reload anyways so there's no need for a full build. From time to time a clean install does help keep your project clean.
Unless your custom code has massive memory requirements, -Xms2G -Xmx2G works just fine in most development cases. (Also having max and starting memory the same size means the JVM doesn't need to make any decisions, which is more efficiënt) Actually telling the JVM to take all your system memory might actually cause things to go slower.
Hope this info helps.
Retrieving data ...