Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 49375 invoked from network); 12 Apr 2010 07:45:06 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 12 Apr 2010 07:45:06 -0000 Received: (qmail 57211 invoked by uid 500); 12 Apr 2010 07:45:06 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 57095 invoked by uid 500); 12 Apr 2010 07:45:06 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 57088 invoked by uid 99); 12 Apr 2010 07:45:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Apr 2010 07:45:04 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of dhrubo.kayal@gmail.com designates 209.85.160.170 as permitted sender) Received: from [209.85.160.170] (HELO mail-gy0-f170.google.com) (209.85.160.170) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Apr 2010 07:44:58 +0000 Received: by gyf2 with SMTP id 2so2529236gyf.1 for ; Mon, 12 Apr 2010 00:44:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:content-type; bh=WwB+wliUcm3a0JjkKBSW3wfWuIyE0jaq7e8ZNcpppsY=; b=ZHbAjYM1/oJE3e5wZkcjceJaJFaUibzapw8a8Xz8dseHlZGlESfY9vzcT+XKx3U+XG oMP8y8fpvDYe600c+q8X0rObm1N8c79TPdnqTXKqETtI7AvWFImEuPt8cOG9uL7kH0uT qztrkXM8iK6C560gfp4xeFUHsd+wR3M2uww5I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=dD7wNbUaVD0khkY8IV8U5LaLSITShlKsqeK1GGWBD9xe+4Ukk37wSlvA757YEJCHdx 0uCpHNH16edlwbvdUdNMy6KWRFQAgmwrnwTp17av/aPra2DyOj5Pud2bDiZac6qmVzDx ykb6DKJJcjS+u3iH46QWBtyZlNuXoJCAHYHJs= MIME-Version: 1.0 Received: by 10.231.38.73 with HTTP; Mon, 12 Apr 2010 00:44:36 -0700 (PDT) In-Reply-To: <7984D3ED1FAA344FA73D71DC9F54CF2817AB8E11@E03MVX1-UKDY.domain1.systemhost.net> References: <7984D3ED1FAA344FA73D71DC9F54CF2817AB8E11@E03MVX1-UKDY.domain1.systemhost.net> Date: Mon, 12 Apr 2010 13:14:36 +0530 Received: by 10.100.24.17 with SMTP id 17mr5964987anx.53.1271058276494; Mon, 12 Apr 2010 00:44:36 -0700 (PDT) Message-ID: Subject: Re: Jackrabbit 1.6.0 Write Performance From: Dhrubo To: dev@jackrabbit.apache.org Content-Type: multipart/alternative; boundary=001485f9a5ba0f2e70048405519a X-Virus-Checked: Checked by ClamAV on apache.org --001485f9a5ba0f2e70048405519a Content-Type: text/plain; charset=UTF-8 George If you read the documentation you will see RMI is not the recommended mode of access. Foo whole EJB saga had so much stories about RMI horrors or whatever. Best is to use Jackrabbit in embeded mode and expose Remoting layer like Rest, etc. On Mon, Apr 12, 2010 at 1:05 PM, wrote: > Hi > > We're running a multi-threaded application which creates/updates nodes in > jackrabbit. Here's an outline of the deployment model:- > > - The jackrabbit web app is deployed to the same tomcat instance as our > main app. > - The jackrabbit repository is accessed from our app using RMI. > - We use Threadlocal to confine/isolate the jackrabbit Session. > - We use jackrabbit node locking to enable concurrency of writes to > jackrabbit nodes. We have a multiple level node hierarchy where nodes are > added concurrently. > > - We use the embedded Derby database for database persistence. > > We're getting a bit of a bottleneck when performing the writes, mainly due > to the amount of node locking we're having to do. I can't see a way around > this, so the only measures I can see to improve the performance is speed up > the writes. > > We've tested using postgres for the database persistence, so hopefully we > should get some performance gains there. Is there anything else that can > help improve the write performance? E.g. moving back to using the standalone > server, rather than co-hosting jackrabbit in the same tomcat container as > the app? > > Regards > > George Sibley > > > -- Thanks ... Dhrubo My Book - http://www.apress.com/book/view/1430210095 My Blog - http://www.jtraining.com/blogs/blogger/dhrubo/ LinkedIn - http://www.linkedin.com/in/dhrubo --001485f9a5ba0f2e70048405519a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable George
If you read the documentation you will see RMI is not the recomme= nded mode of access. Foo whole EJB saga had so much stories about RMI horro= rs or whatever.
Best is to use Jackrabbit in embeded mode and expose Rem= oting layer like Rest, etc.




--
Thanks ... Dhrubo
My= Book -
http://www.a= press.com/book/view/1430210095

My Blog -
http://www.jtraining.com/blogs/blog= ger/dhrubo/

LinkedIn - http://www.lin= kedin.com/in/dhrubo
--001485f9a5ba0f2e70048405519a--