Authored by jack

线程池优化

... ... @@ -44,7 +44,7 @@ public class AwsToolController {
} catch (Exception e) {
DEBUG.error("Failed to find snapshot info ,error {}", e);
}
BaseResponse response = new BaseResponse();
response.setData(snapShotList);
... ...
... ... @@ -15,7 +15,7 @@ import java.util.concurrent.Executors;
*/
public interface InterVar {
ExecutorService EXECUTOR_SERVICE = Executors.newFixedThreadPool(50);
ExecutorService EXECUTOR_SERVICE = Executors.newFixedThreadPool(10);
ConcurrentHashMap<Integer, MObjectInfo> moMaps = new ConcurrentHashMap<>();
... ...
... ... @@ -33,7 +33,7 @@ public interface InterVar {
ConcurrentHashMap<Integer, HashMap<String, Integer>> alertMaps = new ConcurrentHashMap<>();
ExecutorService EXECUTOR_SERVICE = Executors.newFixedThreadPool(50);
ExecutorService EXECUTOR_SERVICE = Executors.newFixedThreadPool(10);
String TEST_URL = "/api/aliveness-test/vhost";
... ...
... ... @@ -141,6 +141,8 @@ public class TwemproxyTask extends Task {
taskService.submit(new RedisTask(entry.getKey(), entry.getValue(),this.getUrl(), this.getAlarmMsgService(), this.getSnsMobileConfig()));
}
taskService.shutdown();
}
... ...