Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 21412 invoked from network); 23 Apr 2004 06:12:47 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 23 Apr 2004 06:12:47 -0000 Received: (qmail 29622 invoked by uid 500); 23 Apr 2004 06:12:19 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 29608 invoked by uid 500); 23 Apr 2004 06:12:18 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 29591 invoked from network); 23 Apr 2004 06:12:18 -0000 Received: from unknown (HELO mail49.messagelabs.com) (193.109.255.19) by daedalus.apache.org with SMTP; 23 Apr 2004 06:12:18 -0000 X-VirusChecked: Checked X-Env-Sender: Julien.Delfosse@UCB-Group.com X-Msg-Ref: server-9.tower-49.messagelabs.com!1082700747!3345511 X-StarScan-Version: 5.2.10; banners=-,-,- X-Originating-IP: [195.206.74.234] Received: (qmail 29890 invoked from network); 23 Apr 2004 06:12:27 -0000 Received: from mx1.ucb-group.com (195.206.74.234) by server-9.tower-49.messagelabs.com with SMTP; 23 Apr 2004 06:12:27 -0000 Received: from ntbraexc001.braine.ucb (local) by mx1.ucb-group.com with ESMTP id i3N66tw09376 for ; Fri, 23 Apr 2004 08:06:55 +0200 (MEST) Received: by ntbraexc001.braine.ucb with Internet Mail Service (5.5.2653.19) id ; Fri, 23 Apr 2004 08:12:26 +0200 Message-ID: <3EBA5559F490D61189430002A5F0AE8905B978F1@ntexcrd.braine.ucb> From: Delfosse Julien To: "'Jakarta Commons Users List'" Subject: RE: GenericKeyedObjectPool synchronization Date: Fri, 23 Apr 2004 08:12:23 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C428F9.F18353E0" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C428F9.F18353E0 Content-Type: text/plain Thanks for your response. I was actually planning to use a bunch of generic object pool objects (one for each key) and to synchronize on that particular pool, but I guess it would be a waste of space. Other possibility include using the util.concurrent package and semaphores, but I have to be extra-carefull about deadlocks, resource leaks and other boring (and complicated) stuff. I'll definitely check your GenericObjectPool synchronization. Is it in the 1.1 distro or do I have to browse the cvs head (or a specific branch ?) Thanks again Julien -----Original Message----- From: Dirk Verbeeck [mailto:dirk.verbeeck@pandora.be] Sent: Thursday, April 22, 2004 20:55 To: Jakarta Commons Users List Subject: Re: GenericKeyedObjectPool synchronization If I had such implementation then I would have committed it ;-) The currect GenericKeyedObjectPool could be patched to unsynchonize the method just like I did with GenericObjectPool. I don't have much time right now but I can always help review/fix. -- Dirk Delfosse Julien wrote: > Hi, > > first of all, thanks for making these kewl components available, these are > really helpfull. > > I have to manage a pool of objects (documentum sessions) that will be keyed > (using the user principal as key) > > I have noticed that the borrowObject method of the GenericKeyedObjectPool is > synchronized and that will cause unacceptable performance problems on our > applications, since we manage a big number of concurrent users, borrowObject > would definitely be a bottle neck. > > Is anyone aware of an implementation of KeyedObjectPool that allows > concurrent access to the borrowObject method ? > > Thanks in advance. > > Julien Delfosse --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org --------------------------------------------------------- Legal Notice: This electronic mail and its attachments are intended solely for the person(s) to whom they are addressed and contain information which is confidential or otherwise protected from disclosure, except for the purpose they are intended to. Dissemination, distribution, or reproduction by anyone other than their intended recipients is prohibited and may be illegal. If you are not an intended recipient, please immediately inform the sender and send him/her back the present e-mail and its attachments and destroy any copies which may be in your possession. --------------------------------------------------------- ------_=_NextPart_001_01C428F9.F18353E0--