浏览代码

计数线程处理调整

master
林万龙 3 年前
父节点
当前提交
634d44a4c6
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      src/main/java/com/telpo/iotgateway/server/IotSubscribe.java

+ 2
- 2
src/main/java/com/telpo/iotgateway/server/IotSubscribe.java 查看文件

@@ -51,8 +51,8 @@ public class IotSubscribe {

// 执行单元线程池
private final static ExecutorService executorService = new ThreadPoolExecutor(
Runtime.getRuntime().availableProcessors() - 1,
(Runtime.getRuntime().availableProcessors() -1)* 2, 60, TimeUnit.SECONDS,
Runtime.getRuntime().availableProcessors() - 2,
(Runtime.getRuntime().availableProcessors() -2)* 2, 60, TimeUnit.SECONDS,
new LinkedBlockingQueue<>(50000));
// Jms连接侦听
private static JmsConnectionListener myJmsConnectionListener = new IotJmsConnectionListener();


正在加载...
取消
保存