In the Admin UI we can enable connection pooling for ActiveDirectory. We enabled this pool as the connection setup to our AD is very slow and ivy Public API seems to call AD frequently. But it seems like the enabling of the pool doesn't speed up anything.

How can we track and trace if the pool is working? alt text

asked 05.03.2015 at 12:55

SupportIvyTeam's gravatar image

SupportIvyTeam ♦♦
1.4k102118122
accept rate: 77%


Unfortunately the connection pool that you activated is poorly configured by default and is therefore nearly pooling nothing. You can re-configure the pool behaviour by jvm system properties that are documented here: http://docs.oracle.com/javase/jndi/tutorial/ldap/connect/config.html .

The Java System Properties can be set in jvm.options file.

Note: Before 7.4 you need to this in the .ilc file on windows and in .conf file for linux. See the engine guide for ILC reference.

  • You can enable the jndi trace logging with the property
    -Dcom.sun.jndi.ldap.connect.pool.debug=all alt text
  • From a pool you might expect that it always re-used already created connections if they are idle. But this pool doesn't. To realy enable this feature i made good experiences by setting the property
    -Dcom.sun.jndi.ldap.connect.pool.prefsize=-1 alt text
  • Another reason why your pool might is not working is SSL. SSL connections are for security reasons not pooled by default. If the debug property is enabled you get a clear message with that info. However you can enable SSL connection pooling with the following option.
    -Dcom.sun.jndi.ldap.connect.pool.protocol=ssl alt text
link

answered 05.03.2015 at 12:56

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
9.4k31958
accept rate: 70%

edited 02.09.2019 at 05:34

Alex%20Suter's gravatar image

Alex Suter ♦♦
3.1k122247

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×16

Asked: 05.03.2015 at 12:55

Seen: 7,013 times

Last updated: 02.09.2019 at 05:34