Hi Dinesh,

Sorry but is seems that your previous messages have been bounced by our
lists engine (messages above 200kB). So I haven't seen your thread dump
until this mail.

If you are using LSC in an embedded war, you are using the
SimpleSynchronize class. The method you should used to limit the amount of
threads used is setThreads(int threads). The sample piece of code you
should look at is in the embeddable sample :

https://lsc-project.org/svn/lsc-samples/lsc-embeddable-sample/trunk/src/main/java/org/lsc/utils/LscServlet.java

Look at line with sync.setThreads(Integer.parseInt(maxThreads);

The OutOfMemory error is due to a thread issue in MINA (which is the
underlying component of Apache LDAP API). This is under analysis and I'm
trying to reproduce it. I think that the attached
SyncReplSourceService.java updated code should fix it (because it uses a
pool and handle connection releases in a smarter way) but i'm unable to be
sure that it will fix it because I don't reproduce your issue.

Regards,

Sebastien BAHLOUL
IAM / Security specialist
Ldap Synchronization Connector : http://lsc-project.org
Blog : http://sbahloul.wordpress.com/

2014-11-27 10:32 GMT+01:00 Clément OUDOT <[email protected]>:

>
>
> 2014-11-27 10:23 GMT+01:00 Dinesh Babu <[email protected]>:
>
>>  Just a caution/warning to LSC users..
>>
>>
>>
>> LSC fails to sync anything above 80,000 to 100,000 records from LDAP. If
>> you want to sync large data, then use at your own risk.
>>
>>
>>
>> LSC sync causes socket error consistently. This is because there are too
>> many threads in the thread pool and I can't figure out how to limit and LSC
>> team has not responded/explained  how to do it.
>>
>>
>
> Hi Dinesh,
>
> we already answer you on the threads: there is an option -t for lsc
> launcher that allows to configure how many threads are used by LSC.
>
>
> If you encounter problems, we would be happy to help if you can bring some
> steps to reproduce, logs, etc.
>
>
> LSC is a free software, and you can read in the BSD licence:
>
>
>  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
>  * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
>  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
>  * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
>  * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
>  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
>  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
>  * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
>  * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
>  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
>  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
>
>
> So use at your own risk.
>
>
>
> Clément.
>

Attachment: SyncReplSourceService.java
Description: Binary data

_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org

lsc-dev mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-dev

Reply via email to