As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
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 -javaagentATH 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.
Hi Tom, thank you for your answer. I set xms and xmx values as you suggested, but I would not say that it made any influence on the speed, it is not faster nor slower. I thought that if I gave more memory it will help, but unfortunately it doesn't. My system memory is 32GB. Therefore I gave 8-10GB to JVM. When I click on document library response time is cca 15 seconds and for showing search results it takes cca 35 seconds.
I also tried with alfresco:run goal and it makes build time twice as fast. (Y)
How about the disk performance?
My computer is by far worse than yours, but it has a SSD, and the performance is good enough.
Mine also has SSD.