change sanbodx process number
This commit is contained in:
parent
6455eecf9f
commit
544c386759
|
@ -73,8 +73,8 @@ public class JudgeRun {
|
||||||
// 使用线程池开启多线程测试每一测试输入数据
|
// 使用线程池开启多线程测试每一测试输入数据
|
||||||
ExecutorService threadPool = new ThreadPoolExecutor(
|
ExecutorService threadPool = new ThreadPoolExecutor(
|
||||||
cpuNum, // 核心线程数
|
cpuNum, // 核心线程数
|
||||||
cpuNum + 1, // 最大线程数。最多几个线程并发。
|
cpuNum * 2, // 最大线程数。最多几个线程并发。
|
||||||
1,//当非核心线程无任务时,几秒后结束该线程
|
2,//当非核心线程无任务时,几秒后结束该线程
|
||||||
TimeUnit.SECONDS,// 结束线程时间单位
|
TimeUnit.SECONDS,// 结束线程时间单位
|
||||||
new LinkedBlockingDeque<>(200), //阻塞队列,限制等候线程数
|
new LinkedBlockingDeque<>(200), //阻塞队列,限制等候线程数
|
||||||
Executors.defaultThreadFactory(),
|
Executors.defaultThreadFactory(),
|
||||||
|
|
|
@ -68,7 +68,7 @@ public class SandboxRun {
|
||||||
|
|
||||||
public static final HashMap<String, Integer> RESULT_MAP_STATUS = new HashMap<>();
|
public static final HashMap<String, Integer> RESULT_MAP_STATUS = new HashMap<>();
|
||||||
|
|
||||||
private static final int maxProcessNumber = 32;
|
private static final int maxProcessNumber = 128;
|
||||||
|
|
||||||
private static final int TIME_LIMIT_MS = 16000;
|
private static final int TIME_LIMIT_MS = 16000;
|
||||||
|
|
||||||
|
|
|
@ -39,7 +39,7 @@ logging:
|
||||||
alibaba:
|
alibaba:
|
||||||
nacos: error
|
nacos: error
|
||||||
gargoylesoftware: off
|
gargoylesoftware: off
|
||||||
root: info
|
root: error
|
||||||
config: classpath:logback-spring.xml
|
config: classpath:logback-spring.xml
|
||||||
file:
|
file:
|
||||||
path: /judge/log/judgeserver
|
path: /judge/log/judgeserver
|
||||||
|
|
Loading…
Reference in New Issue