My Oracle Support Banner

Heavy Load OVD 10g Application Returns "Critical error while performing SEARCH java.lang.OutOfMemoryError" (Doc ID 465627.1)

Last updated on OCTOBER 27, 2019

Applies to:

Oracle Virtual Directory - Version and later
Information in this document applies to any platform.


Errors are returned in an environment with a heavy load OVD application, which performs complex reiterative search operations. For example:

An Example of  the application logic:

The OVD application, which has complex reiterative ldapsearches, does something like:

    1. The application sends a request with an ldapsearch command, which results in one big data result of about 31,000 entries. This is successful.

        1. The application creates a connection to an LDAP server

      1. It builds a request with a filter of cn=a*
        1. if the request fails (sizelimit exceeded)
        2. build a request with cn=aa*
                   then build a request with cn=ab*
          If the request fails, it can build a request with cn=aba*, then abb*...
        3. then build a request with cn=ac* ....
      2. Then build a request with cn=b* .....
      3. Do it for any combination recursively with all accepted characters for  cn-values so as to overcome the sizelimit exceeded error
    2. During an application execution, chunks of 31,000 entries can be returned


  1. The application can be configured to return chunks of different sizes

When the application is run to return big chunks of data, or a mixed request with one big dataset and many small datasets per connection (or something similar), it receives a java memory error


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.