directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Lecharny (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (DIRSHARED-108) Recursively drilling into the directory structure causes java.lang.OutOfMemoryError
Date Mon, 23 May 2011 20:53:47 GMT

     [ https://issues.apache.org/jira/browse/DIRSHARED-108?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Emmanuel Lecharny resolved DIRSHARED-108.
-----------------------------------------

    Resolution: Cannot Reproduce

Closed. If someone has a clear evidence that the latest version has some issue, feel free
to reopen the issue

> Recursively drilling into the directory structure causes java.lang.OutOfMemoryError
> -----------------------------------------------------------------------------------
>
>                 Key: DIRSHARED-108
>                 URL: https://issues.apache.org/jira/browse/DIRSHARED-108
>             Project: Directory Shared
>          Issue Type: Bug
>    Affects Versions: 1.0.0-M1
>         Environment: Windows XP SP3
>            Reporter: Sebu Koleth
>             Fix For: 1.0.0-M4
>
>         Attachments: ApacheLdapAPITest.java, UnboundidLdapAPITest.java
>
>
>         private static void recursivelyDescend(LdapConnection connection, String dn)
{
> 		System.out.println("Searching for children of dn : " + dn);
> 		try 
> 		{
> 			Cursor<SearchResponse> cursor = connection.search(dn, "(objectclass=*)", SearchScope.ONELEVEL,
"*");
> 			while (cursor.next())
> 			{
> 				SearchResponse response = cursor.get();
> 				if(response instanceof SearchResultEntry) {
> 					recursivelyDescend(connection, ((SearchResultEntry)response).getObjectName().getName());
> 				} else {
> 					System.out.println("Unusable response type " + response);
> 				}
> 			}
> 		} catch (LdapException le) {
> 			le.printStackTrace();
> 		} catch (Exception e) {
> 			e.printStackTrace();
> 		}
> 	}
> The above piece of code is exercised after obtaining an SSL-based LDAP connection. The
target server has hundreds of thousands of records at different levels. Logging at WARN level
shows a *lot* of messages :
> WARN NioProcessor-1 org.apache.directory.shared.asn1.ber.Asn1Decoder - The PDU has been
fully decoded but there are still bytes in the buffer.
> The code chokes at processing the 52nd entry that is two levels deep from the base DN.
At this level there are around 1000 sub-levels.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message