cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco pegs at 50% CPU utilisation

johnsona
Champ in-the-making
Champ in-the-making
I'm loading a number of documents (about 30,000) into Alfresco (1.3 Community) via CIFS.  My Alfresco server (running Centos) is sitting at around 50% CPU utilisation and the hard drive light is occationally flashing.

Are there tweaks needed to get Alfresco to make full use of the CPU?  Or perhaps there is another bottleneck that I need to be looking at?

Hoping someone can assist.

Al.
5 REPLIES 5

kevinr
Star Contributor
Star Contributor
A single user loading docs via CIFS will only use a single thread - does your server have multiple CPUs/cores? If you start off another load at the same time with a different user, does it then use 100%?

Thanks,

Kevin

johnsona
Champ in-the-making
Champ in-the-making
Thanks Kevin.  That was it.  It was running on a hyperthreading Pentium 4.  Once I disabled hyperthreading Tomcat made full use of the CPU with a single user active.

I am noticing CIFS is very, very slow however.  I measured 25 seconds to copy a 20Kb file to the CIFS share from a Windows XP machine (both connected to the same 100MB switch, no other network loading).

The Alfresco CIFS directory has some 1800 files in it already, so I guess that could be causing slow down.  Indexing may also be slowing things down somewhat (but surely not much for a single 20Kb file)?

Are there any recommendations for the maximum number of files in a Alfresco directory?  Also, would it make sense to turn off interactive indexing / is there a way to do this and run as a overnight or on-demand batch?  I think http://forums.alfresco.com/viewtopic.php?t=1305&highlight=interactive+indexing describes how to do this - but I'm not sure what file to modify for this.

Cheers,

Al.

kevinr
Star Contributor
Star Contributor
This is probably a known performance issue with the number of items in a folder when a new item is added - it's possible it's the indexing but i doubt it from the small size of the file. This has been fixed for 1.4.

Thanks,

Kevin

johnsona
Champ in-the-making
Champ in-the-making
Thanks Kevin,

I grabbed 1.4 HEAD from SVN and after adding
export JAVA_OPTS='-Xms128m -Xmx512m -server -XX:CompileCommand=exclude,org/apache/lucene/index/IndexReader$1,doBody'
to startup.sh, CIFS performance is both fast and stable Smiley Very Happy

I'm in the process of loading 15,000 files into the repository and Windows tells me it will take 30 minutes.  With 1.3 it was going to take closer to 30 days :shock:

Cheers,

al.

kevinr
Star Contributor
Star Contributor
Glad to hear that, 30 mins is better than 30 days Smiley Happy

Kev