Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 15186 invoked from network); 28 Apr 2009 14:44:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 28 Apr 2009 14:44:56 -0000 Received: (qmail 6014 invoked by uid 500); 28 Apr 2009 14:44:55 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 5991 invoked by uid 500); 28 Apr 2009 14:44:55 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 5980 invoked by uid 99); 28 Apr 2009 14:44:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Apr 2009 14:44:55 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Apr 2009 14:44:46 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1LyoXq-00065Q-4n for users@jackrabbit.apache.org; Tue, 28 Apr 2009 07:44:26 -0700 Message-ID: <23278564.post@talk.nabble.com> Date: Tue, 28 Apr 2009 07:44:26 -0700 (PDT) From: majohnst To: users@jackrabbit.apache.org Subject: Re: Database Connections and Performance In-Reply-To: <3041FF65-6004-47CC-82A8-68DA1A6E35FB@tfd.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: matt@lattaoutdoors.com References: <23277508.post@talk.nabble.com> <3041FF65-6004-47CC-82A8-68DA1A6E35FB@tfd.co.uk> X-Virus-Checked: Checked by ClamAV on apache.org Thanks for the response. To give a little more information about my situation, we are not seeing excess sql traffic, we are more concerned with the time required to execute a query from the repository. In our setup, we are using a Spring/Tomcat setup and using Jackrabbit OCM to map our entities. We have noticed that as the number of concurrent users on our website increases, the query performance goes way down. So our page load times increase dramatically. As best as I can tell, the pages are waiting for a jackrabbit query to execute and a backlog of jackrabbit operations begins to form, slowing down the page loads. When you say jackrabbit is multi-threaded: Ian Boston wrote: > > Jackrabbit has its own multi threaded state management. Everything is > focused on serving information from memory and not performing a query > against the database. Only when a session needs to get something that > isn't in one of the shared caches will you see queries hitting the > database. > Do you mean that it is executing queries against the repository in a multi-threaded way (many concurrent queries)? Since we are using spring in a web app, is this considered one session, or multiple sessions? The ultimate goal is to increase the speed of our queries. We have already read over the tips regarding how to write queries effectively and how to structure the repository. Now I am thinking we are running into code issues either with the Jackrabbit query logic or in OCM mapping that is slowing the process down. -- View this message in context: http://www.nabble.com/Database-Connections-and-Performance-tp23277508p23278564.html Sent from the Jackrabbit - Users mailing list archive at Nabble.com.