grouper-dev - Re: [grouper-dev] sources.xml Connection Pool Ldap? (with patch)
Subject: Grouper Developers Forum
List archive
- From: Colin Hudler <>
- To: Jim Fox <>
- Cc: Tom Zeller <>, "" <>
- Subject: Re: [grouper-dev] sources.xml Connection Pool Ldap? (with patch)
- Date: Thu, 18 Jun 2009 15:42:12 -0500
Here's some quick stats:
I fetched 97 groups with one WS query, for each group I made a new WS request for the members. The mean member count is 1429, and std deviation is 5689. range: 0-36818.
LdapSourceAdapter:
cold run: 12m49
consecutive run:10m
GrouperJndiSourceAdapter:
cold run: 32m7
consecutive run: 30m25
NICE SPEEDUP using your source adapter, thanks!
On 06/18/2009 01:58 PM, Colin Hudler wrote:
I think I fogot to include the patch. It is now attached.
On 06/18/2009 01:52 PM, Colin Hudler wrote:
Thanks again, Jim. I installed it according to the README and it worked
well. However, it continued to connect and bind on each search, and
never closed the context. The ldap server quickly ran out of sockets. I
started to debug it, but I couldn't find the 2.8.2 vt-ldap api docs. So,
I downloaded 3.0 and converted it. Works great now. I also have it using
a properties file, so much less is configured in sources.xml. I have
attached the patch between my new one and the only changed file
(LdapSourceAdapter.java).
Sorry, you will see that I might have made a few unnecessary changes,
also keep in mind that I am not really a Java programmer.
On 06/18/2009 11:49 AM, Jim Fox wrote:
Here is the uwsubject library.
http://staff.washington.edu/fox/grouper/dist/
Jim
On Thu, 18 Jun 2009, Colin Hudler wrote:
Date: Thu, 18 Jun 2009 09:41:25 -0700
From: Colin Hudler
<>
To: Jim Fox
<>
Cc: Tom Zeller
<>,
""
<>
Subject: Re: [grouper-dev] sources.xml Connection Pool Ldap?
Please do, Jim. Thank you.
On 06/18/2009 11:13 AM, Jim Fox wrote:
We implemented a source adapter at UW that uses the vt ldap library
and
supports connection pooling. I can send you a copy if you'd like to
try
it out.
Jim
On Thu, 18 Jun 2009, Tom Zeller wrote:
Date: Thu, 18 Jun 2009 07:05:44 -0700
From: Tom Zeller
<>
To: Colin Hudler
<>
Cc:
""
<>
Subject: Re: [grouper-dev] sources.xml Connection Pool Ldap?
Well, no, the JNDISourceAdapter isn't conducive to pooling.
We indeed are creating and closing the ldap context before and after
each search, so adding the connection pooling environment property
won't help
much.
We might want
to provide an LdapSourceAdapter which uses vt-ldap so we can have
connection pooling etc. even with TLS.
I'm not sure what priority this is.
TomZ
On Thu, Jun 18, 2009 at 8:50 AM, Colin Hudler
<>
wrote:
Hi,
I observed one of our test instances of grouper starting a new ldap
session each time a person subject was to be resolved (the other
test instances use mysql or mssql for the subject source). Is there a
way to request connection pooling? I could not find this
answer in the archives or wiki, but there is an "issue" in jira at
<https://bugs.internet2.edu/jira/browse/MCO-9>. I am unable to
extract the answer from that, however.
the sources.xml is using
edu.internet2.middleware.grouper.subj.GrouperJndiSourceAdapter and
<param-name>INITIAL_CONTEXT_FACTORY</param-name>
<param-value>com.sun.jndi.ldap.LdapCtxFactory</param-value>
- sources.xml Connection Pool Ldap?, Colin Hudler, 06/18/2009
- Re: [grouper-dev] sources.xml Connection Pool Ldap?, Tom Zeller, 06/18/2009
- Re: [grouper-dev] sources.xml Connection Pool Ldap?, Jim Fox, 06/18/2009
- Re: [grouper-dev] sources.xml Connection Pool Ldap?, Colin Hudler, 06/18/2009
- Re: [grouper-dev] sources.xml Connection Pool Ldap?, Jim Fox, 06/18/2009
- Re: [grouper-dev] sources.xml Connection Pool Ldap?, Colin Hudler, 06/18/2009
- Re: [grouper-dev] sources.xml Connection Pool Ldap?, Jim Fox, 06/18/2009
- Re: [grouper-dev] sources.xml Connection Pool Ldap? (with patch), Colin Hudler, 06/18/2009
- Re: [grouper-dev] sources.xml Connection Pool Ldap? (with patch), Colin Hudler, 06/18/2009
- Re: [grouper-dev] sources.xml Connection Pool Ldap?, Colin Hudler, 06/18/2009
- Re: [grouper-dev] sources.xml Connection Pool Ldap?, Jim Fox, 06/18/2009
- Re: [grouper-dev] sources.xml Connection Pool Ldap?, Colin Hudler, 06/18/2009
- Re: [grouper-dev] sources.xml Connection Pool Ldap?, Jim Fox, 06/18/2009
- Re: [grouper-dev] sources.xml Connection Pool Ldap?, Tom Zeller, 06/18/2009
Archive powered by MHonArc 2.6.16.