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] Commented: (DIRSERVER-1555) LDIF import very slow
Date Wed, 29 Sep 2010 15:33:33 GMT

    [ https://issues.apache.org/jira/browse/DIRSERVER-1555?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12916172#action_12916172
] 

Emmanuel Lecharny commented on DIRSERVER-1555:
----------------------------------------------

The trunk is initializing the buffer this way :

...
            ( ( AbstractSocketSessionConfig ) acceptor.getSessionConfig() ).setReadBufferSize(
64 * 1024 );
            ( ( AbstractSocketSessionConfig ) acceptor.getSessionConfig() ).setSendBufferSize(
64 * 1024 );

            // Bind to the configured address
            acceptor.bind();
...

So the buffer size is now way bigger.

This has been fixed back in June, 2010

http://svn.apache.org/viewvc/directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/LdapServer.java?r1=952084&r2=963616&diff_format=h

Can you give the trunk a try ? If you need some installer for W$, just download it from http://people.apache.org/~pamarcelot/apacheds-1.5.8-SNAPSHOT.exe

> LDIF import very slow 
> ----------------------
>
>                 Key: DIRSERVER-1555
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1555
>             Project: Directory ApacheDS
>          Issue Type: Bug
>    Affects Versions: 1.5.7
>            Reporter: Jean-Fran├žois Melian
>         Attachments: import_groups.zip, import_users.zip, test_import.ldif, test_import.ldif.log,
test_import.ldif.pamarcelot.log, test_import_157_xp.ldif.log, test_import_pamarcelot_win7.ldif.log
>
>
> I work with an embedded ApacheDS but for this test I used a standard standalone ApacheDS
whith the system Partition :
>     <systemPartition>
>       <!-- use the following partitionConfiguration to override defaults for -->
>       <!-- the system partition                                              -->
>       <jdbmPartition id="system" cacheSize="100" suffix="ou=system" optimizerEnabled="true"
syncOnWrite="true">
>         <indexedAttributes>
>           <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.1" cacheSize="100"/>
>           <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.2" cacheSize="100"/>
>           <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.3" cacheSize="100"/>
>           <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.4" cacheSize="100"/>
>           <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.5" cacheSize="10"/>
>           <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.6" cacheSize="10"/>
>           <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.7" cacheSize="10"/>
>           <jdbmIndex attributeId="ou" cacheSize="100"/>
>           <jdbmIndex attributeId="uid" cacheSize="100"/>
>           <jdbmIndex attributeId="objectClass" cacheSize="100"/>
>         </indexedAttributes>
>       </jdbmPartition>
>     </systemPartition>
> I have generated a ldif file :  400 users and 20 groups with 100 user per group
>  - The 400 users have been imported rapidly :< 15 secondes for the 400 users   =>
0.03 second per user
>  - The 20 groups have been imported very more slowly : : > 5 minutes             
      => 15.5 seconds per group

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message