java - JBoss 4.2.3: LDAP Initial Context loading slow -


I am using Jebs 4.2.3 and I call this code to connect to the LDAP server and the initial I'm trying to references:

  hashtable   

The initial reference creation is taking 12 seconds which is not acceptable. However, if I run the same program as a standalone Java program in the same system, then it is implemented in 1 second.

How can I analyze the reason for this delay within the JBoss server? How can I debug this problem? Please help

Obviously, the criminal was in the lower part of the code, which was the reason for the delay:

  Environment Input ("com.sun.jndi.ldap.connect.timeout", "1500");   

Even the debug log has confirmed that an attempt was being made to set the connection timeout, then the delay was taking place.

Obviously, it seems from the following link, that the connection time does not work out when the Ldap connection is done with SSL.

The problem was solved by removing this line of code.

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -