directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrea Gariboldi <andrea.garibo...@gmail.com>
Subject Re: ldap server buffers search results?
Date Fri, 03 Apr 2009 19:35:00 GMT
Ok i'am going to dig it...

Andrea

2009/4/3, Alex Karasulu <akarasulu@gmail.com>:
>
> This is something we really need to fix before we release a 1.5.5.
>
> Alex
>
> On Fri, Apr 3, 2009 at 1:11 PM, Martin Alderson <equim@planetquake.com>wrote:
>
>> Hi Andrea,
>>
>> Just to let you know, this looks to be the same problem that is being
>> discussed in my OutOfMemoryError thread on the users mailing list.
>>
>> It still seems to be happening in the latest ApacheDS trunk.  I don't
>> really understand why it is happening yet though.
>>
>> Martin
>>
>>
>>
>> Andrea Gariboldi wrote:
>>
>>> Hi guys,
>>>  i was testing the oracle partition and it looks like the mina filter
>>> chain
>>> buffers the search results until
>>> the search ends and then starts message encoding end sending... Is this a
>>> protocol constraint or a bug?
>>> (org.apache.directory.server.ldap.handlers.SearchHandler : 326 snippet:
>>>
>>>  while ( (count < sizeLimit ) && cursor.next() )
>>>        {
>>>            if ( session.getIoSession().isClosing() )
>>>            {
>>>                break;
>>>            }
>>>
>>>            ClonedServerEntry entry = cursor.get();
>>>            session.getIoSession().write( generateResponse( session, req,
>>> entry ) ); // here the message is "writed" trought mina filters, but is
>>> not
>>> encoded until the end of this loop...
>>>            count++;
>>>        }
>>>
>>> )
>>>
>>>
>>> Doing a long search (1000+ entries) results in long waits for the first
>>> result on the client and java heap consumption.
>>>
>>> am i missing something?
>>>
>>> Andrea
>>>
>>>
>>
>

Mime
View raw message