Return-Path: X-Original-To: apmail-directory-users-archive@www.apache.org Delivered-To: apmail-directory-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4985ED051 for ; Fri, 8 Mar 2013 12:57:43 +0000 (UTC) Received: (qmail 48645 invoked by uid 500); 8 Mar 2013 12:57:43 -0000 Delivered-To: apmail-directory-users-archive@directory.apache.org Received: (qmail 48472 invoked by uid 500); 8 Mar 2013 12:57:41 -0000 Mailing-List: contact users-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@directory.apache.org Delivered-To: mailing list users@directory.apache.org Delivered-To: moderator for users@directory.apache.org Received: (qmail 34668 invoked by uid 99); 8 Mar 2013 12:50:58 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of PKubowicz@antennasoftware.com designates 204.86.196.203 as permitted sender) X-ASG-Debug-ID: 1362747030-0357076b26189c10001-82yWlP X-Barracuda-Envelope-From: PKubowicz@antennasoftware.com X-Barracuda-RBL-Trusted-Forwarder: 192.168.71.27 X-ASG-Whitelist: Client From: Piotr Kubowicz X-Barracuda-BWL-IP: 10.20.65.81 X-ASG-Whitelist: Client X-Barracuda-RBL-IP: 10.20.65.81 To: users@directory.apache.org Subject: Re: Disabling transactions in an embedded ApacheDS to boost performance Date: Fri, 08 Mar 2013 13:50:28 +0100 X-ASG-Orig-Subj: Re: Disabling transactions in an embedded ApacheDS to boost performance Message-ID: <13641405.5R3N3klcRf@pkubowicz> Organization: Antenna Volantis Ltd. User-Agent: KMail/4.8.5 (Linux/3.2.0-37-generic; KDE/4.8.5; x86_64; ; ) MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="iso-8859-2" X-OriginalArrivalTime: 08 Mar 2013 12:50:30.0758 (UTC) FILETIME=[841D5860:01CE1BFB] X-Barracuda-Connect: jcnj138.antennasoftware.com[192.168.71.27] X-Barracuda-Start-Time: 1362747030 X-Barracuda-URL: http://spam.antennasoftware.com:8000/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at antennasoftware.com X-Barracuda-BRTS-Status: 1 X-Virus-Checked: Checked by ClamAV on apache.org Thanks for the advice. It turned out that in my case the best option was to change the default partition factory by setting the 'apacheds.partition.factory' system property (read by DefaultDirectoryServiceFactory). This assures that the schema partition won't be a bottleneck. With this setting I am able to achieve 200-300 adds per second on M11 (the performance does not differ between M7 and M11 when using AVL partitions). I haven't met any memory-related problems when running my tests. Thank you for your help. -- #!/usr/bin/perl ($_1,$_)=("it uoiz","");sub P{$_=shift;s/!|!.*!//g;split//;}$O= length $_.'@';sub I{$_.=shift(@{$_[0]}).shift(@{$_[1]});$#{$_[0]}+$#{$_[1]};}@O= P q!PorK!."bwc puoizatnao!taecm\n";(@_0,$_)=P $_1;$_='';while($O){last if I#P0rK (\@O,\@_0)==-$O-$O;}print; This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. If you have received this email in error please delete it and notify the system administrator at administrator@antennasoftware.com