How to speed up Alfresco - SDK 3.0.1?

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Active Member II

How to speed up Alfresco - SDK 3.0.1?

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.

11 Replies
Highlighted
Advanced II

Re: How to speed up Alfresco - SDK 3.0.1?

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.

Highlighted
Active Member II

Re: How to speed up Alfresco - SDK 3.0.1?

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 -javaagentSmiley TongueATH 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.

Highlighted
Active Member

Re: How to speed up Alfresco - SDK 3.0.1?

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.

Highlighted
Active Member II

Re: How to speed up Alfresco - SDK 3.0.1?

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)

Highlighted
Advanced II

Re: How to speed up Alfresco - SDK 3.0.1?

How about the disk performance?

My computer is by far worse than yours, but it has a SSD, and the performance is good enough.

Highlighted
Active Member II

Re: How to speed up Alfresco - SDK 3.0.1?

Mine also has SSD.

Highlighted
Advanced II

Re: How to speed up Alfresco - SDK 3.0.1?

Your OS is?

I can speak for Linux and Mac, but I have no idea about the performance on Windows.

Highlighted
Active Member II

Re: How to speed up Alfresco - SDK 3.0.1?

Windows 10 Smiley Sad Thank you a lot for investing your time.

Highlighted
Member II

Re: How to speed up Alfresco - SDK 3.0.1?

Anela,

I have this deployed locally as well on a Windows 2012 server and I am trying to speed up the entire system. I have about 18,000 pdf files in my repository and while it does respond and even works on my mobile device. It is definitely not running an acceptable performance.

Any tips on how your got yours running faster would be great, if you kept going.

Thanks,

Tim