Task #366
closedCheck Executor in LongRunningTaskManager
100%
Files
Updated by Ondřej Kopr about 7 years ago
- Subject changed from Check to Check Executor in LongRunningTaskManager
- Category set to Configuration
- Status changed from New to In Progress
- Assignee set to Ondřej Kopr
- Target version set to Citrine (7.3.0)
Check settings for Executor in long runnign task manager.
Specially how many thread has current executor.
Problem with this was founded in test. In tests is active wait for results from future task, this active waiting takes a very long time.
Updated by Ondřej Kopr about 7 years ago
After performing some tests, was launched profiler:
Found possible bug, method init is call with 41% time -> remove password from createIdentity
DefaultIdmRoleRequestService.startRequest -> startApprovalProcess -> workflowProcessInstanceService.startProcess 18% time
Local build:
Test on jenkins (core) before: 5 min 27 sec after: 5 min 10 sec
For profiling i use yourkit java profiler: plugin for eclipse: https://www.yourkit.com/docs/java/help/complete_eclipse35.jsp
Updated by Ondřej Kopr about 7 years ago
IdentityContractIntegrationTest 15-20 sec active wait for finish long running task: RemoveAutomaticRoleTaskExecutor and AddNewAutomaticRoleTaskExecutor
executor.setCorePoolSize(7);
executor.setCorePoolSize(20);
Updated by Ondřej Kopr about 7 years ago
Possible problem in RemoveAutomaticRoleTaskExecutor, entity IdmConceptRoleRequest hasn't index for roleTreeNode and etc., in forearch (stream) is save and 2x save into logs, see picture from profile:
Slow tests are not caused by the Task Executor!
Updated by Ondřej Kopr about 7 years ago
In this ticket was implementerd information about PASSWORD mapping into mapping detail and add new flyway script with new indexes for IdmConceptRoleRequest (V1_00_011__add-new-indexes-concept-role.sql) + add information about autentization attribute into documentaion (https://proj.bcvsolutions.eu/ngidm/doku.php?id=navrh:konfigurace_aplikace#autentizace)
Updated by Ondřej Kopr about 7 years ago
- Status changed from In Progress to Closed
- % Done changed from 90 to 100