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.2k71101109
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 .
These system properties have to be set in the ivy engine launch configuration (*.ILC file in the engine /bin directory). 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... ♦♦
7.8k11549
accept rate: 68%

edited 05.03.2015 at 15:38

Your answer
toggle preview

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: 1,884 times

Last updated: 05.03.2015 at 15:38