diff --git a/resident/resident-service/src/main/java/io/mosip/resident/config/Config.java b/resident/resident-service/src/main/java/io/mosip/resident/config/Config.java index 50fbbad6295..f11320fd754 100644 --- a/resident/resident-service/src/main/java/io/mosip/resident/config/Config.java +++ b/resident/resident-service/src/main/java/io/mosip/resident/config/Config.java @@ -155,8 +155,8 @@ public ThreadPoolTaskScheduler threadPoolTaskScheduler() { @Qualifier("AuditExecutor") public TaskExecutor AuditExecutor() { ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor(); - executor.setCorePoolSize(Math.floorDiv(env.getProperty("mosip.resident.async-thread-count", Integer.class), 4)); - executor.setMaxPoolSize(env.getProperty("mosip.resident.async-thread-count", Integer.class)); + executor.setCorePoolSize(Math.floorDiv(env.getProperty("mosip.resident.async-core-pool-size", Integer.class, 100), 4)); + executor.setMaxPoolSize(env.getProperty("mosip.resident.async-max-pool-size", Integer.class, 100)); executor.setThreadNamePrefix("Async-audit"); executor.setWaitForTasksToCompleteOnShutdown(true); executor.initialize(); @@ -164,4 +164,3 @@ public TaskExecutor AuditExecutor() { } } - diff --git a/resident/resident-service/src/test/resources/application.properties b/resident/resident-service/src/test/resources/application.properties index d74afb668fa..199abf2dce9 100644 --- a/resident/resident-service/src/test/resources/application.properties +++ b/resident/resident-service/src/test/resources/application.properties @@ -499,4 +499,5 @@ resident.cache.expiry.time.millisec.getImmediateChildrenByLocCode=86400000 resident.cache.expiry.time.millisec.getLocationHierarchyLevels=86400000 resident.cache.expiry.time.millisec.getAllDynamicFieldByName=86400000 -mosip.resident.async-thread-count=100 +mosip.resident.async-core-pool-size=100 +mosip.resident.async-max-pool-size=100