[jboss-user] [JBoss Portal] - Re: Portal LDAP integration problems

juhani_g do-not-reply at jboss.com
Thu Apr 3 15:41:49 EDT 2008


Thanks for the reply.

I tried with the following settings:

     <datasource>
  |          <name>LDAP</name>
  |          <service-name>portal:service=Module,type=LDAPConnectionContext</service-name>
  |          <class>org.jboss.portal.identity.ldap.LDAPConnectionContext</class>
  |          <config>
  |             <option>
  |                <name>host</name>
  |                <value>server</value>
  |             </option>
  |             <option>
  |                <name>port</name>
  |                <value>389</value>
  |             </option>
  |             <option>
  |                <name>contextFactory</name>
  |                <value>com.sun.jndi.ldap.LdapCtxFactory</value>
  |             </option>
  |             <option>
  |                <name>adminDN</name>
  |                <value>dn</value>
  |             </option>
  |             <option>
  |                <name>adminPassword</name>
  |                <value>pass</value>
  |             </option>
  |             <option>
  |                <name>poolingPrefsize</name>
  |                <value>20</value>
  |             </option>
  |             <option>
  |                <name>poolingMaxsize</name>
  |                <value>100</value>
  |             </option>
  |             <option>
  |                <name>poolingTimeout</name>
  |                <value>5000</value>
  |             </option>
  |             <option>
  |                <name>poolingDebug</name>
  |                <value>fine</value>
  |             </option>
  |          </config>
  |       </datasource>
  |    </datasources>

I'm testing the portal in the admin console - the default portal has some portlets by me that are actually using the portal identity-api. So not touching the just in case they have something to do with this.

Same thing as before. The setting seem to have no effect. When I do the user search it opens tens of connections according to netstat. I'm not seen any debug anywhere even though using the debug option. Where should I find the debugging logs?

In the jmx-console I can see that the pooling properties seem to be correct. However, clicking a few times on search users I end up with way over hunder connections.

At this point I decided to play around with JAVA_OPTS and added:
-Dcom.sun.jndi.ldap.connect.pool.debug=fine -Dcom.sun.jndi.ldap.connect.pool=true 
to JAVA_OPTS in run.conf

This seem to activate the pooling or at least the debug! The first click (portal admin console) results in this in STRERR:

22:17:45,188 ERROR [STDERR] Use com.sun.jndi.ldap.LdapClient at 17965791
22:17:45,191 ERROR [STDERR] Release com.sun.jndi.ldap.LdapClient at 17965791
22:17:45,192 ERROR [STDERR] Use com.sun.jndi.ldap.LdapClient at 17965791
22:17:45,193 ERROR [STDERR] Release com.sun.jndi.ldap.LdapClient at 17965791
22:17:45,194 ERROR [STDERR] Use com.sun.jndi.ldap.LdapClient at 17965791
22:17:45,195 ERROR [STDERR] Release com.sun.jndi.ldap.LdapClient at 17965791
22:17:45,196 ERROR [STDERR] Use com.sun.jndi.ldap.LdapClient at 17965791
22:17:45,197 ERROR [STDERR] Release com.sun.jndi.ldap.LdapClient at 17965791
22:17:45,198 ERROR [STDERR] Use com.sun.jndi.ldap.LdapClient at 17965791
22:17:45,199 ERROR [STDERR] Release com.sun.jndi.ldap.LdapClient at 17965791
22:17:45,199 ERROR [STDERR] Use com.sun.jndi.ldap.LdapClient at 17965791
22:17:45,201 ERROR [STDERR] Release com.sun.jndi.ldap.LdapClient at 17965791

Now when I click Members tab, everything seems fine again except for one connection not getting released (quite a few connections used for one click btw):
22:19:57,735 ERROR [STDERR] Use com.sun.jndi.ldap.LdapClient at 1ae48504
22:19:57,801 ERROR [STDERR] Use com.sun.jndi.ldap.LdapClient at 4ceb1c86
22:19:57,803 ERROR [STDERR] Release com.sun.jndi.ldap.LdapClient at 4ceb1c86
22:19:57,805 ERROR [STDERR] Use com.sun.jndi.ldap.LdapClient at 4ceb1c86
22:19:57,806 ERROR [STDERR] Release com.sun.jndi.ldap.LdapClient at 4ceb1c86
22:19:57,807 ERROR [STDERR] Use com.sun.jndi.ldap.LdapClient at 4ceb1c86
22:19:57,808 ERROR [STDERR] Release com.sun.jndi.ldap.LdapClient at 4ceb1c86
22:19:57,809 ERROR [STDERR] Use com.sun.jndi.ldap.LdapClient at 4ceb1c86
22:19:57,810 ERROR [STDERR] Release com.sun.jndi.ldap.LdapClient at 4ceb1c86
22:19:57,810 ERROR [STDERR] Use com.sun.jndi.ldap.LdapClient at 4ceb1c86
22:19:57,812 ERROR [STDERR] Release com.sun.jndi.ldap.LdapClient at 4ceb1c86
22:19:57,812 ERROR [STDERR] Use com.sun.jndi.ldap.LdapClient at 4ceb1c86
22:19:57,814 ERROR [STDERR] Release com.sun.jndi.ldap.LdapClient at 4ceb1c86

Now clicking search users:
22:21:39,217 ERROR [STDERR] Use com.sun.jndi.ldap.LdapClient at 4ceb1c86
22:21:39,249 ERROR [STDERR] Use com.sun.jndi.ldap.LdapClient at 31f3f16b
22:21:39,253 ERROR [STDERR] Use com.sun.jndi.ldap.LdapClient at 541d4bce
22:21:39,255 ERROR [STDERR] Release com.sun.jndi.ldap.LdapClient at 541d4bce
22:21:39,255 ERROR [STDERR] Use com.sun.jndi.ldap.LdapClient at 541d4bce
22:21:39,258 ERROR [STDERR] Use com.sun.jndi.ldap.LdapClient at 17965791
22:21:39,260 ERROR [STDERR] Release com.sun.jndi.ldap.LdapClient at 17965791
22:21:39,260 ERROR [STDERR] Use com.sun.jndi.ldap.LdapClient at 17965791
22:21:39,263 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at c3f8d48[sedi1.replaced.fi:389]
22:21:39,266 ERROR [STDERR] Release com.sun.jndi.ldap.LdapClient at c3f8d48
22:21:39,266 ERROR [STDERR] Use com.sun.jndi.ldap.LdapClient at c3f8d48
22:21:39,270 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 20547840[sedi1.replaced.fi:389]
22:21:39,272 ERROR [STDERR] Release com.sun.jndi.ldap.LdapClient at 20547840
22:21:39,273 ERROR [STDERR] Use com.sun.jndi.ldap.LdapClient at 20547840
22:21:39,283 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 42e579f9[sedi1.replaced.fi:389]
22:21:39,289 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 67aaecbe[sedi1.replaced.fi:389]
22:21:39,294 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 69ce31e[sedi1.replaced.fi:389]
22:21:39,301 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 2602c9f6[sedi1.replaced.fi:389]
22:21:39,305 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 11948f9[sedi1.replaced.fi:389]
22:21:39,307 ERROR [STDERR] Release com.sun.jndi.ldap.LdapClient at 11948f9
22:21:39,308 ERROR [STDERR] Use com.sun.jndi.ldap.LdapClient at 11948f9
22:21:39,311 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 2305d3ff[sedi1.replaced.fi:389]
22:21:39,313 ERROR [STDERR] Release com.sun.jndi.ldap.LdapClient at 2305d3ff
22:21:39,314 ERROR [STDERR] Use com.sun.jndi.ldap.LdapClient at 2305d3ff
22:21:39,317 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 53a11c4f[sedi1.replaced.fi:389]
22:21:39,319 ERROR [STDERR] Release com.sun.jndi.ldap.LdapClient at 53a11c4f
22:21:39,320 ERROR [STDERR] Use com.sun.jndi.ldap.LdapClient at 53a11c4f
22:21:39,323 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 7649b16d[sedi1.replaced.fi:389]
22:21:39,325 ERROR [STDERR] Release com.sun.jndi.ldap.LdapClient at 7649b16d
22:21:39,325 ERROR [STDERR] Use com.sun.jndi.ldap.LdapClient at 7649b16d
22:21:39,335 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 2e24655f[sedi1.replaced.fi:389]
22:21:39,340 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 577b57a3[sedi1.replaced.fi:389]
22:21:39,345 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 591686f7[sedi1.replaced.fi:389]
22:21:39,352 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 4a8171b[sedi1.replaced.fi:389]
22:21:39,356 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 3784f000[sedi1.replaced.fi:389]
22:21:39,358 ERROR [STDERR] Release com.sun.jndi.ldap.LdapClient at 3784f000
22:21:39,359 ERROR [STDERR] Use com.sun.jndi.ldap.LdapClient at 3784f000
22:21:39,362 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 78a8ac79[sedi1.replaced.fi:389]
22:21:39,364 ERROR [STDERR] Release com.sun.jndi.ldap.LdapClient at 78a8ac79
22:21:39,365 ERROR [STDERR] Use com.sun.jndi.ldap.LdapClient at 78a8ac79
22:21:39,368 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 1ae2cf08[sedi1.replaced.fi:389]
22:21:39,370 ERROR [LDAPUserProfileModuleImpl] No such attribute ('givenName') in entry: cn=jukkatv,ou=People,dc=replaced,dc=fi
22:21:39,370 ERROR [STDERR] Release com.sun.jndi.ldap.LdapClient at 1ae2cf08
22:21:39,371 ERROR [STDERR] Use com.sun.jndi.ldap.LdapClient at 1ae2cf08
22:21:39,374 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 20862402[sedi1.replaced.fi:389]
22:21:39,376 ERROR [STDERR] Release com.sun.jndi.ldap.LdapClient at 20862402
22:21:39,377 ERROR [STDERR] Use com.sun.jndi.ldap.LdapClient at 20862402
22:21:39,389 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 784ee63e[sedi1.replaced.fi:389]
22:21:39,394 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 3ee2e27[sedi1.replaced.fi:389]
22:21:39,405 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 447798a9[sedi1.replaced.fi:389]
22:21:39,411 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 7c7a25d[sedi1.replaced.fi:389]
22:21:39,416 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 43748ba8[sedi1.replaced.fi:389]
22:21:39,418 ERROR [STDERR] Release com.sun.jndi.ldap.LdapClient at 43748ba8
22:21:39,419 ERROR [STDERR] Use com.sun.jndi.ldap.LdapClient at 43748ba8
22:21:39,422 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 187ce531[sedi1.replaced.fi:389]
22:21:39,424 ERROR [STDERR] Release com.sun.jndi.ldap.LdapClient at 187ce531
22:21:39,425 ERROR [STDERR] Use com.sun.jndi.ldap.LdapClient at 187ce531
22:21:39,428 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 2fab0086[sedi1.replaced.fi:389]
22:21:39,430 ERROR [STDERR] Release com.sun.jndi.ldap.LdapClient at 2fab0086
22:21:39,431 ERROR [STDERR] Use com.sun.jndi.ldap.LdapClient at 2fab0086
22:21:39,434 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 3af75dd[sedi1.replaced.fi:389]
22:21:39,436 ERROR [STDERR] Release com.sun.jndi.ldap.LdapClient at 3af75dd
22:21:39,437 ERROR [STDERR] Use com.sun.jndi.ldap.LdapClient at 3af75dd
22:21:39,446 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 512733fc[sedi1.replaced.fi:389]
22:21:39,451 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 64c60f03[sedi1.replaced.fi:389]
22:21:39,456 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 703c1a5[sedi1.replaced.fi:389]
22:21:39,463 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 4a89e2f0[sedi1.replaced.fi:389]
22:21:39,469 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 229220cb[sedi1.replaced.fi:389]
22:21:39,471 ERROR [STDERR] Release com.sun.jndi.ldap.LdapClient at 229220cb
22:21:39,472 ERROR [STDERR] Use com.sun.jndi.ldap.LdapClient at 229220cb
22:21:39,475 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 27a70128[sedi1.replaced.fi:389]
22:21:39,477 ERROR [STDERR] Release com.sun.jndi.ldap.LdapClient at 27a70128
22:21:39,478 ERROR [STDERR] Use com.sun.jndi.ldap.LdapClient at 27a70128
22:21:39,481 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 453cfd6e[sedi1.replaced.fi:389]
22:21:39,483 ERROR [STDERR] Release com.sun.jndi.ldap.LdapClient at 453cfd6e
22:21:39,484 ERROR [STDERR] Use com.sun.jndi.ldap.LdapClient at 453cfd6e
22:21:39,487 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 27226445[sedi1.replaced.fi:389]
22:21:39,489 ERROR [STDERR] Release com.sun.jndi.ldap.LdapClient at 27226445
22:21:39,490 ERROR [STDERR] Use com.sun.jndi.ldap.LdapClient at 27226445
22:21:39,499 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 8f74d2f[sedi1.replaced.fi:389]
22:21:39,504 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 23ec4d42[sedi1.replaced.fi:389]
22:21:39,510 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 6ec43a7a[sedi1.replaced.fi:389]
22:21:39,516 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 14db5866[sedi1.replaced.fi:389]
22:21:39,520 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 4c889b3c[sedi1.replaced.fi:389]
22:21:39,522 ERROR [STDERR] Release com.sun.jndi.ldap.LdapClient at 4c889b3c
22:21:39,522 ERROR [STDERR] Use com.sun.jndi.ldap.LdapClient at 4c889b3c
22:21:39,525 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 1c87a765[sedi1.replaced.fi:389]
22:21:39,528 ERROR [STDERR] Release com.sun.jndi.ldap.LdapClient at 1c87a765
22:21:39,528 ERROR [STDERR] Use com.sun.jndi.ldap.LdapClient at 1c87a765
22:21:39,531 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at dfee685[sedi1.replaced.fi:389]
22:21:39,533 ERROR [STDERR] Release com.sun.jndi.ldap.LdapClient at dfee685
22:21:39,534 ERROR [STDERR] Use com.sun.jndi.ldap.LdapClient at dfee685
22:21:39,537 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 59d02cf0[sedi1.replaced.fi:389]
22:21:39,539 ERROR [STDERR] Release com.sun.jndi.ldap.LdapClient at 59d02cf0
22:21:39,540 ERROR [STDERR] Use com.sun.jndi.ldap.LdapClient at 59d02cf0
22:21:39,549 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at f2ceb70[sedi1.replaced.fi:389]
22:21:39,554 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 4e150dd8[sedi1.replaced.fi:389]
22:21:39,559 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 484007f4[sedi1.replaced.fi:389]
22:21:39,565 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 63ca493a[sedi1.replaced.fi:389]
22:21:39,570 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 758db204[sedi1.replaced.fi:389]
22:21:39,572 ERROR [STDERR] Release com.sun.jndi.ldap.LdapClient at 758db204
22:21:39,573 ERROR [STDERR] Use com.sun.jndi.ldap.LdapClient at 758db204
22:21:39,576 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 29a260e7[sedi1.replaced.fi:389]
22:21:39,578 ERROR [STDERR] Release com.sun.jndi.ldap.LdapClient at 29a260e7
22:21:39,579 ERROR [STDERR] Use com.sun.jndi.ldap.LdapClient at 29a260e7
22:21:39,582 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 6387f30b[sedi1.replaced.fi:389]
22:21:39,585 ERROR [STDERR] Release com.sun.jndi.ldap.LdapClient at 6387f30b
22:21:39,585 ERROR [STDERR] Use com.sun.jndi.ldap.LdapClient at 6387f30b
22:21:39,588 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 72658a39[sedi1.replaced.fi:389]
22:21:39,591 ERROR [STDERR] Release com.sun.jndi.ldap.LdapClient at 72658a39
22:21:39,591 ERROR [STDERR] Use com.sun.jndi.ldap.LdapClient at 72658a39
22:21:39,600 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 71d418d7[sedi1.replaced.fi:389]
22:21:39,606 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 1bab05a3[sedi1.replaced.fi:389]
22:21:39,611 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 78ff1e85[sedi1.replaced.fi:389]
22:21:39,617 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 352cebd2[sedi1.replaced.fi:389]
22:21:39,621 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 182e4344[sedi1.replaced.fi:389]
22:21:39,624 ERROR [STDERR] Release com.sun.jndi.ldap.LdapClient at 182e4344
22:21:39,624 ERROR [STDERR] Use com.sun.jndi.ldap.LdapClient at 182e4344
22:21:39,628 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 54231c3[sedi1.replaced.fi:389]
22:21:39,630 ERROR [STDERR] Release com.sun.jndi.ldap.LdapClient at 54231c3
22:21:39,631 ERROR [STDERR] Use com.sun.jndi.ldap.LdapClient at 54231c3
22:21:39,634 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 3cd0fbe7[sedi1.replaced.fi:389]
22:21:39,636 ERROR [STDERR] Release com.sun.jndi.ldap.LdapClient at 3cd0fbe7
22:21:39,637 ERROR [STDERR] Use com.sun.jndi.ldap.LdapClient at 3cd0fbe7
22:21:39,640 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 3c4a19e2[sedi1.replaced.fi:389]
22:21:39,642 ERROR [STDERR] Release com.sun.jndi.ldap.LdapClient at 3c4a19e2
22:21:39,643 ERROR [STDERR] Use com.sun.jndi.ldap.LdapClient at 3c4a19e2
22:21:39,652 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 4c6cea8a[sedi1.replaced.fi:389]
22:21:39,658 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 29a3139[sedi1.replaced.fi:389]
22:21:39,664 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 59159684[sedi1.replaced.fi:389]
22:21:39,670 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 184ce1cd[sedi1.replaced.fi:389]
22:21:39,674 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 5f7c6631[sedi1.replaced.fi:389]
22:21:39,677 ERROR [STDERR] Release com.sun.jndi.ldap.LdapClient at 5f7c6631
22:21:39,677 ERROR [STDERR] Use com.sun.jndi.ldap.LdapClient at 5f7c6631
22:21:39,680 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 60194bf0[sedi1.replaced.fi:389]
22:21:39,683 ERROR [STDERR] Release com.sun.jndi.ldap.LdapClient at 60194bf0
22:21:39,683 ERROR [STDERR] Use com.sun.jndi.ldap.LdapClient at 60194bf0
22:21:39,686 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 3a48dcf9[sedi1.replaced.fi:389]
22:21:39,688 ERROR [LDAPUserProfileModuleImpl] No such attribute ('givenName') in entry: cn=a2104,ou=People,dc=replaced,dc=fi
22:21:39,689 ERROR [STDERR] Release com.sun.jndi.ldap.LdapClient at 3a48dcf9
22:21:39,689 ERROR [STDERR] Use com.sun.jndi.ldap.LdapClient at 3a48dcf9
22:21:39,692 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 5a37d54[sedi1.replaced.fi:389]
22:21:39,694 ERROR [STDERR] Release com.sun.jndi.ldap.LdapClient at 5a37d54
22:21:39,695 ERROR [STDERR] Use com.sun.jndi.ldap.LdapClient at 5a37d54
22:21:39,704 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 4168c350[sedi1.replaced.fi:389]
22:21:39,710 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 44eedabc[sedi1.replaced.fi:389]
22:21:39,715 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 1d5a8fff[sedi1.replaced.fi:389]
22:21:39,721 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 79e7c7fb[sedi1.replaced.fi:389]
22:21:39,725 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 5ffa6e43[sedi1.replaced.fi:389]
22:21:39,727 ERROR [STDERR] Release com.sun.jndi.ldap.LdapClient at 5ffa6e43
22:21:39,728 ERROR [STDERR] Use com.sun.jndi.ldap.LdapClient at 5ffa6e43
22:21:39,731 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 325d21ef[sedi1.replaced.fi:389]
22:21:39,733 ERROR [STDERR] Release com.sun.jndi.ldap.LdapClient at 325d21ef
22:21:39,734 ERROR [STDERR] Use com.sun.jndi.ldap.LdapClient at 325d21ef
22:21:39,737 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 5eebbe[sedi1.replaced.fi:389]
22:21:39,739 ERROR [STDERR] Release com.sun.jndi.ldap.LdapClient at 5eebbe
22:21:39,740 ERROR [STDERR] Use com.sun.jndi.ldap.LdapClient at 5eebbe
22:21:39,743 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 57c70722[sedi1.replaced.fi:389]
22:21:39,745 ERROR [STDERR] Release com.sun.jndi.ldap.LdapClient at 57c70722
22:21:39,745 ERROR [STDERR] Use com.sun.jndi.ldap.LdapClient at 57c70722
22:21:39,755 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 632c17b6[sedi1.replaced.fi:389]
22:21:39,761 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 63c8e097[sedi1.replaced.fi:389]
22:21:39,766 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 19110caf[sedi1.replaced.fi:389]
22:21:39,812 ERROR [STDERR] Create and use com.sun.jndi.ldap.LdapClient at 6fe03f3b[sedi1.replaced.fi:389]
22:21:39,815 ERROR [STDERR] Release com.sun.jndi.ldap.LdapClient at 6fe03f3b
22:21:39,817 ERROR [STDERR] Use com.sun.jndi.ldap.LdapClient at 6fe03f3b
22:21:39,818 ERROR [STDERR] Release com.sun.jndi.ldap.LdapClient at 6fe03f3b
22:21:39,818 ERROR [STDERR] Use com.sun.jndi.ldap.LdapClient at 6fe03f3b
22:21:39,820 ERROR [STDERR] Release com.sun.jndi.ldap.LdapClient at 6fe03f3b
22:21:39,820 ERROR [STDERR] Use com.sun.jndi.ldap.LdapClient at 6fe03f3b
22:21:39,822 ERROR [STDERR] Release com.sun.jndi.ldap.LdapClient at 6fe03f3b
22:21:39,822 ERROR [STDERR] Use com.sun.jndi.ldap.LdapClient at 6fe03f3b
22:21:39,824 ERROR [STDERR] Release com.sun.jndi.ldap.LdapClient at 6fe03f3b
22:21:39,824 ERROR [STDERR] Use com.sun.jndi.ldap.LdapClient at 6fe03f3b
22:21:39,825 ERROR [STDERR] Release com.sun.jndi.ldap.LdapClient at 6fe03f3b

And I end up with 83 established connections. The above debug has a count of 78 for "Create and use" and 46 for "Release".

When I shutdown the server I can see the debug information that the connections are released.

Now I added some more options for JAVA_OPTS:
-Dcom.sun.jndi.ldap.connect.pool.maxsize=40 -Dcom.sun.jndi.ldap.connect.pool.prefsize=20  -Dcom.sun.jndi.ldap.connect.pool.timeout=5000

Now the timeout kicks in (notice I had 5000 also in the portal config which didn't have any effect), I get lines like:
22:31:09,184 ERROR [STDERR] Expired com.sun.jndi.ldap.LdapClient at 3fd4714d expired

And the connections are in TIME_WAIT according to netstat!

So looking good but the user search causes connections leaks again and proves that the maxsize 40 is working since one user search is enough to get the portal hang and it's not getting any connections after 40.

Btw, I have Mysql5 setup as the portal database, but that shouldn't have anything to do with this, right?

So something is causing the connections not been released. I'm suspecting the ProfileModule since this leaking seems to happen everytime user properties is been fetched (user search for example). What would be the best way to debug this problem?

I will try to play around with the external context approach tomorrow but getting a bit frustrated. With external context none of those JAVA_OPTS I tried had any effect. Has anybody got a good pooling example done with external context?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141487#4141487

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141487



More information about the jboss-user mailing list