saidone.org -
the land of the free and the home of the brave
Main menu
Home
About

Projects
AlfMark

Swamp
Links
ush.it
aghers.org
saidone@ush
gameknot
virtualmagister

Misc
Unless otherwise specified, all contents of this site are licensed under a Creative Commons Attribution-ShareAlike 3.0 Italy License.
AlfMark - Alfresco CMIS benchmarking tool - posted by saidone on Thu, 25 Aug 2011 13:22:59 GMT
AlfMark is an Alfresco - CMIS benchmarking tool, useful to test your Alfresco installation, make some profiling and even for tuning and various optimization on filesystem, kernel, network and database.

The project is fully open source (published under GPLv3 license) so you're welcome to modify, send patches, suggestions, bug reports and so on: sources will be released very soon on a public repository.

The benchmark itself uses CMIS to communicate to Alfresco, no modifications or reboot are needed on a standard Alfresco installation. You can run the test on the Alfresco machine itself (where the benchmark program will consume a little of CPU), or on a remote machine (where the network may, if very slow, influence the results in some ways), the only requirement is a JVM.

Executing the benchmark is very easy, just download the package from:

http://ubuntuone.com/p/1CnB/

EDIT: the above and below strikethrough links will expire soon, please refer to the Alfresco Forge site for the project:
http://forge.alfresco.com/frs/?group_id=305


Optionally, check the archive fingerprints:

md5 http://ubuntuone.com/p/1CnC/
sha1 http://ubuntuone.com/p/1CnD/

When dowloaded and expanded, tune the configuration by modifying the file in the etc folder, where you should change the informations about the location (IP address, URLs) and the credentials to access your Alfresco server (the file is alfmark.conf.xml), more or less the following lines:

	<!-- IP address of Alfresco server -->
	<ip>192.168.1.227</ip>
	<!-- TCP port -->
	<port>8080</port>
	<!-- credentials to use (MUST be able to write in company_home!) -->
	<alfrescoUser>admin</alfrescoUser>
	<alfrescoPassword>admin</alfrescoPassword>

[...]
All the file and folders created by the tests are automatically disposed on benchmark exit.

After configuration, you can run the benchmark with the following command:
java -Xmx256m -Xss128k -jar AlfMark-0.39.jar
and then wait for the results. It should finish in under 5 minutes.

You should obtain something like this (but with a higher score ;-):


The tail of a previous run is also shown, so you can notice the little fluctuations in results

Optionally, you can configure the log4j.xml config file (also in etc) to see what's happening in depth.

Expect a better documentation soon ;-)

My test machine is an old P4:
processor	: 0
vendor_id	: GenuineIntel
cpu family	: 15
model		: 2
model name	: Intel(R) Pentium(R) 4 CPU 2.80GHz
stepping	: 9
cpu MHz		: 2799.930
cache size	: 512 KB
with 1GiB of RAM, PATA hard drives.
As it can be seen as the lowest end hardware where you want run an Alfresco instance, the benchmark configuration is tuned to give a score of 1.00 to this machine (I experimented variance of about 2% between results): if you obtain a lower score almost certainly there is something wrong with your installation ;-)
Note, however, that with proper configuration even this obsolete hardware can run Alfresco unexpectedly well for small volumes of documents.

Last but not least, the machine itself hosts Alfresco main storage, Lucene indexes and database server.

The server is running OpenJDK (IcedTea6 1.7.5) with these JAVA_OPTS:
-Xms768m
-Xmx768m
-Xss128k
-XX:MaxPermSize=256m
-Dsun.rmi.dgc.client.gcInterval=3600000
-Dsun.rmi.dgc.server.gcInterval=3600000
and Alfresco version is Community - v3.4.0 (d 3370)

Let me have your feedback please, and have fun!




No comments yet.



Post a new comment

<-- comment title (well, not really mandatory)
<-- your name
<-- your e-mail
<-- multiply 33 by 68

back to home
[[[[[[[ served by kugelmass ]]]]]]]
If you can't use strcpy and strlcpy correctly, then you should not be a programmer. - Theo de Raadt