grouper-dev - Re: [grouper-dev] Connection Pooling with JNDISourceAdapter
Subject: Grouper Developers Forum
List archive
- From: "Michael R. Gettes" <>
- To: Shilen Patel <>
- Cc: Grouper Dev <>
- Subject: Re: [grouper-dev] Connection Pooling with JNDISourceAdapter
- Date: Tue, 2 Oct 2007 16:33:14 -0400
I replicated this and I am not seeing a benefit. I have put the pool.protocol into
the setupEnvironment - no difference. Any thoughts on this?
i checked out subject_031. modified JNDISourceAdapter. rebuilt with ant dist - copied
the jar file to ldappc and grouper and ran both - watched the logs - i don't see efficient
pooling going on. i see connection, bind, unbind and drop. and it is still slow.
pointers appreciated.
environment.put("com.sun.jndi.ldap.connect.pool", "true");
environment.put("com.sun.jndi.ldap.connect.pool.protocol", "plain ssl");
environment.put("com.sun.jndi.ldap.connect.pool.initsize", 5);
/mrg
On Oct 2, 2007, at 8:25, Shilen Patel wrote:
Hi Michael,
I added the following line of code in the setupEnvironment() method of the JNDISourceAdapter class.
environment.put("com.sun.jndi.ldap.connect.pool", "true");
Then since I'm using SSL, I added the following to the java command line.
-Dcom.sun.jndi.ldap.connect.pool.protocol="plain ssl"
-- Shilen
Michael R. Gettes wrote:
Shilen,
How did you enable connection pooling? Did you do something equivalent to
adding -Dcom.sun.jndi.ldap.connect.pool="true" to the java commandline? Or something
else?
/mrg
On Aug 10, 2007, at 10:47, Shilen Patel wrote:
Hello,
I recall the connection pooling issue with the JNDISourceAdapter being brought up before, but I don't see any Jira issues on that. So I thought I would share some results. Simply by adding connection pooling to the JNDISourceAdapter, I'm seeing a significant performance improvement while making repeated calls to Member.getSubject(). For instance, for a group with 120 members, retrieving the Subject objects for all 120 members resulted in a 60% performance improvement while using connection pooling.
-- Shilen
- Re: [grouper-dev] Connection Pooling with JNDISourceAdapter, Michael R. Gettes, 10/01/2007
- Re: [grouper-dev] Connection Pooling with JNDISourceAdapter, Shilen Patel, 10/02/2007
- Re: [grouper-dev] Connection Pooling with JNDISourceAdapter, Tom Barton, 10/02/2007
- Re: [grouper-dev] Connection Pooling with JNDISourceAdapter, Michael R. Gettes, 10/02/2007
- Re: [grouper-dev] Connection Pooling with JNDISourceAdapter, Michael R. Gettes, 10/03/2007
- Re: [grouper-dev] Connection Pooling with JNDISourceAdapter, Dave Donnelly, 10/03/2007
- Re: [grouper-dev] Connection Pooling with JNDISourceAdapter, blair christensen., 10/03/2007
- Re: [grouper-dev] Connection Pooling with JNDISourceAdapter, Dave Donnelly, 10/03/2007
- Re: [grouper-dev] Connection Pooling with JNDISourceAdapter, Michael R. Gettes, 10/03/2007
- Re: [grouper-dev] Connection Pooling with JNDISourceAdapter, Shilen Patel, 10/02/2007
Archive powered by MHonArc 2.6.16.