Issue #337 has been updated by Sébastien Bahloul. Status changed from New to Resolved Assigned to set to Sébastien Bahloul Priority changed from Normal to High
Thank you for both the bug and the patch. But while trying to download it to apply to the trunk , I click on the bad button and delete it. Can you resubmit it ? Thanks again, ---------------------------------------- Bug #337: Memory leak in ScriptingEvaluator http://tools.lsc-project.org/issues/337 Author: Stéphane Bond Status: Resolved Priority: High Assigned to: Sébastien Bahloul Category: Core Target version: 2.0.x branch Problem in version: We have integrated LSC 2.0 (trunk) in a web service to launch different synchronization tasks on demand. Our service calls directly SimpleSynchronize inside the web server, because it's faster than launching a new java process every time. However, an OutOfMemory error occurs after thousands of calls. The profiler show that the ScriptingEvaluator.instances collection was in cause. The ThreadPoolExecutor generate random thread names, so the cache (which is by thread name) keeps thousands of ScriptingEvaluator instances. We provide a patch to keep only the 15 last ScriptingEvaluator instances using an LRUMap. After the change, the server memory usage stays below 10mb, even after 5000 sync tasks. -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://tools.lsc-project.org/my/account
_______________________________________________________________ Ldap Synchronization Connector (LSC) - http://lsc-project.org lsc-dev mailing list [email protected] http://lists.lsc-project.org/listinfo/lsc-dev

